Skip to content

Gene Finder#8

Open
leoliuuu wants to merge 2 commits into
sd17fall:masterfrom
leoliuuu:master
Open

Gene Finder#8
leoliuuu wants to merge 2 commits into
sd17fall:masterfrom
leoliuuu:master

Conversation

@leoliuuu
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@SeunginLyu SeunginLyu left a comment

Choose a reason for hiding this comment

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

It looks good overall! The only suggestion I have is that adding more custom unit tests would be helpful for making sure that your functions all run correctly or not! (strongly recommend doing so for future mini projects)

Comment thread gene_finder.py
@@ -2,7 +2,7 @@
"""
YOUR HEADER COMMENT HERE
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In future mini projects, please leave a header comment that describes what this code is about. It's going to help you a lot when the code base gets large.

Comment thread gene_finder.py
YOUR HEADER COMMENT HERE

@author: YOUR NAME HERE
@author:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please write your name. It's like writing your name for any other quizzes or projects.

Comment thread gene_finder.py
stop_codons = ["TAG", "TAA","TGA"]
for i in range(0,len(dna),3):
codon = dna[i:i+3]
for stop in stop_codons:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can do if codon in stop_codons:

Comment thread gene_finder.py
"""
# TODO: implement this
pass
return [i for j in range(0,3) for i in find_all_ORFs_oneframe(dna[j:])]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice usage of list comprehension! 👍

Comment thread gene_finder.py
import doctest
doctest.testmod()
# import doctest
# # doctest.testmod()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please remove comments for final code submission

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.

2 participants