Lili Andersson-Li
09/05/2024, 9:36 AM[DUMP: krakenuniq_input_reads] [['id':'db6', 'single_end':true, 'seqtype':'fasta', 'tool':'krakenuniq', 'db_name':'db6', 'db_params':'', 'type':'short'], [/nf-core/test-datasets/taxprofiler/data/fasta/ERX5474930_ERR5766174_1.fa.gz, /home/lili.li/test-datasets/data/fasta/ERR3201952.fa.gz]]
[DUMP: krakenuniq_input_reads] [['id':'db6', 'single_end':true, 'seqtype':'fastq', 'tool':'krakenuniq', 'db_name':'db6', 'db_params':'', 'type':'short'], [/home/lili.li/taxprofiler_update_new/work/58/ebf71548e5fff3ccbe798c8a7cfb73/2613_ERR5766181.unmapped.fastq.gz, /home/lili.li/taxprofiler_update_new/work/b5/8a5e3e569a6a6e439ee5842487d423/2612.merged.fastq.gz]]
[DUMP: krakenuniq_input_reads] [['id':'db6', 'single_end':true, 'seqtype':'fastq', 'tool':'krakenuniq', 'db_name':'db6', 'db_params':'', 'type':'long'], [/home/lili.li/taxprofiler_update_new/work/3e/5a2f28aa5602480ee8d9ec0ac77b25/ERR3201952_ERR3201952.unmapped_other.fastq.gz]]James Fellows Yates
09/05/2024, 9:37 AMLili Andersson-Li
09/05/2024, 9:42 AM.branch { meta, run_accession, instrument_platform, fastq_1, fastq_2, fasta ->
fastq: meta.single_end || fastq_2
return [ meta + [ type: "short" ], fastq_2 ? [ fastq_1, fastq_2 ] : [ fastq_1 ] ]
nanopore: instrument_platform == 'OXFORD_NANOPORE'
return [ meta, fastq_2 ? [ fastq_1, fastq_2 ] : [ fastq_1 ] ]
nanopore: instrument_platform == 'OXFORD_NANOPORE' && !meta.is_fasta
meta.single_end = true
return [ meta + [ type: "long" ], [ fastq_1 ] ]
fasta: meta.is_fasta
meta.single_end = true
return [ meta + [ type: "short" ], [ fasta ] ]
}James Fellows Yates
09/05/2024, 9:44 AMLili Andersson-Li
09/05/2024, 9:44 AMJames Fellows Yates
09/05/2024, 9:44 AMLili Andersson-Li
09/05/2024, 9:44 AMJames Fellows Yates
09/05/2024, 9:45 AMJames Fellows Yates
09/05/2024, 9:45 AMI don't see why anyone would have short reads in fasta format...
People occasionally did that 10 years ago but I myself have not seen short reads in FASTA for a very long time
Lili Andersson-Li
09/05/2024, 9:48 AMfasta: meta.is_fasta
meta.single_end = true
return [ meta + [ type: "long" ], [ fasta ] ]James Fellows Yates
09/05/2024, 9:48 AMJames Fellows Yates
09/05/2024, 9:49 AMJames Fellows Yates
09/05/2024, 9:49 AMLili Andersson-Li
09/05/2024, 9:49 AMJames Fellows Yates
09/05/2024, 9:49 AMLili Andersson-Li
09/05/2024, 9:58 AM.branch { meta, run_accession, instrument_platform, fastq_1, fastq_2, fasta ->
fastq: meta.single_end || fastq_2
return [ meta + [ type: "short" ], fastq_2 ? [ fastq_1, fastq_2 ] : [ fastq_1 ] ]
nanopore: instrument_platform == 'OXFORD_NANOPORE' && !meta.is_fasta
meta.single_end = true
return [ meta + [ type: "long" ], [ fastq_1 ] ]
fasta_short: meta.is_fasta && instrument_platform == 'ILLUMINA'
meta.single_end = true
return [ meta + [ type: "short" ], [ fasta ] ]
fasta_long: meta.is_fasta && instrument_platform == 'OXFORD_NANOPORE'
meta.single_end = true
return [ meta + [ type: "long" ], [ fasta ] ]
}Lili Andersson-Li
09/05/2024, 9:59 AMJames Fellows Yates
09/05/2024, 10:04 AMJames Fellows Yates
09/05/2024, 10:04 AMLili Andersson-Li
09/05/2024, 10:05 AMLili Andersson-Li
09/05/2024, 10:05 AMJames Fellows Yates
09/05/2024, 10:08 AMJames Fellows Yates
09/05/2024, 10:16 AM