-
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.
feat(pipeline): Added -s option to allow for scaling resources (memor…
…y and time) (#202) * Refactor pyproject.toml to remove drmaa dependency * feat: add container def file * feat: Add option to scale memory and time resources for pipeline * Add seqnado.sif to .gitignore * Refactor assay-specific Snakefiles to include SCALE_RESOURCES variable The commit refactors the assay-specific Snakefiles (`snakefile_atac`, `snakefile_chip`, `snakefile_snp`) to include the `SCALE_RESOURCES` variable. This variable is used to scale memory and time resources for the pipeline. The default value is set to 1, but it can be customized by setting the `SCALE_RESOURCES` environment variable. Co-authored-by: alsmith <[email protected]> * Refactor Snakefiles to include SCALE_RESOURCES variable * Refactor define_memory_requested and define_time_requested functions * Refactor assay-specific Snakefiles to include SCALE_RESOURCES variable * Refactor define_memory_requested and define_time_requested functions * Refactor define_memory_requested and define_time_requested functions to fix calculation bug * Refactor peak_call_grouped.smk to use define_memory_requested function for memory resource calculation * Refactor peak_call_grouped.smk to use define_memory_requested function for memory resource calculation * Refactor peak_call_grouped.smk to use define_memory_requested function for memory resource calculation * Ensure that the define_*_requested functions are imported in all rules
- Loading branch information
1 parent
6230dd9
commit 6c9fdcc
Showing
26 changed files
with
168 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ test_rna_size_factors.ipynb | |
tests/data/* | ||
pytestdebug.log | ||
sps* | ||
seqnado.sif |
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,39 @@ | ||
BootStrap: docker | ||
From: mambaorg/micromamba:bookworm | ||
|
||
%post | ||
|
||
# Pre set up | ||
cd /opt/ | ||
apt update | ||
apt install -y curl gcc git cmake make wget | ||
|
||
# Install singularity | ||
wget https://github.com/apptainer/apptainer/releases/download/v1.3.3/apptainer_1.3.3_amd64.deb | ||
apt install -y ./apptainer_1.3.3_amd64.deb | ||
apptainer remote add --no-login SylabsCloud cloud.sylabs.io | ||
apptainer remote use SylabsCloud | ||
|
||
|
||
|
||
# Mamba packages | ||
#micromamba install -y -n base -f /opt/environment.yml | ||
micromamba install -y -n base -c conda-forge python pip | ||
export PATH="/opt/conda/bin:$PATH" | ||
|
||
# Install Seqnado | ||
git clone https://github.com/alsmith151/SeqNado.git | ||
cd SeqNado | ||
/opt/conda/bin/python -m pip install . | ||
|
||
# Clean | ||
#curl gcc git cmake make libtool g++ pkgconfig openssl-dev linux-headers | ||
micromamba clean -afy | ||
/opt/conda/bin/python -m pip cache purge | ||
find /opt/conda/ -follow -type f -name '*.a' -delete | ||
find /opt/conda/ -follow -type f -name '*.pyc' -delete | ||
find /opt/conda/ -follow -type f -name '*.js.map' -delete | ||
|
||
|
||
%environment | ||
export PATH=/opt/conda/bin:$PATH |
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
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
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.