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

  Prepare a database using microsoft access

Using Microsoft Access, prepare a database and save it as Acme Inc. Prepare the following tables: Employees and Products. Field names for Employees table are first name,

  Compute the ranking scores for all documents

How does this ranking compare with ranking obtained using the cosine similarity measure in Exercise 20? If there are differences between the rankings, then discuss why you think these differences occurred.

  Explain how big is a single interval in volts

How big is a single interval in volts. Receivers have no choice but to decode the the binary sample value at the center of the interval. So, what would the received voltage of the sample be

  How might the tables be related to one another

What tables would you create, and what would the table components be and How might the (independent) tables be related to one another?

  Develop the erd for given problem

An art museum owns a large volume of works of art. Each work of art is described by an item code (identifier), title, type, and size; size is further composed of height, width, and weight.

  Create queries and explain the purpose of query in detail

Create Queries and explain the purpose of each query in detail.

  What are the responsibilities of a dba

What are the responsibilities of a DBA? If we assume that the DBA is never interested in running his or her own queries, does the DBA still need to understand query optimization? Why?

  Whose age is equal to their managers age first a nested

Consider two ways to compute the names of employees who earn more than $100,000 and whose age is equal to their manager’s age. First, a nested query:

  Find the year when maximum number of faculty

Find the year when maximum number of faculty were hired - List the number of courses (not offerings) taught in 2006 by faculty rank and department excluding the ones with zero courses taught.

  Your task is to develop a database to support this activity

Your task is to develop a database to support this activity.Here is what you need to be able to provide Custom Auto Body in order to land your first consulting contract:

  Use three-sphere model for systems management

Use the three-sphere model for systems management and brainstorm issues related to the change based on the business, technology, and organization spheres.

  Online transactions versus a data warehouse optimized

Outline the main differences between the structure of a relational database optimized for online transactions versus a data warehouse optimized for processing and summarizing large amounts of data

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