Skip to content

Commit 167b5ec

Browse files
Fixed a couple bugs in PSEA tutorial. Redownloaded a fresh qiime2 env file, and updated docs workflows so clusterProfiler dependencies get installed the recommended way which is outlined in the installation instructions for q2-PSEA.
1 parent ed600db commit 167b5ec

File tree

5 files changed

+29
-18
lines changed

5 files changed

+29
-18
lines changed

.github/workflows/build_docs.yml

Lines changed: 14 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,7 +64,6 @@ 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
6668
6769
- name: Install R requirements
@@ -70,6 +72,17 @@ jobs:
7072
run: |
7173
source "$CONDA/etc/profile.d/conda.sh"
7274
conda activate ../test-env
75+
conda install -c conda-forge r-base r-essentials r-igraph r-ggraph r-ggforce r-scatterpie rpy2 r-biocmanager r-splines2
76+
conda install -c bioconda bioconductor-ggtree bioconductor-enrichplot
77+
78+
- name: Install clusterProfiler package
79+
working-directory: ${{ github.workspace }}/main
80+
shell: bash -l {0}
81+
run: |
82+
which Rscript
83+
source "$CONDA/etc/profile.d/conda.sh"
84+
conda activate ../test-env
85+
# TODO: update install_r_packages.R as needed
7386
Rscript install_r_packages.R
7487
7588
- name: Install Sphinx requirements

.github/workflows/test_docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,25 @@ jobs:
6464
run: |
6565
# version should change as plugins are updated in accordance to qiime2 version (as needed)
6666
envFile=qiime2-2023.7-py38-linux-conda.yml
67-
# wget https://raw.githubusercontent.com/qiime2/environment-files/master/2023.7/release/$envFile
6867
conda env create -q -p ./test-env --file $envFile
6968
7069
- name: Install R requirements
70+
working-directory: ${{ github.workspace }}/main
71+
shell: bash -l {0}
72+
run: |
73+
source "$CONDA/etc/profile.d/conda.sh"
74+
conda activate ../test-env
75+
conda install -c conda-forge r-base r-essentials r-igraph r-ggraph r-ggforce r-scatterpie rpy2 r-biocmanager r-splines2
76+
conda install -c bioconda bioconductor-ggtree bioconductor-enrichplot
77+
78+
- name: Install clusterProfiler package
7179
working-directory: ${{ github.workspace }}/main
7280
shell: bash -l {0}
7381
run: |
7482
which Rscript
7583
source "$CONDA/etc/profile.d/conda.sh"
7684
conda activate ../test-env
85+
# TODO: update install_r_packages.R as needed
7786
Rscript install_r_packages.R
7887
7988
- name: Install Sphinx requirements

qiime2-2023.7-py38-linux-conda.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ dependencies:
99
- _r-mutex=1.0.1
1010
- alsa-lib=1.2.8
1111
- altair=5.0.1
12-
- altair_saver=0.5.0
1312
- anyio=3.7.1
1413
- appdirs=1.4.4
1514
- argcomplete=3.1.1
@@ -45,12 +44,10 @@ dependencies:
4544
- bioconductor-delayedarray=0.24.0
4645
- bioconductor-delayedmatrixstats=1.20.0
4746
- bioconductor-dirichletmultinomial=1.40.0
48-
- bioconductor-enrichplot=1.18.0
4947
- bioconductor-genomeinfodb=1.34.9
5048
- bioconductor-genomeinfodbdata=1.2.9
5149
- bioconductor-genomicalignments=1.34.0
5250
- bioconductor-genomicranges=1.50.0
53-
- bioconductor-ggtree=3.6.0
5451
- bioconductor-iranges=2.32.0
5552
- bioconductor-matrixgenerics=1.10.0
5653
- bioconductor-mia=1.6.0
@@ -412,7 +409,6 @@ dependencies:
412409
- r-beeswarm=0.4.0
413410
- r-bh=1.81.0_1
414411
- r-bibtex=0.5.1
415-
- r-biocmanager
416412
- r-bit=4.0.5
417413
- r-bit64=4.0.5
418414
- r-bitops=1.0_7
@@ -452,7 +448,6 @@ dependencies:
452448
- r-ellipsis=0.3.2
453449
- r-emmeans=1.8.8
454450
- r-energy=1.7_11
455-
- r-essentials=1.7.0
456451
- r-estimability=1.4.1
457452
- r-evaluate=0.21
458453
- r-exact=3.2
@@ -476,9 +471,7 @@ dependencies:
476471
- r-generics=0.1.3
477472
- r-getopt=1.20.3
478473
- r-ggbeeswarm=0.7.2
479-
- r-ggforce=0.4.1
480474
- r-ggplot2=3.4.3
481-
- r-ggraph=2.1.0
482475
- r-ggrastr=1.0.2
483476
- r-ggrepel=0.9.3
484477
- r-gld=2.6.6
@@ -585,13 +578,11 @@ dependencies:
585578
- r-rvest=1.0.3
586579
- r-sass=0.4.7
587580
- r-scales=1.2.1
588-
- r-scatterpie=0.2.1
589581
- r-scs=3.2.4
590582
- r-selectr=0.4_2
591583
- r-sitmo=2.0.2
592584
- r-snow=0.4_4
593585
- r-sp=2.0_0
594-
- r-splines2=0.5.1
595586
- r-statmod=1.5.0
596587
- r-stringi=1.7.12
597588
- r-stringr=1.5.0
@@ -629,15 +620,13 @@ dependencies:
629620
- rfc3339-validator=0.1.4
630621
- rfc3986-validator=0.1.1
631622
- rpds-py=0.10.0
632-
- rpy2=3.5.11
633623
- samtools=1.17
634624
- scikit-bio=0.5.8
635625
- scikit-learn=0.24.1
636626
- scipy=1.10.0
637627
- seaborn=0.12.2
638628
- seaborn-base=0.12.2
639629
- sed=4.8
640-
- selenium=4.2.0
641630
- send2trash=1.8.2
642631
- sepp=4.3.10
643632
- setproctitle=1.3.2

source/tutorials/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Tutorials
99
ps-plot
1010
ps-qc
1111
pepsirf
12+
psea

source/tutorials/q2-PSEA.rst renamed to source/tutorials/psea.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,19 @@ Here we will test q2-PSEA's generate-vis module by running the following command
3535

3636
scatter_plot, volcano_plot = use.action(
3737
use.UsageAction(
38-
plugin_id="q2_PSEA",
39-
action_id="generate_vis"
38+
plugin_id="psea",
39+
action_id="make_psea_table"
4040
),
4141
use.UsageInputs(
4242
scores_file="source/data/IM0031_PV2T_25nt_raw_2mm_i1mm_Z-HDI75.tsv",
4343
pairs_file="source/data/pairs.tsv",
4444
peptide_sets_file="source/data/input.gmt",
45-
theshold=0.750000,
45+
threshold=0.750000,
4646
species_taxa_file="source/data/species_taxa.tsv",
4747
min_size=3,
4848
max_size=5000,
4949
permutation_num=10000,
50-
table_dir="psea-example-tables",
51-
pepsirf_binary = "/home/runner/work/pepsirf-q2-plugin-docs/pepsirf-q2-plugin-docs/pepsirf"
50+
table_dir="psea-example-tables"
5251
),
5352
use.UsageOutputNames(
5453
scatter_plot="scatter_plot",

0 commit comments

Comments
 (0)