Skip to content

Commit 84599c2

Browse files
Merge pull request #12 from LadnerLab/adding-psea-docs
Adding psea docs
2 parents 0232df5 + 5050784 commit 84599c2

File tree

17 files changed

+30226
-3
lines changed

17 files changed

+30226
-3
lines changed

.github/workflows/build_docs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
with:
4747
python-version: 3.8
4848

49+
- name: Setup R
50+
uses: r-lib/actions/setup-r@v2
51+
4952
# Checkout the main branch (docs will be built from this)
5053
- uses: actions/checkout@v2
5154
with:
@@ -61,8 +64,17 @@ jobs:
6164
run: |
6265
# version should change as plugins are updated in accordance to qiime2 version (as needed)
6366
envFile=qiime2-2023.7-py38-linux-conda.yml
64-
# wget https://raw.githubusercontent.com/qiime2/environment-files/master/2023.7/release/$envFile
6567
conda env create -q -p ./test-env --file $envFile
68+
69+
- name: Install clusterProfiler package
70+
working-directory: ${{ github.workspace }}/main
71+
shell: bash -l {0}
72+
run: |
73+
which Rscript
74+
source "$CONDA/etc/profile.d/conda.sh"
75+
conda activate ./test-env
76+
# TODO: update install_r_packages.R as needed
77+
Rscript install_r_packages.R
6678
6779
- name: Install Sphinx requirements
6880
working-directory: ${{ github.workspace }}/main/source

.github/workflows/test_docs.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
with:
4747
python-version: 3.8
4848

49+
- name: Setup R
50+
uses: r-lib/actions/setup-r@v2
51+
4952
# Checkout the main branch (docs will be built from this)
5053
- uses: actions/checkout@v2
5154
with:
@@ -61,8 +64,24 @@ jobs:
6164
run: |
6265
# version should change as plugins are updated in accordance to qiime2 version (as needed)
6366
envFile=qiime2-2023.7-py38-linux-conda.yml
64-
# wget https://raw.githubusercontent.com/qiime2/environment-files/master/2023.7/release/$envFile
6567
conda env create -q -p ./test-env --file $envFile
68+
69+
- name: Verify QIIME 2 Install
70+
working-directory: ${{ github.workspace }}/main
71+
run: |
72+
source "$CONDA/etc/profile.d/conda.sh"
73+
conda activate ./test-env
74+
qiime info
75+
76+
- name: Install clusterProfiler package
77+
working-directory: ${{ github.workspace }}/main
78+
shell: bash -l {0}
79+
run: |
80+
which Rscript
81+
source "$CONDA/etc/profile.d/conda.sh"
82+
conda activate ./test-env
83+
# TODO: update install_r_packages.R as needed
84+
Rscript install_r_packages.R
6685
6786
- name: Install Sphinx requirements
6887
working-directory: ${{ github.workspace }}/main/source

install_r_packages.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Please note there is also a package via Anaconda: https://anaconda.org/bioconda/bioconductor-clusterprofiler
2+
# Additionally, please be aware you may want to have a dedicated environment if
3+
# you install via Anaconda because of conflicts with various dependencies
4+
5+
# Install igraph: https://github.com/igraph/rigraph
6+
options(
7+
repos = c(
8+
igraph = 'https://igraph.r-universe.dev',
9+
CRAN = 'https://cloud.r-project.org'
10+
)
11+
)
12+
install.packages('igraph')
13+
14+
# Installation instructions for Bioconductor: https://cran.r-project.org/web/packages/BiocManager/vignettes/BiocManager.html#installing-biocmanager
15+
install.packages("BiocManager", repos = "https://cloud.r-project.org")
16+
17+
BiocManager::install() # update Bioconductor packages
18+
BiocManager::install("clusterProfiler", force=TRUE)

qiime2-2023.7-py38-linux-conda.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ dependencies:
4545
- bioconductor-delayedarray=0.24.0
4646
- bioconductor-delayedmatrixstats=1.20.0
4747
- bioconductor-dirichletmultinomial=1.40.0
48+
- bioconductor-enrichplot=1.18.0
4849
- bioconductor-genomeinfodb=1.34.9
4950
- bioconductor-genomeinfodbdata=1.2.9
5051
- bioconductor-genomicalignments=1.34.0
5152
- bioconductor-genomicranges=1.50.0
53+
- bioconductor-ggtree=3.6.0
5254
- bioconductor-iranges=2.32.0
5355
- bioconductor-matrixgenerics=1.10.0
5456
- bioconductor-mia=1.6.0
@@ -410,6 +412,7 @@ dependencies:
410412
- r-beeswarm=0.4.0
411413
- r-bh=1.81.0_1
412414
- r-bibtex=0.5.1
415+
- r-biocmanager=1.30.22
413416
- r-bit=4.0.5
414417
- r-bit64=4.0.5
415418
- r-bitops=1.0_7
@@ -449,6 +452,7 @@ dependencies:
449452
- r-ellipsis=0.3.2
450453
- r-emmeans=1.8.8
451454
- r-energy=1.7_11
455+
- r-essentials=4.2
452456
- r-estimability=1.4.1
453457
- r-evaluate=0.21
454458
- r-exact=3.2
@@ -472,7 +476,9 @@ dependencies:
472476
- r-generics=0.1.3
473477
- r-getopt=1.20.3
474478
- r-ggbeeswarm=0.7.2
479+
- r-ggforce=0.4.2
475480
- r-ggplot2=3.4.3
481+
- r-ggraph=2.1.0
476482
- r-ggrastr=1.0.2
477483
- r-ggrepel=0.9.3
478484
- r-gld=2.6.6
@@ -579,11 +585,13 @@ dependencies:
579585
- r-rvest=1.0.3
580586
- r-sass=0.4.7
581587
- r-scales=1.2.1
588+
- r-scatterpie=0.2.2
582589
- r-scs=3.2.4
583590
- r-selectr=0.4_2
584591
- r-sitmo=2.0.2
585592
- r-snow=0.4_4
586593
- r-sp=2.0_0
594+
- r-splines2=0.5.1
587595
- r-statmod=1.5.0
588596
- r-stringi=1.7.12
589597
- r-stringr=1.5.0
@@ -621,6 +629,7 @@ dependencies:
621629
- rfc3339-validator=0.1.4
622630
- rfc3986-validator=0.1.1
623631
- rpds-py=0.10.0
632+
- rpy2=3.5.11
624633
- samtools=1.17
625634
- scikit-bio=0.5.8
626635
- scikit-learn=0.24.1

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ q2-autopepsirf @ git+https://github.com/LadnerLab/q2-autopepsirf@main
1313
q2-pepsirf @ git+https://github.com/LadnerLab/q2-pepsirf@sync-deconv-ISS161
1414
q2-ps-plot @ git+https://github.com/LadnerLab/q2-ps-plot@upgrade-altair-v5
1515
q2-ps-qc @ git+https://github.com/LadnerLab/q2-ps-qc@main
16+
q2-PSEA @ git+https://github.com/LadnerLab/q2-PSEA@main

