File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ workflow MAP {
128
128
params. mapping_mapad_i
129
129
)
130
130
ch_versions = ch_versions. mix ( FASTQ_ALIGN_MAPAD . out. versions. first() )
131
- ch_mapped_lane_bam = FASTQ_ALIGN_BWAALN . out. bam
131
+ ch_mapped_lane_bam = FASTQ_ALIGN_MAPAD . out. bam
132
132
.map{
133
133
// create meta consistent with rest of workflow
134
134
meta, bam ->
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ include { BWA_INDEX } from '../../modules/nf-core/bwa/inde
7
7
include { BOWTIE2_BUILD } from ' ../../modules/nf-core/bowtie2/build/main'
8
8
include { SAMTOOLS_FAIDX } from ' ../../modules/nf-core/samtools/faidx/main'
9
9
include { PICARD_CREATESEQUENCEDICTIONARY } from ' ../../modules/nf-core/picard/createsequencedictionary/main'
10
+ include { MAPAD_INDEX } from ' ../../modules/nf-core/mapad/index/main'
10
11
// TODO missing: circulargeneraotr?
11
12
12
13
workflow REFERENCE_INDEXING_MULTI {
@@ -188,6 +189,10 @@ workflow REFERENCE_INDEXING_MULTI {
188
189
ch_indexed_forremap = BOWTIE2_BUILD . out. index
189
190
} else if ( params. mapping_tool == " circularmapper" ) {
190
191
println (" CircularMapper Indexing Not Yet Implemented" )
192
+ } else if ( params. mapping_tool == " mapad" ) {
193
+ MAPAD_INDEX ( ch_mapindex_input. index )
194
+ ch_version = ch_versions. mix( MAPAD_INDEX . out. versions )
195
+ ch_indexed_forremap = MAPAD_INDEX . out. index
191
196
}
192
197
193
198
ch_indexed_formix = ch_indexed_forremap
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ include { BWA_INDEX } from '../../modules/nf-core/bwa/inde
8
8
include { BOWTIE2_BUILD } from ' ../../modules/nf-core/bowtie2/build/main'
9
9
include { SAMTOOLS_FAIDX } from ' ../../modules/nf-core/samtools/faidx/main'
10
10
include { PICARD_CREATESEQUENCEDICTIONARY } from ' ../../modules/nf-core/picard/createsequencedictionary/main'
11
+ include { MAPAD_INDEX } from ' ../../modules/nf-core/mapad/index/main'
11
12
// TODO missing: circulargeneraotr?
12
13
13
14
workflow REFERENCE_INDEXING_SINGLE {
@@ -70,6 +71,14 @@ workflow REFERENCE_INDEXING_SINGLE {
70
71
ch_fasta_mapperindexdir = Channel . fromPath(fasta_mapperindexdir). map{[[id : clean_name], it ]}
71
72
}
72
73
74
+ } else if ( params. mapping_tool == " mapad" ) {
75
+
76
+ if ( ! fasta_mapperindexdir ) {
77
+ ch_fasta_mapperindexdir = MAPAD_INDEX ( ch_ungz_ref ). index
78
+ ch_versions = ch_versions. mix( MAPAD_INDEX . out. versions. first())
79
+ } else {
80
+ ch_fasta_mapperindexdir = Channel . fromPath(fasta_mapperindexdir). map{[[id : clean_name], it ]}
81
+ }
73
82
}
74
83
75
84
// Join all together into a single map. failOnMismatch allows check if
You can’t perform that action at this time.
0 commit comments