Skip to content

Commit

Permalink
Merge pull request #267 from nf-core/fix-263
Browse files Browse the repository at this point in the history
Fix 263
  • Loading branch information
grst authored Sep 22, 2023
2 parents 4a8a63f + dad9d8f commit da9b375
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## v2.4.1 - 2023-09-21

- Fix whitelist logic for dropseq ([#267](https://github.com/nf-core/scrnaseq/pull/267))
- Fix false-positive filename check in cellranger module ([#261](https://github.com/nf-core/scrnaseq/pull/261))

## v2.4.0 - 2023-08-16 Lime Platinum Crab
Expand Down
17 changes: 10 additions & 7 deletions modules/local/simpleaf_quant.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ process SIMPLEAF_QUANT {
// check if users are using one of the mutually excludable parameters:
// e.g -k,--knee | -e,--expect-cells | -f, --forced-cells
//
if (args_list.any { it in ['-k', '--knee', '-e', '--expect-cells', '-f', '--forced-cells']} || meta.expected_cells) {
unfiltered_command = ""
save_whitelist = ""
} else {
unfiltered_command = "-u whitelist.uncompressed.txt"
save_whitelist = "mv whitelist.uncompressed.txt ${prefix}_alevin_results/"
unzip_whitelist = ""
unfiltered_command = ""
save_whitelist = ""
if (!(args_list.any { it in ['-k', '--knee', '-e', '--expect-cells', '-f', '--forced-cells']} || meta.expected_cells)) {
if (whitelist) {
unzip_whitelist = "gzip -dcf $whitelist > whitelist.uncompressed.txt"
unfiltered_command = "-u whitelist.uncompressed.txt"
save_whitelist = "mv whitelist.uncompressed.txt ${prefix}_alevin_results/"
}
}

// expected cells
Expand All @@ -55,7 +58,7 @@ process SIMPLEAF_QUANT {
simpleaf set-paths
# run simpleaf quant
gzip -dcf $whitelist > whitelist.uncompressed.txt
$unzip_whitelist
simpleaf quant \\
-1 ${forward.join( "," )} \\
-2 ${reverse.join( "," )} \\
Expand Down

0 comments on commit da9b375

Please sign in to comment.