Skip to content

Commit

Permalink
cleaner cellranger index declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKrueger committed Nov 5, 2024
1 parent d2478c1 commit 613a4c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions workflows/scrnaseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ workflow SCRNASEQ {
params.star_index = getGenomeAttribute('star')
params.salmon_index = getGenomeAttribute('simpleaf')
params.txp2gene = getGenomeAttribute('simpleaf_tx2pgene')
params.cellranger_index = getGenomeAttribute('cellranger')
// Make cellranger-arc index overwriting conditional
if (params.aligner == "cellrangerarc") {
params.cellranger_index = getGenomeAttribute('cellrangerarc')

// Make cellranger or cellranger-arc index conditional
if (params.aligner in ["cellranger", "cellrangermulti"]){
params.cellranger_index = getGenomeAttribute('cellranger')
}
else if (params.aligner == "cellrangerarc") {
params.cellranger_index = getGenomeAttribute('cellrangerarc')
}

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

0 comments on commit 613a4c5

Please sign in to comment.