Analyze next-generation sequencing data

Assignment Help Biology
Reference no: EM131312391

Comp 7/ Bio 40 Project: Reliability of Metagenomics Reads

Background

In this class, we are studying 16S rRNA metagenomic sequencing, in which the sequences read come from one of the hypervariable regions of the 16S rRNA genes, which are generally well conserved across prokaryotes. Because of the variability in the region we are sequencing, it is possible to use computational means to try to identify the taxonomic classi?cation of each sequence read. Of course, the sequence data can be noisy; noise may be represented by nucleotides reported as 'N' in the sequence data ?les. In addition, not every bacterial species has previously been sequenced, and some species may have suf?ciently similar sequences even in these hypervariable regions, making it dif?cult to classify them exactly.

The MiSeq metagenomics pipeline uses the method of Wang et al. (Assignment of rRNA Sequences into the New Bacterial Taxonomy. Q. Wang, G. M. Garrity, J. M. Tiedje, J. R. Cole. Appl. Environ. Microbiol. 73(16):5261, 2007) to taxonomically classify sequences. This is a probabilistic method, so the classification at each level of the taxonomic hierarchy is associated with a confidence score, which corresponds roughly to an estimate of the probability that the classification is correct.

The software uses a cutoff of 80% confidence to report a result. If the classification software is less than 80% confident in its classification at any given taxonomic level, it reports that the sequence is "Unclassified" at that level. Some samples have many unclassified reads, while others have relatively few.

Hypothesis

We are going to focus on the most specific level of taxonomic classification reported by our software, the genus level. Our hypothesis is the reads that could not be classified with greater than 80% certainty at the genus level had a higher percentage of undetermined nucleotides (Ns). In this assignment, you will analyze next-generation sequencing data to confirm or refute this hypothesis.

Overview

You will write a python program to address this question by combining data from two data files produced by the MiSeq software. We will help you design the program and will even give you the outline of the code to start with, but you will fill in each of the pieces!

In order to test your hypothesis, you will need to extract information from a data file to determine which reads are "unclassified" at the genus level, and which are not. You will also need to get the actual nucleotide sequences reported for each of those reads. These are stored in separate data files, so you will have to match the data up between two files using the read identifiers.

Matching data between two files is a very common problem in bioinformatics, and it is one that is easily solved using the dictionary data structure that you have recently learned. First we will describe the two file formats you will encounter, and then we will describe the program you will need to complete.

Skeleton Code Overview

At the top of the skeleton code, there are two constants: CLASS_FILE and READS_FILE. Add the names of the classification file and the FASTQ file in quotation marks to each of these constants, respectively. Make sure that these files are located in the same directory as the code.

The classification file is called metagen.txt and the fastq file, metagen.fastq. Both are available for download from the projects page. There should also be smaller sample files for use when you are testing your code. The code is initially set to use just the smallest of these (rand_10.txt and rand_10.fasta). Only replace these file names with the names of the larger test files and, eventually, the full sized files, after you get your code to work on the smaller data sets.

Now take a look at the main function in the skeleton code. It performs the following steps:

1. It uses the readInClasses function to create a dictionary classes that maps read IDs to their corresponding classification strings (a string containing the line from the classification file that contains the taxonomic classifications and their confidence scores for that read).

2. Using classes, it creates a dictionary classified, that maps the read IDs to a boolean value, either True or False, depending on whether the confidence in the classification of that read ID at the genus level is above or equal to the constant CUTOFF (set to 0.8), in which case the value for the read ID in classified is True, and False otherwise.

3. Create one more dictionary, reads, mapping read IDs to a string containing the nucleotide sequence for that read from the FASTQ file.

4. This step is the heart of your calculation. Using the two dictionaries, classified and reads, the findAvgNCount() function should go through each read id that is a key of classified, and calculate the percent N's for the corresponding read. Define two lists, one for the classified ids and the other for the unclassified ids. Add the float representing the percent N's to one of the two lists depending on whether the value for the read id in classified is True or False (i.e., whether the read for the id is classified at the genus level or not).

Now use the helper function avgList() to average the values in each list, and return a list that contains just the two averages.

5. Finally, the report function nicely prints the values returned by the previous step.

Download another file using this link:

?https://www.dropbox.com/s/gxpmhtrwfuz9l24/metagen.txt?dl=0

Attachment:- Assignment.rar

Reference no: EM131312391

Questions Cloud

