Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for beebop #217

Merged
merged 11 commits into from
Sep 7, 2022
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
recursive-include scripts *.py
recursive-include PopPUNK/data *.gz
recursive-include PopPUNK/data *.pkl
recursive-include vendor *
recursive-include src *
include CMakeLists.txt
2 changes: 1 addition & 1 deletion PopPUNK/visualise.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def generate_visualisations(query_db,
combined_seq = rlist

# Fill in qq-distances if required
if self == False and tree != "none":
if self == False:
sys.stderr.write("Note: Distances in " + distances + " are from assign mode\n"
"Note: Distance will be extended to full all-vs-all distances\n"
"Note: Re-run poppunk_assign with --update-db to avoid this\n")
Expand Down
14 changes: 9 additions & 5 deletions docker2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ RUN add-apt-repository https://downloads.skewed.de/apt && \
ln -s /usr/lib/python3/dist-packages/graph_tool \
/usr/local/lib/python3.10/site-packages

COPY requirements.txt /tmp/requirements.txt
RUN pip install pybind11 && \
pip install -r /tmp/requirements.txt && \
rm -f /tmp/requirements.txt
RUN pip install pybind11[global]

COPY . /src
WORKDIR /src
RUN python setup.py install
RUN pip install .

RUN pip install cmake plotly ffmpeg

RUN git clone -b bacpop-49 https://github.com/bacpop/mandrake.git && \
cd mandrake && \
python setup.py install && \
cd .. && rm -r mandrake
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@ def build_extension(self, ext):
'Programming Language :: Python :: 3.8',
],
python_requires='>=3.8.0',
install_requires=['biopython',
'h5py',
'hdbscan',
'matplotlib',
# 'mandrake', #uncomment when on PyPI
'networkx',
'pandas',
'pp-sketchlib',
'requests',
'scikit-learn',
'tqdm',
'treeswift',
],
keywords='bacteria genomics population-genetics k-mer',
packages=['PopPUNK'],
entry_points={
Expand Down