hypatiayu / caltech-bootcamp-projects- Goto Github PK
View Code? Open in Web Editor NEWProjects for Caltech Introduction to Programming for the Biological Science Bootcamp (June 2019)
Projects for Caltech Introduction to Programming for the Biological Science Bootcamp (June 2019)
The first thing that jumped out to me when I looked at your code was your style. It's not bad, but it can be better with a few easy changes in habit.
I recommend skimming the Google Python Style Guide, and learning how to use a python linter, which will automatically flag style issues (and other things).
Honestly, I can't remember if I've ever used Pylint, but I suspect it is probably good enough for your purpose.
So, I recommend you install and run pylint, and then make the suggested changes to your code.
Learning programming is easiest when you have people to lean on, so I would recommend involving yourself in the coding community for the best long-term education.
I would like to see a README.md
, which is a Markdown file that goes in project file to explain what the project is, and how to use it.
bootcamp
repo.BTW, Github does a pretty smart thing by automatically displaying READMEs on the home page of repositories. If you go to the home page of my forked bootcamp repository and scroll down, you can see the README without clicking on it.
In Mining_Salmonella_Genome.ipynb
, cell Out[15] is too large. Can you reduce the amount of output?
This will probably be covered by the style guide + linter, but I just want to make special mention that I would personally avoid using many ALL_CAPS for file names and variable names (unless it's a static variable). There's some pretty hot discussion about what the best naming style is, but I personally find the frequent use of all-caps harder to read.
In LONGEST_ORF_FINDER.ipynb
, we have:
def ORF_LIST(LIST):
"""Make a list of all of the open reading frames"""
#Make a list of the locations of all the ATG start sites
ATG_INDEX_LIST = ATG_INDEX(LIST)
#List to store each of the Open reading frames
ORFS = []
#Iterate through the list of ATG start sites, to add it to the ORF_LIST one by one
for i in range(0, len(ATG_INDEX_LIST)):
START_INDEX = ATG_INDEX_LIST[i]
ORF = OPEN_READING_FRAME(START_INDEX, LIST)
ORFS.append(ORF)
#Return the list of open reading frames
return(ORFS)
I think you can simplify the iteration using this format:
for start_index in atg_index_list:
ORF = OPEN_READING_FRAME(START_INDEX, LIST)
ORFS.append(ORF)
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.