# Homework 9¶

Enter your name and EID here

This homework is due on April 20, 2020 at 12:00pm. Please submit as a PDF file on Canvas. Before submission, please re-run all cells by clicking "Kernel" and selecting "Restart & Run All."

Problem 1 (4 points): The complete genome of the virus SARS-CoV-2 can be accessed from the NCBI Entrez/PubMed website with the ID NC_045512. Using Biopython and Pubmed, download the GenBank record associated with SARS-CoV-2. Then, for each CDS in the record, print the locus tag and the name of the protein product associated with the gene at that locus.

In [1]:
# you will need Entrez and SeqIO to solve this problem
from Bio import Entrez, SeqIO
Entrez.email = "your.email@utexas.edu" # put your email here



Problem 2 (2 points): Frances Arnold is an American chemical engineer, recently winning the Nobel Prize in Chemistry for using directed evolution to engineer enzymes. Using Biopython and the Pubmed database, calculate the average number of papers per year that Dr. Arnold has published from 2015-2019 (inclusive, so that's 5 years total).

Hints: Dr. Arnold will always appear as "Arnold FH" in the Pubmed database. Also, make sure to set the retmax argument to at least 100 in Entrez.esearch() so that you retrieve all of the papers. See the Class 21 Worksheet as an additional resource for the syntax required to access these publications.

In [2]:
# you will need Entrez and Medline to solve this problem
from Bio import Entrez, Medline
Entrez.email = "your.email@utexas.edu" # put your email here



Problem 3 (4 points): From 2015-2019 (inclusive), how many of Dr. Arnold's papers contain the terms "evolution" or "evolutionary" in the abstract? Use python and regular expressions to find an answer.

Hint #1: In class 21, we parsed the results of a literature search with Medline.parse(). This allows us to look at the references we found and to retrieve different parts of the reference with a key. For example, to retrieve the abstract, we would write record['AB'].

Hint #2: In a regular expression, you can match the same word with slightly different endings using the "|" (or) operator. For example, the regex "bacteri(a|um)" would match both "bacteria" and "bacterium".

In [3]:
# you will need the module re for regular expressions to solve this problem
import re
Entrez.email = "your.email@utexas.edu" # put your email here
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.21016348898410797, "perplexity": 3919.617344006714}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-40/segments/1664030337404.30/warc/CC-MAIN-20221003070342-20221003100342-00283.warc.gz"}