This is the repository for the book Mastering Python for Bioinformatics (O'Reilly, 2021, ISBN 9781098100889).
See O'Reilly's website for a free dowload of the preface and first chapter.
Ken Youens-Clark [email protected]
Code for Mastering Python for Bioinformatics (O'Reilly, 2021, ISBN 9781098100889)
License: MIT License
This is the repository for the book Mastering Python for Bioinformatics (O'Reilly, 2021, ISBN 9781098100889).
See O'Reilly's website for a free dowload of the preface and first chapter.
Ken Youens-Clark [email protected]
Greetings! I am wondering if there should be one additional arrow in Figure 16-3, namely an arrow pointing from the second circle to the last circle, and labelled 'a'? The second circle would then have two arrows emanating from it, one labelled 'n' and one labelled 'a'. (It's totally possible I have a misunderstanding due to unfamiliarity with finite state machine diagrams!)
Many thanks,
Chase
Hi there,
It seems that the tests/dna_test.py file didn't pass pylint
on my end as shown below. I was wondering if you would take a look when you have time? I could also submit a PR if that works for you.
Thanks very much,
Yuan
dna.py::PYLINT SKIPPED (file(s) previously passed pylint checks) [ 8%]
dna.py::mypy PASSED [ 16%]
dna.py::mypy-status PASSED [ 25%]
dna.py::FLAKE8 SKIPPED (file(s) previously passed FLAKE8 checks) [ 33%]
tests/dna_test.py::PYLINT FAILED [ 41%]
===================================================================================================================== FAILURES ======================================================================================================================
____________________________________________________________________________________________________________ [pylint] tests/dna_test.py _____________________________________________________________________________________________________________
R: 45,14: Consider using 'with' for resource-allocating operations (consider-using-with)
======================================================================================================================= mypy ========================================================================================================================
Success: no issues found in 2 source files
============================================================================================================== short test summary info ==============================================================================================================
FAILED tests/dna_test.py::PYLINT
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================================== 1 failed, 2 passed, 2 skipped in 0.52s =======================================================================================================
Makefile:4: recipe for target 'test' failed
make: *** [test] Error 1
Dear Ken: from one Perl hack to his better, I cannot thank you enough for this book!
I have two likely trivial questions:
distance += 1 if seq1[i] != seq2[i]
However, this fails. Would you be willing to help help me understand why this does not work in Python?
args.seq1
and args.seq2
. Is there a computational or other advantage to doing this? I ask because I am always afraid of making multiple copies of sequences in case they're too long.Very grateful for this book, and for your help!
Chase
For the following line in chapter 14, solution 1, find_orfs(), from page 281:
orfs.append(''.join(aa[start:stop]))
Could you help me understand why one would not use the following (presumably simpler?):
orfs.append(aa[start:stop])
In other words, what is the advantage of joining on the empty string in this situation?
Thanks as always!
Chase
Dear Ken:
When running ./fetch_fasta.sh tests/inputs/1.txt
from inside /biofx_python/11_mprt/
, four empty FASTA files were being created in the /fasta/
directory. It's possible I have a different version of wget
; mine is iGNU Wget 1.21.1 built on darwin19.6.0. However, I got it working as follows:
$URL
, i.e.:URL="https://www.uniprot.org/uniprot/${PROT_ID}.fasta"
-o
to -O
in the wget
call, i.e.:wget -q -O "$OUT_FILE" "$URL"
Does that seem correct, or do you think my problem lies elsewhere?
Many thanks!
Chase
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.