1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-22 15:39:55 +00:00

filter fasta inputs for mOTUs;

fix the typo for nopreprocessing in nextflow.config.
This commit is contained in:
JIANHONG OU 2022-05-24 08:42:18 -04:00
parent 68d0cc00fa
commit 4b3216c1cb
2 changed files with 5 additions and 1 deletions

View file

@ -192,7 +192,7 @@ profiles {
test { includeConfig 'conf/test.config' } test { includeConfig 'conf/test.config' }
test_full { includeConfig 'conf/test_full.config' } test_full { includeConfig 'conf/test_full.config' }
test_noprofiling { includeConfig 'conf/test_noprofiling.config' } test_noprofiling { includeConfig 'conf/test_noprofiling.config' }
test_nopreprocessing { includeConfig 'conf/test_preprocessing.config' } test_nopreprocessing { includeConfig 'conf/test_nopreprocessing.config' }
} }
// Load igenomes.config if required // Load igenomes.config if required

View file

@ -190,6 +190,10 @@ workflow PROFILING {
if ( params.run_motus ) { if ( params.run_motus ) {
ch_input_for_motus = ch_input_for_profiling.motus ch_input_for_motus = ch_input_for_profiling.motus
.filter{
if (it[0].is_fasta) log.warn "[nf-core/taxprofiler] mOTUs currently does not accept FASTA files as input. Skipping mOTUs for sample ${it[0].id}."
!it[0].is_fasta
}
.multiMap { .multiMap {
it -> it ->
reads: [it[0] + it[2], it[1]] reads: [it[0] + it[2], it[1]]