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

annotate genes with prokka #20

Merged
merged 2 commits into from
Dec 17, 2019
Merged

annotate genes with prokka #20

merged 2 commits into from
Dec 17, 2019

Conversation

boris-dimitrov
Copy link
Contributor

@boris-dimitrov boris-dimitrov commented Dec 12, 2019

@boris-dimitrov boris-dimitrov force-pushed the boris/annotate_genes branch 29 times, most recently from 88c41bd to 6e0ec25 Compare December 16, 2019 23:51
@boris-dimitrov boris-dimitrov force-pushed the boris/annotate_genes branch 21 times, most recently from 24c8ac6 to d09f85a Compare December 17, 2019 00:37
# bioinformatics
RUN apt-get install -y samtools bowtie2 vsearch
RUN pip3 install pysam biopython
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pysam no longer build successfully

fortunately it is not yet needed

we hope in future it gets fixed

@@ -35,18 +31,32 @@ RUN apt-get remove -y ncbi-blast+
RUN wget -N ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-1.x86_64.rpm
RUN alien -i ncbi-blast-2.9.0+-1.x86_64.rpm
RUN rm -rf ncbi-blast-2.9.0+-1.x86_64.rpm
RUN bash -c "yes | cpan Bio::Perl"
# The following line differs from the official instructions in that it actually works.
RUN cpan List::Util
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you internet.

# mv linux.tbl2asn tbl2asn && \
# chmod +x tbl2asn && \
# mv tbl2asn /usr/local/prokka/binaries/linux/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now we are sticking with prokka but in future we would consider using just prodigal because of this dependency --- which means in a few months this docker build will need to be repeated, with all corresponding fragility.

try:
command(f"set -o pipefail; lz4 -c {src} | aws s3 cp --only-show-errors - {dst}", check=check)
except:
command(f"aws s3 rm {dst}", check=False)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If src doesn't exist, the above command would create an empty destination. Work around that. Perhaps we should also just check that src exists.

@boris-dimitrov boris-dimitrov force-pushed the boris/annotate_genes branch 2 times, most recently from b2f9766 to aac112c Compare December 17, 2019 01:03
@boris-dimitrov boris-dimitrov changed the title annotate genes work in progress annotate genes with prokka Dec 17, 2019
@boris-dimitrov boris-dimitrov merged commit 32f4341 into master Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant