-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactoring
- Loading branch information
Showing
11 changed files
with
264 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
__pycache__/ | ||
strainy/.DS_Store | ||
.DS_Store | ||
build/ | ||
dist/ | ||
strainy.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
FROM ubuntu:22.04 | ||
MAINTAINER Mikhail Kolmogorov, [email protected] | ||
|
||
# update and install dependencies | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata && \ | ||
apt-get -y install cmake git make gcc g++ autoconf bzip2 lzma-dev zlib1g-dev tabix libbz2-dev && \ | ||
apt-get -y install libcurl4-openssl-dev libpthread-stubs0-dev liblzma-dev libhdf5-dev && \ | ||
apt-get -y install python3-pip python3-virtualenv virtualenv python3-dev && \ | ||
apt-get -y install wget libz-dev libncurses5-dev libgsl-dev && \ | ||
apt-get -y install graphviz libgraphviz-dev pkg-config && \ | ||
apt-get clean && \ | ||
apt-get purge && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
RUN python3 --version && \ | ||
python3 -m pip install --upgrade pip | ||
|
||
ARG MM_VER=2.28 | ||
RUN wget https://github.com/lh3/minimap2/releases/download/v$MM_VER/minimap2-$MM_VER.tar.bz2 && \ | ||
tar xvf minimap2-$MM_VER.tar.bz2 && \ | ||
rm minimap2-$MM_VER.tar.bz2 && \ | ||
cd minimap2-$MM_VER && \ | ||
make && \ | ||
cp minimap2 /usr/bin/ | ||
|
||
### samtools | ||
# 1.15 | ||
WORKDIR /opt/samtools | ||
RUN wget https://github.com/samtools/samtools/releases/download/1.15/samtools-1.15.tar.bz2 && \ | ||
tar xvf samtools-1.15.tar.bz2 && \ | ||
rm -r /opt/samtools/samtools-1.15.tar.bz2 && \ | ||
cd samtools-1.15/ && \ | ||
autoheader && \ | ||
autoconf -Wno-header && \ | ||
./configure && \ | ||
make && \ | ||
cp samtools /usr/bin/samtools | ||
|
||
### bcftools | ||
WORKDIR /opt/bcftools | ||
RUN wget https://github.com/samtools/bcftools/releases/download/1.15/bcftools-1.15.tar.bz2 && \ | ||
tar xvf bcftools-1.15.tar.bz2 && \ | ||
cd bcftools-1.15/ && \ | ||
autoheader && \ | ||
autoconf -Wno-header && \ | ||
./configure --enable-libgsl && \ | ||
make && \ | ||
cp bcftools /usr/bin/bcftools | ||
|
||
#build and install Flye | ||
WORKDIR /opt/flye | ||
RUN git clone https://github.com/fenderglass/Flye && \ | ||
cd Flye && \ | ||
python setup.py install | ||
|
||
#Install strainy & dependencies | ||
WORKDIR /opt/strainy | ||
RUN git clone -b docker https://github.com/katerinakazantseva/strainy && \ | ||
cd strainy && \ | ||
python3 -m pip install -r requirements.txt && \ | ||
python3 setup.py install | ||
|
||
|
||
ENV PYTHONUNBUFFERED "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
networkx>=2.6,<3.4 | ||
numpy>=1.24,<1.27 | ||
pandas>=1.3,<3 | ||
pysam>=0.20,<0.23 | ||
scipy>=1.8,<1.13 | ||
biopython | ||
gfapy | ||
karateclub | ||
matplotlib | ||
networkx | ||
numpy | ||
pandas | ||
pygraphviz | ||
pysam | ||
edlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import os | ||
import sys | ||
import subprocess | ||
import shutil | ||
|
||
try: | ||
import setuptools | ||
except ImportError: | ||
sys.exit("setuptools package not found. " | ||
"Please use 'pip install setuptools' first") | ||
|
||
from setuptools import setup | ||
|
||
# Make sure we're running from the setup.py directory. | ||
script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
if script_dir != os.getcwd(): | ||
os.chdir(script_dir) | ||
|
||
from strainy.__version__ import __version__ | ||
|
||
|
||
setup(name='strainy', | ||
version=__version__, | ||
description='Metagenomic strain phasing and assmebly using long reads', | ||
url='https://github.com/katerinakazantseva/strainy', | ||
author='Ekaterina Kazantseva & Ataberk Donmez', | ||
author_email = '[email protected]', | ||
license='CC BY-NC-SA 4.0', | ||
packages=['strainy', 'strainy/clustering', 'strainy/gfa_operations', 'strainy/reports', 'strainy/simplification'], | ||
entry_points={'console_scripts': ['strainy = strainy.main:main']}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.1" |
Empty file.
Oops, something went wrong.