Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
drpatelh committed Apr 14, 2021
1 parent 0f09140 commit d3ea272
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* [[#561](https://github.com/nf-core/rnaseq/issues/561)] - Add gene symbols to merged output; identified by @grst
* [[#563](https://github.com/nf-core/rnaseq/issues/563)] - samplesheet.csv merge error
* [[#567](https://github.com/nf-core/rnaseq/issues/567)] - Update docs to mention trimgalore core usage nuances
* [[#568](https://github.com/nf-core/rnaseq/issues/568)] - `--star_index` argument is ignored with `--aligner star_rsem` option
* [[#569](https://github.com/nf-core/rnaseq/issues/569)] - nextflow edge release documentation for running 3.0
* [[#576](https://github.com/nf-core/rnaseq/issues/576)] - umi_tools dedup : Run before salmon to dedup counts
* [[#582](https://github.com/nf-core/rnaseq/issues/582)] - Generate a separate bigwig tracks for each strand
Expand Down
24 changes: 20 additions & 4 deletions lib/Workflow.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@ class Workflow {
}
}

// Check and exit if we are using '--aligner star_rsem' and '--with_umi'
if (!params.skip_alignment && params.aligner == 'star_rsem' && params.with_umi) {
rsemUmiError(log)
// Checks when running --aligner star_rsem
if (!params.skip_alignment && params.aligner == 'star_rsem') {
if (params.with_umi) {
rsemUmiError(log)
}
if (params.rsem_index && params.star_index) {
rsemStarIndexWarn(log)
}
}

// Check which RSeQC modules we are running
Expand Down Expand Up @@ -168,10 +173,21 @@ class Workflow {
System.exit(1)
}

// Print a warning if using '--aligner star_rsem' and providing both '--rsem_index' and '--star_index'
static void rsemStarIndexWarn(log) {
log.warn "=============================================================================\n" +
" When using '--aligner star_rsem', both the STAR and RSEM indices should\n" +
" be present in the path specified by '--rsem_index'.\n\n" +
" This warning has been generated because you have provided both\n" +
" '--rsem_index' and '--star_index'. The pipeline will ignore the latter.\n\n" +
" Please see:\n" +
" https://github.com/nf-core/rnaseq/issues/568\n" +
"==================================================================================="
}

// Print a warning after SRA download has completed
static void sraDownload(log) {
log.warn "=============================================================================\n" +
" THIS IS AN EXPERIMENTAL FEATURE!\n\n" +
" Please double-check the samplesheet that has been auto-created using the\n" +
" public database ids provided via the '--public_data_ids' parameter.\n\n" +
" Public databases don't reliably hold information such as experimental group,\n" +
Expand Down

0 comments on commit d3ea272

Please sign in to comment.