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

Remove metaphlan profiling for nanopore as it appears to always result in 100% unclassified

This commit is contained in:
James Fellows Yates 2023-01-24 13:05:52 +01:00
parent 9205831273
commit 0358489be0

View file

@ -202,11 +202,8 @@ workflow PROFILING {
ch_input_for_metaphlan3 = ch_input_for_profiling.metaphlan3 ch_input_for_metaphlan3 = ch_input_for_profiling.metaphlan3
.filter{ .filter{
meta, report -> if (it[0].is_fasta || it[0].instrument_platform == 'OXFORD_NANOPORE' ) log.warn "[nf-core/taxprofiler] MetaPhlAn3 currently does not accept FASTA files as input and/or has not been evaluated for Nanopore data. Skipping MetaPhlAn3 for sample ${it[0].id}."
if (meta.is_fasta) log.warn "[nf-core/taxprofiler] MetaPhlAn3 currently does not accept FASTA files as input. Skipping MetaPhlAn3 for sample ${meta.id}." !(it[0].is_fasta || it[0].instrument_platform == 'OXFORD_NANOPORE')
!meta.is_fasta
if ( meta['instrument_platform'] == 'OXFORD_NANOPORE' ) log.warn "[nf-core/taxprofiler] MetaPhlAn3 has not been evaluated for Nanopore data. Skipping MetaPhlAn3 for sample ${meta.id}."
meta['tool'] == 'metaphlan3' && meta['instrument_platform'] != 'OXFORD_NANOPORE'
} }
.multiMap { .multiMap {
it -> it ->