This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from aertslab/develop
Develop Former-commit-id: c25c31f
- Loading branch information
Showing
64 changed files
with
1,366 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
params { | ||
// This closure facilitates the usage of sample specific parameters | ||
parseConfig = { sample, paramsGlobal, paramsLocal -> | ||
def pL = paramsLocal.collectEntries { k,v -> | ||
if (v instanceof Map) { | ||
if (v.containsKey(sample)) | ||
return [k, v[sample]] | ||
if (v.containsKey('default')) | ||
return [k, v['default']] | ||
throw new Exception("Not a valid entry in " + k + ". The sample " + sample + " is not found in " + v +" ; Make sure your samples are correctly specified when using the multi-sample feature.") | ||
} else { | ||
return [k,v] | ||
} | ||
} | ||
return [global: paramsGlobal, local: pL] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
params { | ||
global { | ||
project_name = 'scenic_CI' | ||
tenx_folder = '' | ||
} | ||
sc { | ||
file_annotator { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,45 @@ | ||
nextflow.preview.dsl=2 | ||
|
||
toolParams = params.sc.cellranger | ||
|
||
process SC__CELLRANGER__COUNT { | ||
|
||
label params.sc.cellranger.labels.processExecutor | ||
cache 'deep' | ||
container params.sc.cellranger.container | ||
publishDir "${params.global.outdir}/counts", mode: 'link', overwrite: true | ||
clusterOptions "-l nodes=1:ppn=${params.sc.cellranger.count.ppn} -l pmem=${params.sc.cellranger.count.pmem} -l walltime=24:00:00 -A ${params.global.qsubaccount}" | ||
maxForks = params.sc.cellranger.count.maxForks | ||
label toolParams.labels.processExecutor | ||
cache 'deep' | ||
container toolParams.container | ||
publishDir "${params.global.outdir}/counts", mode: 'link', overwrite: true | ||
clusterOptions "-l nodes=1:ppn=${toolParams.count.ppn} -l pmem=${toolParams.count.pmem} -l walltime=24:00:00 -A ${params.global.qsubaccount}" | ||
maxForks = toolParams.count.maxForks | ||
|
||
input: | ||
input: | ||
file(transcriptome) | ||
tuple val(sampleId), file(fastqs) | ||
|
||
output: | ||
tuple val(sampleId), file("${sampleId}/outs") | ||
|
||
script: | ||
def sampleParams = params.parseConfig(sampleId, params.global, toolParams.count) | ||
processParams = sampleParams.local | ||
""" | ||
cellranger count \ | ||
--id=${sampleId} \ | ||
--sample=${sampleId} \ | ||
--fastqs=${fastqs.join(",")} \ | ||
--transcriptome=${transcriptome} \ | ||
${(params.sc.cellranger.count.containsKey('libraries')) ? '--libraries ' + params.sc.cellranger.count.libraries: ''} \ | ||
${(params.sc.cellranger.count.containsKey('featureRef')) ? '--feature-ref ' + params.sc.cellranger.count.featureRef: ''} \ | ||
${(params.sc.cellranger.count.containsKey('expectCells')) ? '--expect-cells ' + params.sc.cellranger.count.expectCells: ''} \ | ||
${(params.sc.cellranger.count.containsKey('forceCells')) ? '--force-cells ' + params.sc.cellranger.count.forceCells: ''} \ | ||
${(params.sc.cellranger.count.containsKey('nosecondary')) ? '--nosecondary ' + params.sc.cellranger.count.nosecondary: ''} \ | ||
${(params.sc.cellranger.count.containsKey('noLibraries')) ? '--no-libraries ' + params.sc.cellranger.count.noLibraries: ''} \ | ||
${(params.sc.cellranger.count.containsKey('chemistry')) ? '--chemistry ' + params.sc.cellranger.count.chemistry: ''} \ | ||
${(params.sc.cellranger.count.containsKey('r1Length')) ? '--r1-length ' + params.sc.cellranger.count.r1Length: ''} \ | ||
${(params.sc.cellranger.count.containsKey('r2Length')) ? '--r2-length ' + params.sc.cellranger.count.r2Length: ''} \ | ||
${(params.sc.cellranger.count.containsKey('lanes')) ? '--lanes ' + params.sc.cellranger.count.lanes: ''} \ | ||
${(params.sc.cellranger.count.containsKey('localCores')) ? '--localcores ' + params.sc.cellranger.count.localCores: ''} \ | ||
${(params.sc.cellranger.count.containsKey('localMem')) ? '--localmem ' + params.sc.cellranger.count.localMem: ''} \ | ||
${(params.sc.cellranger.count.containsKey('indicies')) ? '--indicies ' + params.sc.cellranger.count.indicies: ''} | ||
${(processParams.containsKey('libraries')) ? '--libraries ' + processParams.libraries: ''} \ | ||
${(processParams.containsKey('featureRef')) ? '--feature-ref ' + processParams.featureRef: ''} \ | ||
${(processParams.containsKey('expectCells')) ? '--expect-cells ' + processParams.expectCells: ''} \ | ||
${(processParams.containsKey('forceCells')) ? '--force-cells ' + processParams.forceCells: ''} \ | ||
${(processParams.containsKey('nosecondary')) ? '--nosecondary ' + processParams.nosecondary: ''} \ | ||
${(processParams.containsKey('noLibraries')) ? '--no-libraries ' + processParams.noLibraries: ''} \ | ||
${(processParams.containsKey('chemistry')) ? '--chemistry ' + processParams.chemistry: ''} \ | ||
${(processParams.containsKey('r1Length')) ? '--r1-length ' + processParams.r1Length: ''} \ | ||
${(processParams.containsKey('r2Length')) ? '--r2-length ' + processParams.r2Length: ''} \ | ||
${(processParams.containsKey('lanes')) ? '--lanes ' + processParams.lanes: ''} \ | ||
${(processParams.containsKey('localCores')) ? '--localcores ' + processParams.localCores: ''} \ | ||
${(processParams.containsKey('localMem')) ? '--localmem ' + processParams.localMem: ''} \ | ||
${(processParams.containsKey('indicies')) ? '--indicies ' + processParams.indicies: ''} | ||
""" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
params { | ||
data { | ||
tenx { | ||
cellranger_outs_dir_path = 'data/10x/1k_pbmc/1k_pbmc_*/outs/' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.