Skip to content

Commit

Permalink
Merge branch 'lipid_dev_wdl' into 'lipid_dev'
Browse files Browse the repository at this point in the history
Add lipid workflow to lipid_dev branch

See merge request mass-spectrometry/metams!12
  • Loading branch information
kheal committed Dec 19, 2024
2 parents b379afa + ca45251 commit 8d3ed94
Show file tree
Hide file tree
Showing 14 changed files with 1,227 additions and 147 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
*.egg

# Raw thermo data
*.raw

# Metabref token
*.token
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,12 @@ COPY metaMS/ /metams/metaMS/
COPY README.md disclaimer.txt Makefile requirements.txt setup.py /metams/
COPY db/ /metams/db/

#TODO KRH: Remove this section once the CoreMS package is available on PyPI and installable via the requirements.txt file
# Copy the CoreMS tar.gz file into the Docker image
COPY CoreMS-3.2.0.tar.gz /metams/

# Install the CoreMS package from the tar.gz file
RUN pip install /metams/CoreMS-3.2.0.tar.gz

# Install the MetaMS package in editable mode
RUN pip3 install --editable .
26 changes: 26 additions & 0 deletions Dockerfile_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM jcarr87/corems-base-py3.10

# set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONNET_RUNTIME=coreclr

# set working directory
WORKDIR /metams

# Set up the directory structure
COPY metaMS/ /metams/metaMS/
COPY README.md disclaimer.txt Makefile requirements.txt setup.py /metams/
COPY db/ /metams/db/

# install dependencies
RUN pip install --upgrade pip
RUN apt-get update && apt-get install -y libgomp1

# Install the requirements
#RUN pip install pythonnet
RUN pip install -r requirements.txt

# Install the MetaMS package in editable mode
RUN pip install --editable .

14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,23 @@ docker-build:

docker build -t microbiomedata/metams:latest .

docker-build-local:
docker build -t local-metams:latest .

docker-run:
@echo $(data_dir)
@echo $(config_dir)
@docker run -v $(data_dir):/metams/data -v $(config_dir):/metams/configuration microbiomedata/metams:latest metaMS run-gcms-workflow /metams/configuration/metams.toml

wdl-run :
miniwdl run wdl/metaMS.wdl -i wdl/metams_input.json --verbose --no-cache --copy-input-files
wdl-run-gcms :

miniwdl run wdl/metaMS_gcms.wdl -i wdl/metams_input_gcms.json --verbose --no-cache --copy-input-files

wdl-run-lipid :
#TODO KRH: remove the docker-build-local when the docker image is available in dockerhub and
# update the docker image in the wdl file. Good to rebuild for each run while in development
make docker-build-local
miniwdl run wdl/metaMS_lcmslipidomics.wdl -i wdl/metams_input_lipidomics.json --verbose --no-cache --copy-input-files

convert_lipid_rst_to_md:
# convert the lipid documentation from rst to md
Expand Down
Loading

0 comments on commit 8d3ed94

Please sign in to comment.