-
Notifications
You must be signed in to change notification settings - Fork 126
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
adding masurca version 4.1.2 #908
Draft
erinyoung
wants to merge
5
commits into
master
Choose a base branch
from
erin-masurca
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,71 @@ | ||
FROM ubuntu:jammy as app | ||
|
||
ARG MASURCA_VER="4.1.1" | ||
ARG MINIMAP2_VER="2.24" | ||
ARG BWA_VER="0.7.17" | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="masurca" | ||
LABEL software.version="${MASURCA_VER}" | ||
LABEL description="Genome Assembly and Analysis" | ||
LABEL website="https://github.com/alekseyzimin/masurca" | ||
LABEL license="https://github.com/alekseyzimin/masurca/blob/master/LICENSE.txt" | ||
LABEL maintainer="Erin Young" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
#python \ | ||
build-essential \ | ||
curl \ | ||
wget \ | ||
gcc \ | ||
zlib1g-dev \ | ||
bzip2 \ | ||
libboost-dev \ | ||
libbz2-dev \ | ||
liblzma-dev \ | ||
numactl \ | ||
procps \ | ||
bwa && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install minimap2 | ||
RUN curl -L https://github.com/lh3/minimap2/releases/download/v${MINIMAP2_VER}/minimap2-${MINIMAP2_VER}_x64-linux.tar.bz2 | tar -jxvf - --no-same-owner | ||
|
||
# install masurca suite | ||
RUN mkdir /data && \ | ||
wget https://github.com/alekseyzimin/masurca/releases/download/v$MASURCA_VER/MaSuRCA-$MASURCA_VER.tar.gz && \ | ||
tar -xvf MaSuRCA-$MASURCA_VER.tar.gz && \ | ||
tail /MaSuRCA-4.1.1/install.sh && \ | ||
rm MaSuRCA-$MASURCA_VER.tar.gz | ||
|
||
WORKDIR /MaSuRCA-$MASURCA_VER | ||
|
||
# even in 4.1.1 there's the evil cp at the end of .install.sh | ||
# This gives the error: | ||
# 302.0 + cp -a ../Flye /MaSuRCA-4.1.1 | ||
# 302.0 cp: '../Flye' and '/MaSuRCA-4.1.1/Flye' are the same file | ||
RUN bash /MaSuRCA-$MASURCA_VER/install.sh 2>/dev/null ; exit 0 | ||
|
||
ENV PATH="${PATH}:/MaSuRCA-${MASURCA_VER}/Flye/bin:/MaSuRCA-${MASURCA_VER}/bin:/minimap2-${MINIMAP2_VER}_x64-linux:/bwa/bwa-${BWA_VER}" \ | ||
LC_ALL=C | ||
|
||
# WORKDIR sets working directory | ||
WORKDIR /data | ||
|
||
FROM app as test | ||
|
||
# testing POLCA | ||
RUN wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123_1.fastq.gz && \ | ||
wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123_2.fastq.gz && \ | ||
wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.consensus.fa && \ | ||
polca.sh -a SRR13957123.consensus.fa -r 'SRR13957123_1.fastq.gz SRR13957123_2.fastq.gz' && \ | ||
test -f SRR13957123.consensus.fa.PolcaCorrected.fa | ||
|
||
# testing hybrid assembly | ||
RUN wget -q https://github.com/rrwick/Unicycler/raw/69e712eb95c4b9f8a46aade467260260a9ce7a91/sample_data/short_reads_1.fastq.gz && \ | ||
wget -q https://github.com/rrwick/Unicycler/raw/69e712eb95c4b9f8a46aade467260260a9ce7a91/sample_data/short_reads_2.fastq.gz && \ | ||
wget -q https://github.com/rrwick/Unicycler/raw/69e712eb95c4b9f8a46aade467260260a9ce7a91/sample_data/long_reads_low_depth.fastq.gz && \ | ||
masurca -t 2 -i short_reads_1.fastq.gz,short_reads_2.fastq.gz -r long_reads_low_depth.fastq.gz |
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,25 @@ | ||
# masurca container | ||
|
||
Main tools: | ||
|
||
- [masurca](https://github.com/alekseyzimin/masurca) | ||
- [polca](https://github.com/alekseyzimin/masurca#polca) | ||
- [Chromosome scaffolder](https://github.com/alekseyzimin/masurca#chromosome-scaffolder) | ||
- [SAMBA](https://github.com/alekseyzimin/masurca#samba-scaffolder) | ||
|
||
Other tools: | ||
|
||
- [bwa](https://github.com/lh3/bwa) (used by polca) 0.7.17-r1188 | ||
- [minimap2](https://github.com/lh3/minimap2) (used by samba) 2.24-r1122 | ||
|
||
## Example Usage | ||
|
||
```bash | ||
# masurca hybrid assembly | ||
masurca -t 2 -i short_reads_1.fastq.gz,short_reads_2.fastq.gz -r long_reads.fastq.gz | ||
|
||
# polishes consensus genome with paired-end Illumina reads | ||
polca.sh -a genome.fasta -r 'reads1.fastq reads2.fastq.gz' -t 16 -m 1G | ||
``` | ||
|
||
Better documentation can be found at [https://github.com/alekseyzimin/masurca](https://github.com/alekseyzimin/masurca) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding all these relative links 👍