Database systems for a large banking institution : You have been put in charge of the database systems for a large banking institution. You need to devise an extensive security strategy and backup management plan.
Addressing challenges that arise in strategic-planning : No matter what your role is in an organization, you will most likely attend a significant number of meetings. For strategic planning in particular, meetings are an essential part of each phase of the process. What challenges have you noticed in th..
Describe the strategic role of hr division in google : What elements of motivating jobs has Google put into place, according to this description? Name a few other elements that might be appropriate at Google.
Write a letter to greenfield''s construction manager : Write a one-page letter to Greenfield's construction manager informing him/her that you cannot make the requested change. Note that you have chosen to write a letter rather than simply making a phone call or writing an email because this message ..
Analyze next-generation sequencing data : Comp 7/ Bio 40 Project: Reliability of Metagenomics Reads. We are going to focus on the most specific level of taxonomic classification reported by our software, the genus level. In this assignment, you will analyze next-generation sequencing data ..
Problems with job based pay structures : Explaining each 5 problems from your own point of view.- Provide at least one example for each problem from any existing activity or practice.
Business research report proposal : Identify a business research topic - Define the research questions for the identified problem or opportunity and select the appropriate research methodologies and techniques to use for the research project
Would you expect the overhead rates : One of the most common reasons for not wanting to adopt a matrix is the excessive administrative costs and accompanying overhead costs. Would you expect the overhead rates to decrease as the matrix matures?
What is the value of the option to abandon : We are examining a new project. We expect to sell 5,300 units per year at $67 net cash flow apiece for the next 10 years. In other words, the annual operating cash flow is projected to be $67 × 5,300 = $355,100. The relevant discount rate is 16 perce..

Reviews

len1312391

12/14/2016 11:53:47 PM

There is an instruction named Instruction in the attachments below and I have to complete the python coding named project3.py. We are going to focus on the most specific level of taxonomic classification reported by our software, the genus level. Our hypothesis is the reads that could not be classified with greater than 80% certainty at the genus level had a higher percentage of undetermined nucleotides (Ns). In this assignment, you will analyze next-generation sequencing data to confirm or refute this hypothesis.

Write a Review

Biology Questions & Answers

  Describe the changes in clotting and bleeding balance

Describe the changes in clotting and bleeding balance during disseminated intravascular coagulation and describe the most important blood coagulation tests used to monitor the patients receiving heparin and warfarin.

  Write on the variation in animal body plans

A formal biology lab report to write on the variation in animal body plans. This includes abtract, introduction, methods, discussion and results. I will attach a copy of my lab manual and it's from 56 to 58. And I will also attach the informati..

  Which method of data representation would be ideal for this

A cell phone manufacturing company wants to display the average sales of their new phone model for a particular month across six countries. Which method of data representation would be ideal for this?

  What will be the phenotype of the f1

In guinea pigs, rough coat (R) is dominant over smooth (r).

  What are the arguments for as inevitable and natural

Should aging be viewed as a natural process or as a "disease" that we should fight? What are the arguments for thinking as inevitable and natural?

  Discuss the probable cause of the relapse

A patient with streptococcal sore throat takes penicillin for two days of a prescribed 10-day regimen. Because he feelsbetter, he then saves the remaining penicillin for some othertime. After three more days, he suffers a relapse of the sorethroat. D..

  Distinguish between a pour plate and spread plate

What is the significance or value of an isolated colony? Why do we use techniques designed to provide isolatedcolonies? Distinguish between a pour plate and spread plate, and what isthe purpose of each?

  How would the partial pressures of o2 and co2 change

How would the partial pressures of O2 and CO2 change in an exercising muscle?

  How to keeping the shape of the cell

how to keeping the shape of the cell. But I have found that there is a primary and secondary cell wall - each has their own function - so I am somewhat confused and looking for guidance.

  Show how a black snake cross with a with snake

draw a punnett square to show how a BLACK SNAKE (BB) cross with a WITH SNAKE (WW) to produce offspring that show incomplete dominance.

  What happened, and what was the primary cause

Write a 700- to 1050-word paper on a recent disaster (e.g. Exxon Valdez oil spill, Hurricane Katrina) and address the following: •Give a brief overview of the impacted ecosystem including a description of the wildlife and human populations. •Give an ..

  Write about microgenics glucosamine 1500 chondroitin complex

Description assignment: It is about Microgenics Glucosamine 1500 Chondroitin Complex. Glucosamine 1500 Complex with Chondroitin is a comprehensive high potency formula to help increase joint mobility, relieve swelling, reduce joint inflammation and..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd