Skip to content

raryee5/Python_Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Assignment

Due: 1 May 2024

Summary

Document written code and fill in the gaps

Your colleague, Dr. X, has given you a partially written Python script to work with your shared data files. You plan to translate cytochrome-b sequences to amino acids for each of 12 species of penguins. You will then compute some simple summaries of the amino-acid molecular weight and GC content of these sequences and add these values to a DataFrame, which already contains the average adult mass of each species. Once you have these values entered in the DataFrame, you will create some plots for data visualization. In this script you will find one function and additional lines of code that are working, but not adequately documented. Since Dr. X's experience with Python is different than your own, you may find that some of the suggested functions and approaches are unfamiliar to you. However, you have agreed to thoroughly document your script in order to better understand your work.

Additionally, Dr. X has written some comments and pseudocode that outline other components of the script that you agreed to complete. Since you're a conscientious scientist, you will also carefully document your own code.

To complete the assignment and analysis, create a single Jupyter notebook that documents the entire workflow.

Details

  • Create a new repository for this assignment and name it BCB546-PythonHW_Spring2024. The repository you submit should only include the files necessary for running the code you write to perform the tasks described here. Do not include any files from other assignments (e.g., your Unix or R assignments) or from the course tutorials.
  • Download the necessary files from the Python_Assignment folder in the course repository and add them to your own repository where you will submit this assignment. The files required are:
    • sequence_translate.py
    • penguins_mass.csv
    • penguins_cytb.fasta
  • Be sure to install the BioPython library so that this script will work.
  • You will find explicit instructions and the code/comments from Dr. X in the file called sequence_translate.py. Specific tasks are enumerated (1-11) in the script file with comments at the top as well as in the necessary places in the code.
  • Create a new Jupyter notebook in your repository.
    • In this notebook you will carefully annotate and execute the code already provided in sequence_translate.py. If you're unfamiliar with a bit of code, you can find lots of resources and information online. Be sure to cite information appropriately (by providing URLs and other relevant references).
    • You must also write the missing code that is outlined by pseudocode and comments.
    • Remember to document everything very clearly, following documentation guidelines we covered in class.
  • Commit and push your completed Python analyses in the Jupyter notebook to your repository
    • Be sure that your GitHub repository is self contained--i.e., if someone cloned it they could run your whole Jupyter notebook without any trouble.
  • Submit the URL to your git repository to Python Assignment on Canvas by the end of the day on May 1, 2024.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published