Frequent k-mer problem

Assignment Help Database Management System
Reference no: EM131268851

Problem 1:

We return to the DNA class from Assignment 3. The most frequent k-mer problem seeks the set of substrings of length k (where integer k is an input) that occur most frequently. We add to the DNA class a most_frequent_kmers method that gets called with integer k and returns an array whose first element is the set of k-mers that occur most frequently in this DNA and whose second element is the number of times each one appears.

>> dna1 = DNA.new('ATTGATTCCG')
=> ATTGATTCCG
>> dna1.most_frequent_kmers(1)
=> [#<Set: {"T"}>, 4]
>> dna1.most_frequent_kmers(2)
=> [#<Set: {"AT", "TT"}>, 2]
>> dna1.most_frequent_kmers(3)
=> [#<Set: {"ATT"}>, 2]
>> dna1.most_frequent_kmers(4)
=> [#<set: {"ATTG", "TTGA", "TGAT", "GATT", "ATTC", "TTCC", "TCCG"}>,
1]

Attachment:- Assignment 3 problem.rar

Verified Expert

This assignment deals with the use of hashMap, set and the array in ruby. This program returns the maximum substituting occurring in the string whose length is equal to the supplied to the function.

Reference no: EM131268851

Questions Cloud

Billing function of a company : A bank has recently taken over the billing function of a company. An agreement stipulates that the bank should process 99.2% of the bills within 4 hours.
How language and literacy development is fostered : Imagine that you are asked by a new parent or family member to explain how language and literacy development is fostered in a preschool setting.
Determine the floating exchange rate : With the heavy focus on trade with China, it may be surprising to discover that Canada is the USA’s largest trading partner. Perhaps it is not the amount of trade between the US and China that is such a great concern as much as the growth of the trad..
Managing diversity and inclusion and diversity training : Explain the relationship between “managing diversity and inclusion” and “diversity training.” Which is most effective? Why
Frequent k-mer problem : The most frequent k-mer problem seeks the set of substrings of length k (where integer k is an input) that occur most frequently
Calculate the amount that amy would pay : Amy Koy met Pat Quin on September 8 at Queen Bank. After talking with Pat, Amy decided she would like to consider a $9,000 loan at 10 1/2% to be repaid on February 17 of the next year on exact interest. Calculate the amount that Amy would pay at m..
Create powerpoint presentation describing : Write an MS Word document or create a PowerPoint presentation describing:
Net income will go to federal and state taxes : US Airways has a net income before taxes of $60,000. It's expected the t45% of the net income will go to federal and state taxes. How much will US Airways have left?
Legacy system replacement baseline project plan : You are a systems analyst working for Laggard, Inc. (Laggard), a wholesale distributor of bulk vitamins and fine chemical food additives. Laggard has stayed way behind the IT industry evolutionary curve. Produce a legacy system replacement Baseline P..

Reviews

len1268851

11/7/2016 4:36:04 AM

I NEED THIS PROBLEM BY TOMORROW CAN YOU DO THAT. IF YES THEN GIVE ME THE PRICING THEN I WILL PAY. IF CANNOT BY TOMORROW THAN THANK YOU. IAM HAVING DUE BY TOMORROW EVENING SO.

Write a Review

Database Management System Questions & Answers

  Identify any pattern to these unusual orders

Get all employees that satisfy the following conditions

  Construct an entity-relationship model for the database

Construct an entity-relationship (ER) model for the database. Make sure you include in your model details of entities, relationships, attributes, keys and limits in participation.

  Compile a list of five system administration

Compile a list of five system administration best practices for any two operating systems.

  Define the term use case

Explain the difference between the > and > relationships in use case diagrams?

  Study and modify the postgresql source code

Write a Assignment to study and modify the PostgreSQL source code, with a focus on one of the core modules - the buffer manager

  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.

  Create a schema with appropriate privileges

Create separate physical structures for the new schema as per OFA guidelines - Create a Schema with appropriate privileges

  Create an entity relationship diagram

For your final project you will create an Entity Relationship Diagram (ERD), create tables in your own database, and import data into these tables. For Part 1 of the Project, you will create the ERD. For Part 2 you will build the tables and load t..

  Develop a uml class diagram that illustrates the data items

Develop a UML class diagram that illustrates the data items for your program. List the decisions the program must make. References to the data items in the previous step should be used where appropriate

  Find pairs of sids such that the supplier with the ?rst sid

Find pairs of sids such that the supplier with the ?rst sid charges more for some part than the supplier with the second sid.

  Create a context diagram using visio or powerpoint

Create a context diagram using Visio or PowerPoint based on the information provided. Write a narrative describing the diagram.

  Design a entity tables for small college department library

Design a database (entity and relationship tables in Access) for a small college department library. You should have the entities and relationships you need to support Purchase books.

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