generated from CCBR/CCBR_NextflowTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #16 from CCBR/cli
Update CLI
- Loading branch information
Showing
25 changed files
with
438 additions
and
551 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
version=$1 | ||
|
||
repo_path=/data/CCBR_Pipeliner/Pipelines/CRUISE/cruise-dev/ | ||
install_path=/data/CCBR_Pipeliner/Pipelines/CRUISE/${version} | ||
bin_path=${install_path}/bin/ | ||
|
||
. "/data/CCBR_Pipeliner/db/PipeDB/Conda/etc/profile.d/conda.sh" | ||
conda activate py311 | ||
|
||
echo "Installing CRUISE to ${install_path}" | ||
pip install ${repo_path} --target ${install_path} | ||
chmod +x ${install_path}/cruise/bin/*.* | ||
|
||
if [[ ":$PATH:" != *":${bin_path}:"* ]];then | ||
export PATH="${PATH}:${bin_path}" | ||
fi | ||
|
||
if [[ ":$PYTHONPATH:" != *":${install_path}:"* ]];then | ||
export PYTHONPATH="${PYTHONPATH}:${install_path}" | ||
fi |
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,29 @@ | ||
params { | ||
config_profile_description = 'FRCE config' | ||
max_memory = '224 GB' | ||
max_cpus = 32 | ||
max_time = '72 h' | ||
|
||
// CCBR shared resource paths | ||
index_dir = null // TODO | ||
fastq_screen { | ||
conf = "assets/fastq_screen_frce.conf" // TODO | ||
db_dir = null // TODO | ||
} | ||
} | ||
|
||
singularity { | ||
enabled = true | ||
autoMounts = true | ||
cacheDir = "/mnt/projects/CCBR-Pipelines/SIFs" | ||
envWhitelist='https_proxy,http_proxy,ftp_proxy,DISPLAY,SLURM_JOBID,SINGULARITY_BINDPATH' | ||
} | ||
|
||
process.scratch = null // TODO | ||
|
||
process.stageInMode = 'symlink' | ||
process.stageOutMode = 'rsync' | ||
|
||
// for running pipeline on group sharing data directory, this can avoid inconsistent files timestamps | ||
process.cache = 'lenient' | ||
} |
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,6 @@ | ||
params { | ||
config_profile_name = 'Run tasks locally on a slurm interactive node' | ||
max_memory = '220 GB' | ||
max_cpus = 56 | ||
max_time = '12 h' | ||
} |
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,27 @@ | ||
|
||
executor { | ||
|
||
$slurm { | ||
queue = 'norm' | ||
queueSize = 200 | ||
pollInterval = '2 min' | ||
queueStatInterval = '5 min' | ||
submitRateLimit = '6/1min' | ||
retry.maxAttempts = 1 | ||
} | ||
} | ||
|
||
process { | ||
executor = 'slurm' | ||
maxRetries = 1 | ||
|
||
clusterOptions = ' --gres=lscratch:200 ' | ||
|
||
scratch = '/lscratch/$SLURM_JOBID' | ||
|
||
stageInMode = 'symlink' | ||
stageOutMode = 'rsync' | ||
|
||
// for running pipeline on group sharing data directory, this can avoid inconsistent files timestamps | ||
cache = 'lenient' | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,63 @@ | ||
# Getting Started with CRUISE | ||
|
||
TODO intro paragraph | ||
|
||
## Installation | ||
|
||
CRUISE is installed on the Biowulf and FRCE clusters as part of the | ||
`ccbrpipeliner` module. | ||
If you'd like to run the pipeline in a different execution environment, | ||
take a look at [how to run the nextflow pipeline directly](nextflow.md). | ||
|
||
## Prepare a sample sheet | ||
|
||
TODO | ||
|
||
## Initialize | ||
|
||
Copy the configuration files to your current working directory | ||
|
||
```sh | ||
cruise init | ||
``` | ||
|
||
## Run | ||
|
||
TODO preview, stub, mode=slurm | ||
|
||
TODO required params | ||
|
||
Run preview to view processes that will run: | ||
|
||
```sh | ||
cruise run -profile test -preview | ||
``` | ||
|
||
Launch a stub run to view processes that will run and download containers: | ||
|
||
```sh | ||
cruise run -profile test,singularity -stub | ||
``` | ||
|
||
Run the test dataset using the test profile: | ||
|
||
```sh | ||
cruise run -profile test,singularity | ||
``` | ||
|
||
or explicitly specify the output directory and input: | ||
|
||
```sh | ||
cruise run -profile singularity --outdir results/test --input assets/samplesheet_test.csv | ||
``` | ||
|
||
### Custom reference genome | ||
|
||
TODO different required params | ||
|
||
Create and use a custom reference genome: | ||
|
||
```sh | ||
cruise run -profile test -entry MAKE_REFERENCE | ||
cruise run -profile test -c results/test/genome/custom_genome.config | ||
``` |
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.