Skip to content

Commit e0b2d8d

Browse files
committed
Merge branch 'lcms_metab_bjm' into 'lcms_metab'
Add LC metabolomics workflow See merge request mass-spectrometry/metams!22
2 parents 572faa1 + 6268256 commit e0b2d8d

14 files changed

Lines changed: 1514 additions & 194 deletions

.github/workflows/workflow_tests.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ jobs:
2828
python -m pip install --upgrade pip
2929
pip install miniwdl
3030
31-
- name: Download test data for lipidomics
31+
- name: Download LCMS metabolomics database and test data
3232
run: |
33-
make get-lipid-test-data
34-
35-
- name: Run Lipidomics WDL with lipidomics test data
33+
make get-test-data
34+
35+
- name: Run Lipidomics WDL with lipidomics test data and pushed Docker Image
3636
run: |
3737
miniwdl run wdl/metaMS_lcmslipidomics.wdl -i wdl/metams_input_lipidomics.json --verbose --no-cache --copy-input-files
38-
38+
39+
# This will fail until the new Docker image is pushed to Docker Hub
40+
#- name: Run LCMS metabolomics WDL with test data and pushed Docker Image
41+
# run: |
42+
# make wdl-run-lcms-metab
43+
3944
- name: Run GCMS WDL with pushed Docker Image
4045
run: |
4146
miniwdl run wdl/metaMS_gcms.wdl -i wdl/metams_input_gcms.json --verbose --no-cache --copy-input-files
@@ -52,6 +57,10 @@ jobs:
5257
run: |
5358
miniwdl run wdl/metaMS_lcmslipidomics.wdl -i wdl/metams_input_lipidomics_local_docker.json --verbose --no-cache --copy-input-files
5459
55-
- name: Remove lipidomics test data
60+
- name: Run LCMS metabolomics WDL with local Docker Image based on Dockerfile
61+
run: |
62+
miniwdl run wdl/metaMS_lcms_metabolomics.wdl -i wdl/metams_input_lcms_metabolomics_local_docker.json --verbose --no-cache --copy-input-files
63+
64+
- name: Remove test data
5665
run: |
5766
rm -rf test_data

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY metaMS/ /metams/metaMS/
2121
COPY README.md disclaimer.txt Makefile requirements.txt setup.py /metams/
2222

2323
# Install the correct version of CoreMS from github
24-
RUN pip install git+https://github.com/EMSL-Computing/CoreMS.git@v3.3.0
24+
RUN pip install git+https://github.com/EMSL-Computing/CoreMS.git@v3.6.0
2525

2626
# Install the MetaMS package in editable mode
2727
RUN pip3 install --editable .

Makefile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,18 @@ wdl-run-gcms-local:
119119
@make docker-build-local
120120
@miniwdl run wdl/metaMS_gcms.wdl -i wdl/metams_input_gcms_local_docker.json --verbose --no-cache --copy-input-files
121121

122+
get-lcms-database:
123+
@echo "Downloading LC-MS database"
124+
@mkdir -p test_data/test_lcms_metab_data
125+
@curl --retry 3 --retry-delay 5 --connect-timeout 30 --max-time 300 -L -o test_data/test_lcms_metab_data/database.msp https://nmdcdemo.emsl.pnnl.gov/metabolomics/databases/20250407_gnps_curated.msp
126+
@echo "LC-MS database downloaded"
127+
122128
get-lipid-test-data:
123129
@echo "Downloading test data for lipidomics"
124130
@mkdir -p test_data
125-
@curl -L -o test_data/test_lipid_data.zip https://nmdcdemo.emsl.pnnl.gov/lipidomics/test_data/metams_lipid_test_data/test_lipid_data.zip
126-
@unzip test_data/test_lipid_data.zip -d test_data/
131+
@mkdir -p test_data/test_lipid_data
132+
@curl --retry 3 --retry-delay 5 --connect-timeout 30 --max-time 300 -L -o test_data/test_lipid_data.zip https://nmdcdemo.emsl.pnnl.gov/lipidomics/test_data/metams_lipid_test_data/test_lipid_data.zip
133+
@unzip test_data/test_lipid_data.zip -d test_data/test_lipid_data/
127134
@rm test_data/test_lipid_data.zip
128135
@echo "Test data downloaded and unzipped"
129136

@@ -134,6 +141,17 @@ wdl-run-lipid-local:
134141
@make docker-build-local
135142
miniwdl run wdl/metaMS_lcmslipidomics.wdl -i wdl/metams_input_lipidomics_local_docker.json --verbose --no-cache --copy-input-files
136143

144+
get-test-data:
145+
@make get-lipid-test-data
146+
@make get-lcms-database
147+
148+
wdl-run-lcms-metab :
149+
miniwdl run wdl/metaMS_lcms_metabolomics.wdl -i wdl/metams_input_lcms_metabolomics.json --verbose --no-cache --copy-input-files
150+
151+
wdl-run-lcms-metab-local:
152+
@make docker-build-local
153+
miniwdl run wdl/metaMS_lcms_metabolomics.wdl -i wdl/metams_input_lcms_metabolomics_local_docker.json --verbose --no-cache --copy-input-files
154+
137155
convert_lipid_rst_to_md:
138156
# convert the lipid documentation from rst to md and render it into html
139157
pandoc -f rst -t markdown -o docs/lcms_lipidomics/README_LCMS_LIPID.md docs/lcms_lipidomics/index.rst

0 commit comments

Comments
 (0)