Skip to content

Commit

Permalink
Merge pull request #355 from nf-core/genome-parameters
Browse files Browse the repository at this point in the history
Fix usage of getGenomeAttribute
  • Loading branch information
grst authored Aug 12, 2024
2 parents 0b0ebd4 + 1a683ac commit 7baac55
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions workflows/scrnaseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ workflow SCRNASEQ {
error "Only cellranger supports `protocol = 'auto'`. Please specify the protocol manually!"
}

ch_genome_fasta = params.fasta ? file(params.fasta, checkIfExists: true) : ( params.genome ? file( getGenomeAttribute('fasta'), checkIfExists: true ) : [] )
ch_gtf = params.gtf ? file(params.gtf , checkIfExists: true) : ( params.genome ? file( getGenomeAttribute('gtf') , checkIfExists: true ) : [] )
params.fasta = getGenomeAttribute('fasta')
params.gtf = getGenomeAttribute('gtf')
params.star_index = getGenomeAttribute('star')

ch_genome_fasta = params.fasta ? file(params.fasta, checkIfExists: true) : []
ch_gtf = params.gtf ? file(params.gtf, checkIfExists: true) : []

// general input and params
ch_transcript_fasta = params.transcript_fasta ? file(params.transcript_fasta): []
Expand Down Expand Up @@ -67,8 +71,8 @@ workflow SCRNASEQ {
ch_salmon_index = params.salmon_index ? file(params.salmon_index) : []

//star params
star_index = params.star ? file(params.star_index, checkIfExists: true) : ( params.genome ? file( getGenomeAttribute('star'), checkIfExists: true ) : [] )
ch_star_index = [[id: star_index.baseName], star_index]
star_index = params.star_index ? file(params.star_index, checkIfExists: true) : null
ch_star_index = star_index ? [[id: star_index.baseName], star_index] : []
star_feature = params.star_feature

//cellranger params
Expand Down

0 comments on commit 7baac55

Please sign in to comment.