Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
# https://github.com/GoogleContainerTools/base-images-docker/tree/master/ubuntu
FROM marketplace.gcr.io/google/ubuntu1804:latest

#RUN echo "Uncomment to clear cached layers below this statement (20190708-1259)"
# RUN echo "Uncomment to clear cached layers below this statement (2020-01-07-0947)"

# Install Python 3.6
# (Auxiliary Ubuntu packages for Python assume Python 3.6;
# configuring them for Python >= 3.7 is not straightforward.)
# Install Python 3.7
RUN apt-get -y update && \
apt -y install software-properties-common dirmngr apt-transport-https lsb-release ca-certificates && \
apt -y install software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt -y install python3.6 && \
apt -y install python3-pip
apt -y install python3-pip && \
apt -y install python3.7

RUN python3.7 -m pip install pip

# Set cleaner defaults (`alias` fails)
RUN ln -s /usr/bin/python3 /usr/bin/python && \
RUN ln -s /usr/bin/python3.7 /usr/bin/python && \
ln -s /usr/bin/pip3 /usr/bin/pip

# Copy contents of this repo into the Docker image
Expand All @@ -34,7 +34,7 @@ COPY . scp-ingest-pipeline
WORKDIR /scp-ingest-pipeline

# Install Python dependencies
RUN pip install -r requirements.txt
RUN python3.7 -m pip install -r requirements.txt

WORKDIR /scp-ingest-pipeline/ingest
CMD ["python", "ingest.py", "--help"]
CMD ["python", "ingest_pipeline.py", "--help"]
2 changes: 1 addition & 1 deletion ingest/ingest_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
python ingest_pipeline.py --study-id 5d276a50421aa9117c982845 --study-file-id 5dd5ae25421aa910a723a337 ingest_subsample --cluster-file ../tests/data/test_1k_cluster_Data.csv --name custer1 --cell-metadata-file ../tests/data/test_1k_metadata_Data.csv --subsample

# Ingest mtx files
python ingest_pipeline.py --study-id 5d276a50421aa9117c982845 --study-file-id 5dd5ae25421aa910a723a337 ingest_expression --taxon-name 'Homo Sapiens' --taxon-common-name humans --matrix-file ../tests/data/matrix.mtx --matrix-file-type mtx --gene-file ../tests/data/genes.tsv --barcode-file ../tests/data/barcodes.tsv
python ingest_pipeline.py --study-id 5d276a50421aa9117c982845 --study-file-id 5dd5ae25421aa910a723a337 ingest_expression --taxon-name 'Homo sapiens' --taxon-common-name humans --matrix-file ../tests/data/matrix.mtx --matrix-file-type mtx --gene-file ../tests/data/genes.tsv --barcode-file ../tests/data/barcodes.tsv
"""
import argparse
from typing import Dict, Generator, List, Tuple, Union # noqa: F401
Expand Down