Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef1abb2

Browse files
committedJun 5, 2024·
Add mapAD indexing
1 parent 3ffc5f1 commit ef1abb2

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
 

‎subworkflows/local/map.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ workflow MAP {
128128
params.mapping_mapad_i
129129
)
130130
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
132132
.map{
133133
// create meta consistent with rest of workflow
134134
meta, bam ->

‎subworkflows/local/reference_indexing_multi.nf

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include { BWA_INDEX } from '../../modules/nf-core/bwa/inde
77
include { BOWTIE2_BUILD } from '../../modules/nf-core/bowtie2/build/main'
88
include { SAMTOOLS_FAIDX } from '../../modules/nf-core/samtools/faidx/main'
99
include { PICARD_CREATESEQUENCEDICTIONARY } from '../../modules/nf-core/picard/createsequencedictionary/main'
10+
include { MAPAD_INDEX } from '../../modules/nf-core/mapad/index/main'
1011
// TODO missing: circulargeneraotr?
1112

1213
workflow REFERENCE_INDEXING_MULTI {
@@ -188,6 +189,10 @@ workflow REFERENCE_INDEXING_MULTI {
188189
ch_indexed_forremap = BOWTIE2_BUILD.out.index
189190
} else if ( params.mapping_tool == "circularmapper" ) {
190191
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
191196
}
192197

193198
ch_indexed_formix = ch_indexed_forremap

‎subworkflows/local/reference_indexing_single.nf

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ include { BWA_INDEX } from '../../modules/nf-core/bwa/inde
88
include { BOWTIE2_BUILD } from '../../modules/nf-core/bowtie2/build/main'
99
include { SAMTOOLS_FAIDX } from '../../modules/nf-core/samtools/faidx/main'
1010
include { PICARD_CREATESEQUENCEDICTIONARY } from '../../modules/nf-core/picard/createsequencedictionary/main'
11+
include { MAPAD_INDEX } from '../../modules/nf-core/mapad/index/main'
1112
// TODO missing: circulargeneraotr?
1213

1314
workflow REFERENCE_INDEXING_SINGLE {
@@ -70,6 +71,14 @@ workflow REFERENCE_INDEXING_SINGLE {
7071
ch_fasta_mapperindexdir = Channel.fromPath(fasta_mapperindexdir).map{[[id: clean_name], it ]}
7172
}
7273

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+
}
7382
}
7483

7584
// Join all together into a single map. failOnMismatch allows check if

0 commit comments

Comments
 (0)
Please sign in to comment.