Reverse-complement of a dna string

Assignment Help Database Management System
Reference no: EM131238062

A DNA strand is represented by a string of the characters A, C, G, and T, each of which represents a nucleotide. Each nucleotide has its complement as indicated by this Ruby hash: NUCLEOTIDE_COMPLEMENT = { 'A' => 'T', 'T' => 'A', 'C' => 'G', 'G' => 'C' }

The reverse-complement of a DNA string is a new string in which each nucleotide is replaced by its complement and the string is reversed.

Reverse-complements are important in bioinformatics since a strand of DNA can be read in forward direction or, equivalently, its complementary strand can be read in its forward direction, which is reverse of the original string's direction.

Add the reverse_complement method to your DNA class.

In response to reverse_complement, it returns a new DNA instance representing its reverse-complement. Note also that a == b if and only if DNA instances a and b represent the same DNA strand.

>> dna1 = DNA.new('ATTGCC')

 => ATTGCC

>> dna2 = dna1.reverse_complement

=> GGCAAT

>> dna2

=> GGCAAT

>> dna1

=> ATTGCC

>> dna2.reverse_complement

 => ATTGCC

>> dna1.reverse_complement.reverse_complement == dna1

=> true

Verified Expert

This assignment involves the development of the ruby program. This program involves the use of the class and the class variable as well as the instance variable

Reference no: EM131238062

Questions Cloud

State the three parts of dalton''s atomic theory : Lavoisier named a new element "oxygen" and tried to take credit for its discovery. Who actually discovered the element, and what did that scientist call it? State the three parts of Dalton's atomic theory
What are two most striking physical properties of dry ice : State the law of conservation of mass, and give an example Who discovered the law of definite proportions? State the law, and give an example. What are the two most striking physical properties of dry ice?
Developing relationships within the community : This week you will reflect on the debate of organized sports vs. unstructured free play. Over the years, parents, teachers, and researchers have weighed the advantages and disadvantages of each in consideration as to what is most appropriate for ..
Which is the limiting reactant : Give four reasons why Lavoisier is generally designated "the father of chemistry." When a sample of A reacts with one of B, a new substance AB is formed, and no B but a little of A is left. Which is the limiting reactant?
Reverse-complement of a dna string : The reverse-complement of a DNA string is a new string in which each nucleotide is replaced by its complement and the string is reversed -  its complementary strand can be read in its forward direction, which is reverse of the original string's dire..
Analyze the benefits of a national organization : For this discussion, you will research and analyze the benefits of a national organization that offers support within the physical education domain. Choose an association to review and discuss how an educator could benefit from the various profes..
How many grams of bromine reacted, and how do you know : Refer to Exercise 10. How much phosphorus tribromide would be formed if 10.00 g of phosphorus reacted with 59.93 g of bromine, and how do you know?
How many grams of bromine reacted : In a lab experiment, 7.75 g of phosphorus reacts with bromine to form 67.68 g of phosphorus tribromide.
How many grams of carbon dioxide were produced : The resulting solution weighed 57.136 g. How many grams of carbon dioxide were produced?

Reviews

Write a Review

Database Management System Questions & Answers

  Create a new excel workbook and save it

You are a regional manager for Home Station, a national chain of home renovation stores. Create a new Excel workbook and save it as Home Station-Austin.xlsx

  Key value of fourth index record on top level

What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

  List all pair of products names which are in same city

List the names of agents that placed an order for customer C003 or customer C006. List all pair of products names that are in the same city, along with their city name.

  Concept of non-deterministic finalization

From constructor to destructor (taking into consideration Dispose() and the concept of non-deterministic finalization), what the are events fired as part of the ASP.NET System.Web.UI.Page lifecycle. Why are they important? What interesting things ..

  Discuss the importance of structured analysis

Context Diagram and Diagram 0 DFD/ Structured Analysis, Please also discuss the importance of structured analysis

  What qualitative conclusions would you draw about efficacy

Focus on quantitative data. Based on the statistical data gleaned from the readings what qualitative conclusions would you draw about the efficacy of the many aspects of differentiated parent support?

  How to build a data driven business using data analytics

How to Build a Data Driven Business Using Data Analytics

  Find out the benefits of data mining to the businesses when

the development of complex algorithms that can mine mounds of data that have been collected from people and digital

  Seconds of elapsed time to execute

Suppose that a certain program takes 500 seconds of elapsed time to execute. Out of these 500 seconds, 280 seconds is the CPU time and the rest is I/O time. What will be the I/O time?

  Find an example of an actual data warehouse.

The data warehouse example provided should be publically accessible.

  Database performance from quantitative data

Recommend the actions that should be performed in order to optimize record selections and to improve database performance from a quantitative data quality assessment

  Explain what fields might be used as keys and indexes.

Describe any limitations or constraints related to the data and how it is structured.

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