Write a subroutine named as count_monomers

Assignment Help Programming Languages
Reference no: EM13326358

• Write a Perl code ("my-seq-stats.pl") to emulate its two methods ("count_monomers" & "count_codons") with the following specific requirements:

o Read the fasta file with Bio::SeqIO

o Write a subroutine named as "count_monomers" to count and print the frequency of each nucleotide (in percentage), sorted by nucleotide type. The argument for the subroutine would be the sequence as a string, as in count_monomers($seqobj->seq). The return value would be a reference to a hash (the same as the $monomers in the above code).

o Hint: use hash to count unique bases

o In a similar way, write a subroutine named as "count_codons" to count and print the frequency of each codon, sorted by codons. Your codon counts should be the same as those produced by the listed code.

Reference no: EM13326358

Questions Cloud

How are you going to organize this influx : How are you going to organize this influx of information so that everyone can be satisfied and a logical work sequence can be scheduled and how will new releases be handled?
Determine what is the water wettability index for the core : A cylindrical core, completely saturated with oil up to immobile water saturation, is immersed in water and the measured volume of oil displaced by imbibition of water is 7.5 c.c.
Determine the rise in liquid level for oil water system : The density of oil is 0.7 g/cc, the density of water is 1.0 g/cc, the radius of capilary is 0.008 cm, the contact angle through water is 58, the interfacial tension is 50 dynes/cm. Calculate the height in cm
What would be the capillary pressure between oil and water : If the interfacial tension between air-mercury interface in a capillary tube is 480 dynes/cm and the contact angle through the mercury is 140, what would be the capillary pressure between oil and water
Write a subroutine named as count_monomers : In a similar way, write a subroutine named as "count_codons" to count and print the frequency of each codon, sorted by codons. Your codon counts should be the same as those produced by the listed code.
Derive an equation for the velocity profile within the film : derive an equation for the velocity profile within the film in terms of radial distance r, measured from the cylinderaxis, the film thickness, δ, and the appropriate physicalpropertiesof the liquid. State clearly all assumptions made
How fast will the toolbox be moving : If it starts 4.70m from the lower edge of the roof, how fast will the toolbox be moving just as it reaches the edge of the roof if the kinetic friction force on it is 21.0N
How far away from the base of the cliff does the rock land : A rock is thrown with initial velocity of 10 m/s and falls 50 m from the base of the cliff. how far away from the base of the cliff does the rock land
Unstable relationship as individual members : A cartel is often an unstable relationship as individual members both seek and seize the opportunity to cheat on the agreement and improve their own position at the expense of others.

Reviews

Write a Review

Programming Languages Questions & Answers

  Pseudocode to read in data file containing student names

Read in a data file containing student names, ID number, and gender into an array. Print the contents of each record using the array.

  Design program which ask the user for positive interger

Design a program which ask the user which application to do: after choosing from factorial or triangle(magicSquare), the program must then ask again the user for a positive interger.

  Program where the computer plays against a human opponent

Write a function playExpert(marbles) that given a number of marbles returns the number of marbles that the computer will take following the expert mode rules.

  Implement to do a matrix-matrix product

Implement and check the time to do a matrix-matrix product of a 1000x500 matrix with a 500x800 matrix of floats sequentially and using 1,2,3,4, and 8 threads on dual and quad core processors.

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Write simple program to prompt user for gross salary

Write simple program which will prompt user for his or her gross salary. Your program than will display net salary whereby 11.00% of the gross salary is deducted for EPF

  Recursive double function

each of these returns the list consisting of each element of list y in a list has been replaced by two copies of the elements and

  How to update web pages using navy for unvisited link

The Marketing Director at Steel Solutions is unhappy that links on company Web page appear in blue. She has asked you to update Web pages to use navy for unvisited link.

  Binary search algorithm to search an array

The binary search algorithm that follows may be used to search array when elements are in order. This algorithm is analogous to following approach for finding name in telephone book.

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Write code for largest value of parking tickets

Without using any additional variables, and without changing the values of ndays or the elements of the parkingTickets array, write some code that results in mostTickets containing the largest value found in parkingTickets .

  Write progam which uses two-dimensional array

Write the progam which uses two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low,

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