Git Product home page Git Product logo

biofx_python's People

Contributors

kyclark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

biofx_python's Issues

Chapter 6 solution 1: two questions

Dear Ken: from one Perl hack to his better, I cannot thank you enough for this book!

I have two likely trivial questions:

  1. At the bottom of p. 142, I had initially tried the following:

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?

  1. On p. 142-143, you copy the two sequences into variables rather than using them directly as 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

new-py

hi, I would like to know if I have to add the path of new-py to variables environments to be able to use it. the command is not working for me
image

Chapter 1 `make test` failed

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

wget in fetch_fasta.sh bash script, chapter 11

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:

  1. Add a ".fasta" suffix to the end of $URL, i.e.:

URL="https://www.uniprot.org/uniprot/${PROT_ID}.fasta"

  1. Change the -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

Why use ''.join() in chapter 14, solution 1, find_orfs()?

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

Figure 16-3

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.