Skip to content

Commit

Permalink
importing properly samtools module
Browse files Browse the repository at this point in the history
  • Loading branch information
jbv2 committed Jan 26, 2024
1 parent c9d4788 commit 4d1f765
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -887,12 +887,12 @@ process {
//
// SEXDETERRMINE
//
withName: SAMTOOLS_DEPTH {
withName: SAMTOOLS_DEPTH_SEXDETERMINE {
tag = { "${meta1.reference}|${meta1.sample_id}_${meta1.library_id}" }
ext.prefix = { "${meta1.sample_id}_${meta1.library_id}_samtoolsdepth" }
ext.args = '-aa -q30 -Q30 -H'
publishDir = [
enabled: false
enabled: false
]
}

Expand All @@ -902,6 +902,7 @@ process {
publishDir = [
path: { "${params.outdir}/sex_determine/sexdeterrmine/" },
mode: params.publish_dir_mode,
pattern: '*{_sexdetermine}*',
enabled: true
]
}
Expand Down
10 changes: 5 additions & 5 deletions subworkflows/local/sex_determination.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Run sex determine
//

include { SAMTOOLS_DEPTH } from '../../modules/nf-core/samtools/depth/main'
include { SEXDETERRMINE } from '../../modules/nf-core/sexdeterrmine/main'
include { SAMTOOLS_DEPTH as SAMTOOLS_DEPTH_SEXDETERMINE } from '../../modules/nf-core/samtools/depth/main'
include { SEXDETERRMINE } from '../../modules/nf-core/sexdeterrmine/main'

workflow RUN_SEXDETERMINE {

Expand All @@ -28,9 +28,9 @@ workflow RUN_SEXDETERMINE {
intervals : [ meta2, bed ]
}

SAMTOOLS_DEPTH(ch_samtoolsdepth_input)
ch_sex_determine_input = SAMTOOLS_DEPTH.out.tsv
ch_versions = ch_versions.mix( SAMTOOLS_DEPTH.out.versions )
SAMTOOLS_DEPTH_SEXDETERMINE(ch_samtoolsdepth_input)
ch_sex_determine_input = SAMTOOLS_DEPTH_SEXDETERMINE.out.tsv
ch_versions = ch_versions.mix( SAMTOOLS_DEPTH_SEXDETERMINE.out.versions )

// Run sex determination with samtools depth input
// Does it need a sample list file to run?
Expand Down

0 comments on commit 4d1f765

Please sign in to comment.