Using unix extract the various ethnic populations in file

Assignment Help Programming Languages
Reference no: EM13163470

Using Unix extract the various ethnic populations in your file.

2.      Your PERL program should produce two sets of data that can be used to produce figure1 and table 1 and table 2 for your final paper.

 

a.       Table 1: Number of participants that subscribe to each ethnic group

b.      Table 2: Number of each genotyped result by ethnic group.

Example : Table 2

Genotype

African-American

Asian

Caucasian

*1/*1

1094

276

7174

*1/*10

0

0

2

c.       Figure 1: Using the data in Table 2 create a figure that can easily highlight the differences in genotype distributions across ethnic populations. Figure should be publication ready with titles, axis labels, legend, and description. Can be created using any statistics program or Excel.

Perl program requirements:

  • Code should follow good programming practices
  • The program should accept the path of the input file and the path of the output file from the command line.
  • Keep in mind that *1/*2 is the same as *2/*1 Your code should consider these the same and eliminate any duplicate reporting.
  • If a particular genotype is not included in an ethnic group, your code must put a zero value.
  • You will need to include at least 2 subroutines in your program and pass any arrays or hashes as references to and from subroutines.
  • You will need to use a hash as the data structure to determine the ethnic distribution.

Reference no: EM13163470

Questions Cloud

What is the average thickness of the sheet in meters : if a 1.00 g piece of gold (density = 19.32 g/cm^3) is hammered into a sheet 8.0 x 5.0 ft what is the average thickness of the sheet in meters?
Several valid and invalis invoice objects : Create a program that attempts to create several valid and invalis invoice objects. Immediately after each instantiation attempt handle any thrown exceptions by displaying an error message.
Display the array, the average and the number of days above : Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.
Simple java application that uses the string : Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.
Using unix extract the various ethnic populations in file : Using Unix extract the various ethnic populations in your file.
Using array subscript notation : Using array subscript notation, base/offset notation with the array name as the pointer, array notation with  vPtr , and pointer/offset notation with  vPtr , add 3 to the value in the 3 rd element and display that number. (Do not modify the value in ..
Implement a function to recursively : Implement a function to recursively determine if a word is a palindrome. A palindrome is a word, phrase, number, or other sequence of symbols or elements, whose meaning may be interpreted the same way in either forward or reverse direction.
. assume the node is in the usual info-link form with info : Show what is produced by the following C++ code. Assume the node is in the usual info-link form with the info of the type int. (list, trail, and current are pointers of type nodeType.)
Prepare the journal entry to record depreciation expense : Irons Delivery, Inc., purchased a new delivery truck for $42,000 on January 1, 2009. The truck is expected to have a $2,000 residual value at the end of its five-year useful life. Irons uses the straight-line method of depreciation.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Create program to counts number of bytes located in memory

Create the program which Counts the number of bytes located in memory from DS:1000h to DS:1200h which are greater than 77h. Put the count on register CX.

  Develop unix shell script to input number of hours

Develop a Unix shell script to input number of hours worked and pay rate and calculate the total pay, then the social security amount (assume 5%), then the net pay.

  Design a program to amount save for budgeted

Design a program that asks the user to enter the amount that he or she has budgeted for a month. (For example: $2,000.00). A loop should then prompt the user to enter each of his or her expenses for the month

  Subdividing address block among four different customers

The ISP needs to subdivide the address block among four different customers, requiring 29, 28, 27, and 26 hosts respectively.

  Create program which models snake-s behavior

Create a program which models snake's behavior in the given scenario: A snake is moving toward hole. Each time it moves, snake cuts distance between itself and hole by its own body length

  Write program to print names of files with similarity

Write down the program which prints names of two files with highest similarity among files in collection, and names of two files with lowest similarity.

  Function to calculate recurrence using dynamic programming

Write down a function to calculate the following recurrence by using dynamic programming. PN = PN-1 + 2PN-2, with P1 = P0 = 1.

  Write down a method which is passed string argument

Write down a method, getFirstLine, which is passed a String argument and that returns first line. (Recall that lines are terminated with the "n" character.)

  Create command line based application for perfect hundred

Create a COMMAND LINE based application to play a game called Perfect Hundred. In this game, the user/player competes against the computer.

  Create a class named rectangle with length and width

To cover that floor with carpet that costs $8 per square foot would cost $960. (12 x 10 x8 = 960.). You should create a class named Rectangle with the following properties:

  Draw and implement abstract base class

Draw and implement the abstract base class ArithmeticExpression which represent any binary (having two arguments) arithmetic expression.

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