Answers
#!/bin/bash #set first and second arguments (dnafile and base respectively) dir=$1 base=$2 count=$(grep -o ${base} ${dir} | wc -l) echo "${count}"
OUTPUT :
$ ./countmatches ttt dnafile 1
(Alternative awk script for the same )
AWK SCRIPT :-
grep -v ">" < input.fa | tr -d '\n' | sed 's/\([ATGCatgcNn]\{3,3\}\)/\1#/g' | tr "#" "\n" | awk '(length($1)==3)' | sort | uniq -c.
Similar Solved Questions
1 answer
(a) For the same data and null hypothesis, is the P-value of a one-tailed test (right...
(a) For the same data and null hypothesis, is the P-value of a one-tailed test (right or left) larger or smaller than that of a two-tailed test? pick one The P-value for a one-tailed test is smaller because the two-tailed test includes the area in both tails. The P-value for a one-tailed test is lar...
1 answer
Please show work neatly and explain! 10. Assume the following expected free cash flows for Peterson...
please show work neatly and explain! 10. Assume the following expected free cash flows for Peterson Corporation for 2017: Current Forecast Horizon Terminal 2017 2018 2019 2020 2021 Year Free cash flows to the firm (FCFF) $4,651 54,884 $5,128 $5,384 $5,653 $5,766 The company has net nonoperating ...
1 answer
How do you solve #3x^2-4x-5=0# by completing the square?
How do you solve #3x^2-4x-5=0# by completing the square?...
1 answer
Need soon please! please show all work and units so I can follow along. 2. (20...
need soon please! please show all work and units so I can follow along. 2. (20 pts) The current in the long straight wire at the top of the figure below carries a current of 11 = 5 A. The rectangular loop of wire also lies in the plane of the page and carries current 12 = 10 A. Both currents flo...
1 answer
A-C Costs per Equivalent Unit Georgia Products Inc. completed and transferred 194,000 particle board units of...
A-C Costs per Equivalent Unit Georgia Products Inc. completed and transferred 194,000 particle board units of production from the Pressing Department. There was no beginning inventory in process in the department. The ending in-process inventory was 17,000 units, which were 3/5 complete as to con...
1 answer
A circular plate has radius 15cm
a circular plate has radius 15cm. every dimension is multiplied by 4 to create a larger, similar plate. how is the ratio of the circumferences related to the ratio of the corresponding dimesions? what is the ratio to the circumferences?(hint: think of circumference as perimeter if a circle.)...
1 answer
Describe the laws passed in the 1990s that relate to corrections and sentencing. What are the...
Describe the laws passed in the 1990s that relate to corrections and sentencing. What are the three changes that had the effect of keeping offenders incarcerated for longer periods of time, and for more crimes?...
1 answer
[2] Steve has created a "grab the marble" game. If you grab a green marble you...
[2] Steve has created a "grab the marble" game. If you grab a green marble you get a dollar, if you grab a yellow marble you get nothing. Out of a total of 100 marbles, there are 31 green marbles, and 69 yellow ones. You decide to reach into the bag and grab a marble 39 times, replacing the ...
1 answer
I need help with these two! Especially the first one. 13. (5 pts) How many carbon...
i need help with these two! Especially the first one. 13. (5 pts) How many carbon environments are there in trans-1,3-dimethylcyclohexane? 14. (10 points). Give a Newman projection for the view down the C2-C3 bond in the second most stable conformer of pentane. Use the standard alkyl group abbrev...
1 answer
7. Assume that output growth in the U.S. is 2%, money demand (L) is constant and...
7. Assume that output growth in the U.S. is 2%, money demand (L) is constant and money supply growth is 4%. Assume that output growth in China is 58, L is constant and money supply growth is 98. a. Assume that relative PPP and the quantity theory of money holds. What is the growth rate of the dollar...
1 answer
1. Complete the table below for f(x)=3". Use exact values. No work needed. [1.25 points) -...
1. Complete the table below for f(x)=3". Use exact values. No work needed. [1.25 points) - 101 y = f(x) 2. Consider the functions gtx)=(13)" and h(x) =--() +4 12.5,1.25, 1.5 points) a) The points given below (in the first column) belong to g(x)= - Perform two b) Use the point found in part a...
1 answer
I need help determing the multiplicity (singlet, doublet, triplet, etc.) and the expected integration (number of...
I need help determing the multiplicity (singlet, doublet, triplet, etc.) and the expected integration (number of protons- eg. 1H, 2H, 3H) for each spectra. OH Source: www.chemicalbook.com Br. 2,46-tribromophenol H-NMR Spectrum 7 6 2 p-nitroacetanilide H-NMR Spectrum 2,1 pm 8.2ppm lo.uppm ヒ-7....
1 answer
Dave Bowers collects U.S. gold coins. He has a collection of 38 coins. Some are $10...
Dave Bowers collects U.S. gold coins. He has a collection of 38 coins. Some are $10 coins, and the rest are $20 coins. If the face value of the coins is $550, how many of each denomination does he have?...
2 answers
How do you solve the following system: #6x+2y=-4, -x+y=5#?
How do you solve the following system: #6x+2y=-4, -x+y=5#?...
1 answer
You receive a $16,000 5-year constant amortization loan (CAL). The loan's annual interest rate is 10%....
You receive a $16,000 5-year constant amortization loan (CAL). The loan's annual interest rate is 10%. What is the total payment in year 4, rounded to the nearest dollar?...
1 answer
Merrill Corp. has the following information available about a potential capital investment: Initial investment Annual net...
Merrill Corp. has the following information available about a potential capital investment: Initial investment Annual net income Expected life Salvage value Merrill's cost of capital $2,100,000 $ 200,000 8 years $ 210,000 10% Assume straight line depreciation method is used. Required: 1. Calcula...
1 answer
+ TOCH DMSO Br Part 1: a X The reaction proceeds by which mechanism? O Sni...
+ TOCH DMSO Br Part 1: a X The reaction proceeds by which mechanism? O Sni 0 Sy2 Part 2 out of 2 What are the products of the reaction? draw structure... < Prey 16 of 16 Next...
1 answer
Question 1 (2 points) Which one of the following statements is true about a discrete random...
Question 1 (2 points) Which one of the following statements is true about a discrete random variable? The values of a discrete random variable can be plotted on a line in an uninterrupted fashion. A random variable takes any value between two given values. The values of a discrete random variable ca...