Skip to content

Commit

Permalink
Ensure pseudoaligner is set if pseudoalignment is not skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
pinin4fjords committed Nov 20, 2023
1 parent 1562e01 commit 7533e9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ params {

// Alignment
aligner = 'star_salmon'
pseudo_aligner = null
pseudo_aligner = 'salmon'
seq_center = null
bam_csi_index = false
star_ignore_sjdbgtf = false
Expand Down
8 changes: 7 additions & 1 deletion workflows/rnaseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ if (!params.skip_bbsplit && !params.bbsplit_index && params.bbsplit_fasta_list)
def prepareToolIndices = []
if (!params.skip_bbsplit) { prepareToolIndices << 'bbsplit' }
if (!params.skip_alignment) { prepareToolIndices << params.aligner }
if (!params.skip_pseudo_alignment && params.pseudo_aligner) { prepareToolIndices << params.pseudo_aligner }
if (!params.skip_pseudo_alignment) {
if(params.pseudo_aligner) {
prepareToolIndices << params.pseudo_aligner
} else {
exit 1, "--skip_pseudo_alignment not set, but --pseudo_aligner not set"
}
}

// Determine whether to filter the GTF or not
def filterGtf =
Expand Down

0 comments on commit 7533e9f

Please sign in to comment.