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

  Program to convert temperature in celcius from fahrenheit

Write the program which accepts the temperature in Fahrenheit from user and conversts it to Celsius by subtracting 32 from Fahrenheit value and multiplying result by 5/9. Show both values.

  Implement ref integ result in data duplication

Would failure to implement Ref Integ result in data duplication, incorrect data sets, or broken table errors or is there a work around.

  Program to report page number and offset of virtual address

Your program will report page number and offset of given virtual address with specified page size. Page sizes should be specified as power of 2 in the range 1024-16384 (inclusive).

  Program asks for number of shares-whole dollar portion price

Program asks for number of shares held, whole dollar portion of price, and fraction portion. fraction portion is to be input as two integer values, one for numerator and one for the denominator.

  Write function is pseudocode to calculate area of triangle

Write down the function is pseudocode called calculate area which calculates the area of a triangle. Algorithm for area computation is this: area=1/2*base*height.

  Write a class to accepts no parameters and returns no value

Write class named ParkingMeter containing:A method named tick that accepts no parameters and returns no value. tick decreases value of timeLeft by 1, but only if value of timeLeft is greater than 0.

  Compare three generations of programming languages

Compare and contrast at least three generations of programming languages. Be sure to include in your discussion: semantics, syntax, and machine dependence.

  Write driver class to instantiates-updates flight objects

Write a driver class called FlightTest whose main method instantiates and updates several Flight objects. Two classes are needed for this project: Flight and FlightTest.

  Write program to calculate student-s quiz average

Write a program that will calculate a student's quiz average. The program should prompt the user for the number of quizzes and then ask the user for each quiz grade.

  Design a small dictionary using the binary search tree

Design a small dictionary using the Binary Search Tree data structure. Each entry may include a word and its definitions. You should create the tree structure/dictionary using data input from a text file. After the dictionary is created, the user ..

  Write an assembly code segment that calls the subroutine

Write an assembly code segment that calls the subroutine New Functionif bits 5 and 6 of PORTD equal 1 and write the same code segment in part (a) using structured assembly constructs.

  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.

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