Skip to content

Commit

Permalink
adding leafcutter conda module building instructions and conda env/se…
Browse files Browse the repository at this point in the history
…ssion info files
  • Loading branch information
gpertea committed Jul 26, 2024
1 parent a92ce4f commit c4f7acb
Show file tree
Hide file tree
Showing 9 changed files with 489 additions and 2 deletions.
Empty file modified FastQC/0.11.8/README.md
100644 → 100755
Empty file.
Empty file modified dissect/dc45940c/.gitignore
100644 → 100755
Empty file.
Empty file modified find_uninstalled.R
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions leafcutter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leafcutter*/*
48 changes: 48 additions & 0 deletions leafcutter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Installation

This uses the module conda/3-24 to benefit for using the libmamba solver.

```bash
module load conda/3-24
conda create /jhpce/shared/libd/core/leafcutter/leafcutter-0.2.9 --solver=libmamba python=3.10 r-base=4.0.5 radian
conda activate /jhpce/shared/libd/core/leafcutter/leafcutter-0.2.9
```
To prevent unexpected upgrades to newer versions of R, which seem to break leafcutter installation, we pin the R version:

```bash
echo "r-base 4.0.*" >> /jhpce/shared/libd/core/leafcutter/leafcutter-0.2.9/conda-meta/pinned
```

Then we install various pre-built packagesa for this R version.

```bash
conda install r-devtools r-rstantools numpy scipy scikit-learn
conda install -c bioconda bioconductor-biobase bioconductor-dirichletmultinomial bioconductor-summarizedexperiment \
bioconductor-edger bioconductor-limma bioconductor-deseq2 bioconductor-rtracklayer
```

Then, in an R session:

```R
devtools::install_github("davidaknowles/leafcutter/leafcutter")
```

For convenience (and access to the other scripts related to the leafcutter workflow), I also cloned the leafcutter repository:
```bash
cd /jhpce/shared/libd/core/leafcutter/leafcutter-0.2.9
git clone https://github.com/davidaknowles/leafcutter.git
# for convenience also copy some programs related to the leafcutter workflow
cp ~gpertea1/sw/bin/{samtools,regtools,bedtools,bgzip} bin/
cp leafcutter/{clustering,scripts}/*.{py,pl,R,sh} bin/
# save current environment and session info
conda export > leafcutter-0.2.9.yaml
R -e 'library(leafcutter);sessionInfo()' > sessionInfo.txt
```

Set the proper permissions and version control files
```bash
cd /jhpce/shared/libd/core/leafcutter
echo "leafcutter*/*" > .gitignore
chmod -R a+rX .
git add .gitignore README.md sessionInfo.txt leafcutter-0.2.9.yaml leafcutter-0.2.9/conda-meta/pinned
```
Loading

0 comments on commit c4f7acb

Please sign in to comment.