-
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.
Refactor initialization process and add genome configuration
This commit refactors the initialization process in the `cli.py` file to include a new `init` command. The `init` command initializes the seqnado pipeline and sets up the correct environmental variables. It also adds the functionality to initialize genome files using a template file. The `get_genomes` function in the `helpers.py` file is modified to read the genome configuration from a JSON file and return the genome values. The commit also includes the addition of a new `init.sh` script that is used to initialize the environment for the SeqNado project. Lastly, a template file `genomes_template.json` is added to the `workflow/config` directory.
- Loading branch information
1 parent
b09d7ef
commit 6361f6e
Showing
4 changed files
with
107 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to initialize the environment for the SeqNado project. | ||
|
||
|
||
echo "Adding SylabsCloud remote to apptainer - This will allow you to download and run the pre-made containers" | ||
apptainer remote add --no-login SylabsCloud cloud.sylabs.io | ||
apptainer remote use SylabsCloud | ||
|
||
|
||
IS_CCB=$(hostname | grep -c "imm-") | ||
|
||
if [ -z "$APPTAINER_BINDPATH" ]; then | ||
if [ $IS_CCB -eq 1 ]; then | ||
export APPTAINER_BINDPATH="/ceph:/ceph, /project:/project, /databank:/databank" | ||
echo 'export APPTAINER_BINDPATH="/ceph:/ceph, /project:/project, /databank:/databank" >> ~/.bashrc | ||
else | ||
echo "This is not a CCB node. Please set the APPTAINER_BINDPATH environment variable to bind the necessary directories." | ||
fi | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"dm6": { | ||
"bt2_indices": "PATH_TO_INDICIES/dm6", | ||
"star_indices": "PATH_TO_STAR/dm6/UCSC/STAR_2.7.10b", | ||
"chromosome_sizes": "PATH/dm6/UCSC/sequence/dm6.chrom.sizes", | ||
"gtf": "PATH/dm6/UCSC/genes/dm6.ncbiRefSeq.gtf", | ||
"blacklist": "PATH/dm6/dm6-blacklist.v2.bed.gz" | ||
} | ||
} |