Skip to content

Commit

Permalink
Update subworkflows/local/prepare_genome/main.nf
Browse files Browse the repository at this point in the history
Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
  • Loading branch information
apeltzer and jfy133 authored Oct 8, 2024
1 parent 24ea7ad commit acd40b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subworkflows/local/prepare_genome/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ workflow PREPARE_GENOME {
bool_has_fasta = val_fasta ? true : false

ch_mirtrace_species = val_mirtrace_species ? Channel.value(val_mirtrace_species) : Channel.empty()
mirna_gtf_from_species = val_mirtrace_species ? (val_mirtrace_species == 'hsa' ? "https://raw.githubusercontent.com/nf-core/test-datasets/smrnaseq/reference/hsa.gff3" : "https://mirbase.org/download/CURRENT/genomes/${val_mirtrace_species}.gff3") : false
mirna_gtf_from_species = val_mirtrace_species ? (val_mirtrace_species == 'hsa' ? params.hsa_ref : "https://mirbase.org/download/CURRENT/genomes/${val_mirtrace_species}.gff3") : false
ch_mirna_gtf = val_mirna_gtf ? Channel.fromPath(val_mirna_gtf, checkIfExists: true).map{ it -> [ [id:it.baseName], it ] }.collect() : ( mirna_gtf_from_species ? Channel.fromPath(mirna_gtf_from_species, checkIfExists: true).map{ it -> [ [id:it.baseName], it ] }.collect() : Channel.empty() )
ch_mirna_adapters = params.with_umi ? [] : Channel.fromPath(val_fastp_known_mirna_adapters, checkIfExists: true).collect()

Expand Down

0 comments on commit acd40b2

Please sign in to comment.