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

  Immune response to infectious disease

It is a very curcial concept to understand how the immune response is mounted against viruses, bacteria, protozoans and helminthes. For an effective immune response, both innate and adaptive immunity should work together.

  A review on advanced glycated end products (ages)

This Project report elaborates a critical review of important elements attached to Advanced Glycated End Products (AGEs). It is very crucial to understand the process called Millard reaction.

  Plastic as a soil stabilizer

Soil stabilization is the permanent physical and chemical alteration of soils to enhance their physical properties. Stabilization can increase the shear strength of a soil and control the shrink-swell properties.

  Principles of microbiology

This assignment has three parts which contains questions related to Microbiology. It contains basic principles of microscopy, staining techniques in microbiology and microbial growth in the food industry.

  List the biologic functions

Lipid metabolites are often seen as key elements in cellular signaling. Is this unique? Please provide several examples of the function of lipids as key elements in signal arrays and list the biologic functions these signals affect?

  Biologic function relationships

Please describe how one might search for chemical structure, biologic function relationships, involving small molecular weight lipophylic compounds. Provide one example.

  Case study on patient in the haematology laboratory

Write a case study which detailing a scenario of a patient being investigated in the Haematology laboratory.

  Use of pcr and genetic approaches in biotechnology

The use of PCR and genetic approaches in biotechnology

  Describe the role of this enzyme in honey

Glucose oxidase is an enzyme that can be used for measurements of glucose levels by combining this reaction with an oxygen probe.

  Genetic problems

What phenotypic ratio would you get if you crossed a white mouse and a heterozygous brown mouse?

  Prepare an essay on nosocomial infection

Prepare an essay on nosocomial infection.

  Monitoring and recording the blood pressure

To increase the awareness of monitoring and recording the blood pressure of patients and practice measuring blood pressure in a safe environment.

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