source/Pepsirf_Plugins/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Installation
88
q2-ps-plot
99
q2-ps-qc
1010
q2-autopepsirf
11+
q2-PSEA

source/Pepsirf_Plugins/q2-PSEA.rst

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
q2-PSEA
2+
=======
3+
4+
Qiime2 plugin used to accomplish Peptide Set Enrichment Analysis (PSEA) and
5+
visualize results.
6+
7+
Installation
8+
------------
9+
10+
11+
Dependencies:
12+
`````````````
13+
14+
- ``qiime2-2023.7 or later``
15+
- ``q2-pepsirf``
16+
- ``q2-ps-plot``
17+
- ``altair v5.0.0 or later``
18+
- ``altair_saver v0.5.0 or later``
19+
- ``rpy2 v3.5.11 or later``
20+
21+
R Dependencies:
22+
```````````````
23+
24+
- ``r-base v4.2.2 or later``
25+
- ``r-biocmanager``
26+
- ``r-essentials v1.7.0 or later``
27+
- ``r-igraph v1.4.2 or later``
28+
- ``r-ggraph v2.1.0 or later``
29+
- ``r-ggforce v0.4.1 or later``
30+
- ``r-scatterpie v0.2.1 or later``
31+
- ``r-splines2 v0.5.1 or later``
32+
- ``bioconductor-ggtree v3.6.0 or later``
33+
- ``bioconductor-enrichplot v1.18.0 or later``
34+
35+
Qiime2 Installation:
36+
````````````````````
37+
38+
Visit: https://docs.qiime2.org/2022.2/install/ for intallation documentation on Qiime2
39+
40+
41+
q2-pepsirf Installation:
42+
````````````````````````
43+
44+
Visit: https://ladnerlab.github.io/pepsirf-q2-plugin-docs/Pepsirf_Plugins/q2-pepsirf1/
45+
for installation documentation on q2-pepsirf
46+
47+
48+
q2-ps-plot Installation:
49+
`````````````````````````
50+
51+
Visit: https://ladnerlab.github.io/pepsirf-q2-plugin-docs/Pepsirf_Plugins/q2-ps-plot/
52+
for installation documentation on q2-ps-plot
53+
54+
55+
q2-PSEA Installation:
56+
`````````````````````
57+
58+
Make sure your Qiime2 conda environment is activated by running the command:
59+
60+
``conda activate qiime2-2023.7``
61+
62+
You can replace qiime2-2023.7 above with whichever version of QIIME 2 you have currently installed.
63+
64+
To help make installing R dependencies easier, please use this command if you have trouble:
65+
``conda install -c conda-forge r-base r-essentials r-igraph r-ggraph r-ggforce r-scatterpie rpy2 r-biocmanager r-splines2``
66+
``conda install -c bioconda bioconductor-ggtree bioconductor-enrichplot``
67+
68+
You will need to install clusterProfiler through R to avoid conflicting versions with some packages:
69+
Please download the custom R script to do so here: https://github.com/LadnerLab/q2-PSEA/blob/main/install_r_packages.R
70+
``Rscript path/to/install_r_packages.R``
71+
``rm path/to/install_r_packages.R``
72+
73+
Now you are ready to install q2-PSEA. Run the following commands:
74+
75+
``pip install git+https://github.com/LadnerLab/q2-PSEA.git``
76+
77+
Run qiime info to check for a successful installation. If installation was successful, you should see psea: version in the list of installed plugins.
78+
79+
Using provided example data, average run time for 3 trials was: 1 Minute 21 Seconds
80+
81+
Updating
82+
--------
83+
84+
To update q2-PSEA, run the following command:
85+
86+
``pip install -U git+https://github.com/LadnerLab/q2-PSEA.git``

source/Pepsirf_Plugins/q2-autopepsirf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ Typical Run Time: 4.43 Seconds
6161
Updating
6262
--------
6363

64-
To update q2-pepsirf, run the following command:
64+
To update q2-autopepsirf, run the following command:
6565

6666
``pip install -U git+https://github.com/LadnerLab/q2-autopepsirf.git``

0 commit comments

Comments
 (0)