Complete the function, count_bases(s). It takes as input a DNA sequence as a string, s. It should compute the number of occurrences of each base (i.e., 'A', 'C', 'G', and 'T') in s. It should then return these counts in a dictionary whose keys are the bases.

Answers

Answer 1

Answer:

The function is as follows:

def count_bases(DNA_str):

   retDNA = {}

   for i in DNA_str:

       if i in retDNA:

           retDNA[i]+=1

       else:

           retDNA[i] = 1

   return retDNA

Step-by-step explanation:

This defines the function

def count_bases(DNA_str):

This initializes a dictionary

   retDNA = {}

This iterates through the dictionary

   for i in DNA_str:

If an item exists in the dictionary

       if i in retDNA:

The count is updated by 1

           retDNA[i]+=1

Otherwise

       else:

The count is set to 1

           retDNA[i] = 1

This returns the DAN

   return retDNA


Related Questions

ASSESSMENT:
Act as the person in the problem Do the activity. Record your
findings then answer

1. A farmer placed 250 mangoes in a crate, these are 150 ripe and 100 unripe
mangoes, his wife randomly selected 80 mangoes, she got 50 ripe mangoes
and 20 unripe mangoes, find the experimental probability of the mangoes she
selected.

2. A table tennis player has 40 orange table tennis balls, 30 white and 20 yellow
table tennis balls. After selecting 18 balls, he found out that he got 6 white
table tennis balls. Find out the experimental probability of getting white table
tennis table tennis balls.

please answer this ​

Answers

Answer:

in 1st his wife selected 80 mangoes 50 ripe and 20 unripe how it can be

Step-by-step explanation:

50+20=70 not 80

please share the correct question than I may help you

199 rounded up to the nearest hundred​

Answers

Answer:

199

Step-by-step explanation:

Answer:

It would be 200 because 199 is closer to 200 rather than 100.

Show that the transformation T defined by ​T(x1​, x2​)= ​(x1x2​, x1​, x2​) is not linear. If T is a linear​ transformation, then ​T(0​)= ____________

Answers

Answer:

A linear transformation is defined as:

For a transformation T that goes from R^n to R^m, this transformation is linear if, for two vectors A and B, we have that:

T(A + B) = T(A) + T(B)

In this case, we have the transformation:

T(x1​, x2​)= ​(x1x2​, x1​, x2​).

If we define two vectors:

A = (a1, a2)

B = (b1, b2)

if the transformation is lineal, we will have that:

T(A + B) = T(A) + T(B)

Or

T(0) = T(A - A) = T(A) + T(-A)

(just two different ways of writing the same thing, I will use the first one, because it is the general way)

We want to see that, for our transformation, this equation is false.

first the left side:

A + B = (a1, a2) +  (b1, b2) = (a1 + b1, a2 + b2)

Then the transformation applied to that vector gives:

T(A + B) = T(a1 + b1, a2 + b2) = ( (a1 + b1)*(a2 + b2), (a1 + b1), (a2 + b2))

             = (a1*a2 + a1*b2 + b1*a2 + b1*b2, a1 + b1, a2 + b2)                                  

While for the right side, we have:

T(A) + T(B) = T(a1, a2) + T(b1, b2) =  (a1*a2, a1, a2) + (b1*b2, b1, b2)

                  = (a1*a2 + b1*b2, a1 + b1, a2 + b2)

Then we can rewrite:

T(A + B) = T(A) + T(B)

as:

(a1*a2 + a1*b2 + b1*a2 + b1*b2, a1 + b1, a2 + b2) = (a1*a2 + b1*b2, a1 + b1, a2 + b2)

We can see that the first part of these vectors is different, thus, the equality is false.

Then we can conclude that:

T(A + B)  ≠ T(A) + T(B)

Then the transformation T is not linear.

Manu has soccer practice at the park at 5:20 P.M. It ends at 6:15 P.M.


How long is Manu's soccer practice?

Answers

Answer:

His practice is 55 minutes long

you can look at it this way

from 5:20pm to 6:pm, is only 40 minutes

then from 6:00pm to 6:15pm is only 15 minutes

40 + 15 = 55


v
=

20
L
v
=
20
L


to estimate the speed of a car,
v
v
, in miles per hour, based on the length,
L
L
, in feet, of its skid marks when suddenly braking on a dry, asphalt road. At the scene of an accident, a police officer measures a car's skid marks to be 168 feet long. Approximately how fast was the car traveling? Round your answer to the nearest tenth (one decimal place) of a unit.

Answers

Answer:

sorry no idea hhcchuucghhf

HELP I HAVE TO PASS!
What is the average rate of change for this quadratic function for the interval from x=0 to x=2?

A) -4
B) -2
C) 2
B) 4

Answers

Answer:

At X = 0     Y = 10

At X = 2      Y = 6

Rate of  change = change in Y / change in X = -4 / 2 = -2   or B

Russian Walks to school Every day. Which one of the following is the best describe how long time russian takes to walk to school?
1) Inches
2)Minutes
3) Centimeter
4)Meters

Answers

Answer:

Minutes answer B

hope it helps

Answer:

option 2. Minutes

Step-by-step explanation:

The question is how long time the Russian takes.

Except option 2 , the rest of the measurements are for distance/ length.

What is the probability that they both choose a card labeled dog?

Answers

Answer:

0.16

Step-by-step explanation:

As it is stated that the card having the label of a dog has a probability of 0.4. Hence, the probability that they both choose a card labeled dog is 0.16.

every solid shapes sit or stand on me what am I​

Answers

Answer:

Base

Step-by-step explanation:

Every solid shape has to have a base that they sit/stand on. Because the base  is the bottom of the shape and lies on the table. Hence, answering your question.

Hope this helps!

This one was difficult but if your work through it, you will get it.

Keep trying!

Q2 find the degree of the polynomial
x4(4x+1)​

Answers

Step-by-step explanation:

x⁴(4x+1)

4x⁵+x⁴

degree is 5

Let x be a real number such that x + (1/x) is an integer. Prove that (x^n) + 1/(x^n) is an integer for every positive integer n.

Answers

Answer:

sim eu também preciso desta respota

Divide the following two complex numbers.
3+2i
5-3i

Answers

Step-by-step explanation & answer:

Conjugate = 5+3i

Multiply fraction by conjugate:

(15+9i+10i+6i^2) / (25-9i^2)

Simplify:

(15+19i+6i^2) / (25-9i^2)

i^2 is -1:

(15+19i-6) / (25+9)

So:

9+19i / 34

Into a +bi form:

9/34 + 19i/34

The football and soccer teams at Juan's middle school are selling movie tickets. He wants to determine the average
number of tickets sold at the school. First, he surveyed eight random players on the football team. Then, he surveyed
every third athlete on the football and soccer team. Which sampling technique should produce a more representative
sample?
The first sampling method, surveying eight random football players, is the most representative.
O Neither sample will be representative.
Both samples should be exactly the same.
The second sampling method, survey.ing the both teams, is the most representative.

Answers

Step-by-step explanation:

both samples should be exactly the same


Am I correct if not plz fix it ASAP I have 4 minutes left

Answers

Answer:

no not correct it should be horizontally left 2 units and vertically down 5 units

Estimate and classify the critical points for the graph of the function.

Answers

Answer:

Critical point is at (-1, 2) because it is the point where the slope is approximately zero.

Step-by-step explanation:

A critical point in a graph like this is simply the point where the slope is zero or undefined.

Looking at the graph given, the point at which the graph slope is zero is around the coordinate (-1, 2).

So we estimate that to be the critical point.

your teacher plotted a set of cordinetes that contained a negative x and positive y Wich point graphed below could represent the point plotted​

Answers

Answer:a

Step-by-step explanation:

Answer:

See below

Step-by-step explanation:

This set of coordinates does represent a point [tex]P(x,y)[/tex].

Considering a Euclidian plane, such that [tex]P(x,y) \in\mathbb{R}^2[/tex], we have [tex]x\in(-\infty, 0)[/tex] and [tex]y\in[0, \infty)[/tex] . Therefore, the point is in Quadrant II. You possibly forgot to give the points, but point like [tex](-1, 2), (-20, 5), (-1.234, 78)[/tex] could be the answer. In fact, you can just define the point as

[tex]P(x,y) \in\mathbb{R}^2 : x\in(-\infty, 0) \text{ and } y\in[0, \infty)[/tex]

a solid has volume 2 cubic units and surface area 10 square units. The solid is dilated, and the image has a volume 128 cubic units. What is the surface area of the image?

Answers

Step-by-step explanation:

the answer is 640. Hope this helps

The side length of dilated cubes is 10.08 units. Then the surface area of the dilated cube is 609.6384 square units.

What is dilation?

Dilation means the changing of the size of the object without changing the shape. The size of the object may be increased or decreased based on the scale factor.

A solid has a volume of 2 cubic units and a surface area of 10 square units.

The solid is dilated, and the image has a volume of 128 cubic units.

Let the original side length of the cube be a and dilated length of the cube be b.

The value of a will be

[tex]a^3 = 2\\\\a \ = 1.26[/tex]

Then the ratio of their volume will be

[tex]\rm \dfrac{b^3}{a^3} = \dfrac{Dilated \ volume }{Original \ volume }\\\\\\\dfrac{b^3}{a^3} = \dfrac{128}{2}\\\\\\\dfrac{b^3}{a^3} = 64\\\\\\\dfrac{b}{1.26} = 8\\\\\\b \ = 10.08[/tex]

Then the surface area of the dilated cube will be

[tex]\rm Dilated \ surface \ area = 6 *10.08^2\\\\Dilated \ surface \ area = 6*101.6064\\\\Dilated \ surface \ area = 609.6384 \ square \ units[/tex]

More about the dilation link is given below.

https://brainly.com/question/2856466

The Madison Cosmetics Company has developed a new women's facial cleanser that they believe is superior to those currently on the market in the $5 - $10 range. They wish to test the cleanser against the two current best-sellers.
A. Identify a potential problem with using a completely randomized experimental design to test the cleanser. Explain.
B. The company executives decide to design and carry out a block design experiment to test the new cleanser against its competition. Choose an appropriate blocking scheme for the experiment and justify your choice.
C. Should the company put a control group into the experiment? Why or why not?
D. Could the experiment be a double-blind experiment? Explain.

Answers

Answer:

a. there could be a problem of high error

b. randomized block design can remove the issue of heterogeneity

c. yes they should

d, yes it could

Step-by-step explanation:

a. if their is a lack of homogeneity among the sample population, then the results that would be obtained are going to be with increased experimental error.

b. given the number of treatment, the randomized block design technique can be done. This would then remove the issue of heterogeneity. It also gives more information and the results from the test are easier. Even in the presence of missing data, the missing plot technique can be employed.

c. when a control group is used, it makes easier the examination of the market research in a more effective way.

d. Yes it could be a double blind one. This would help to take away the problem of bias.

i need help with this question on my homework

Answers

Answer:

the angle would be 64°

Step-by-step explanation:

since the other angle is already 296° having the other angle would add to complete the 360 degrees of the circle

Answer:

Step-by-step explanation:

64 because you subtract 360 by 296

US adults consume an average of 3,400 mg of sodium each day. We wanted to find out if a 5 minute health video would help people control their salt intake. After watching the video, the 36 participants in our study had a mean sodium intake of 3,200 mg with a standard deviation of 600 mg. What type of statistical test should we run to find out if there was a difference between our group and the general population

Answers

Answer:

a)  Z Test(n>30)

b)  [tex]t=2.028[/tex]

Step-by-step explanation:

Average [tex]A=3400[/tex]

Mean [tex]\=x=3200[/tex]

Sample size [tex]n=36[/tex]

Standard deviation [tex]\sigma=600mg[/tex]

Generally using the Z Test(n>30)

Generally the equation for Standard Error S.E is mathematically given by

[tex]S.E=\frac{600}{\sqrt{36}}[/tex]}

[tex]S.E=100[/tex]

Generally the equation for Z test is mathematically given by

[tex]Z=\frac{\=x-A}{\sigma\sqrt{n}}[/tex]

[tex]Z=\frac{3200-3400}{600\sqrt{36}}[/tex]

[tex]Z=-2[/tex]

From table

[tex]T critical= (Z,df)[/tex]

Where

[tex]df=n-1[/tex]

[tex]df=35[/tex]

Therefore

[tex]t=2.028[/tex]

Derek sold her house for $541,600, which was 140% of the amount she paid for it.
Calculate the amount she paid for the property.

Answers

9514 1404 393

Answer:

  $386,857.14

Step-by-step explanation:

You have ...

  sold = 140% × paid

Dividing by 140% gives ...

  paid = sold/1.40 = $541,500/1.40 = $386,857.14

Derek paid $386,857.14 for the property.

Trigonometry help please? I need the three answers

Answers

Answer:

Both triangles are triangle rectangles, but the triangles are not similar.

Step-by-step explanation:

By the Pythagorean's theorem, we know that for a triangle rectangle the sum of the squares of the cathetus is equal to the square of the hypotenuse.

Where the cathetus are always the two sides of smaller length.

We also know that two figures are similar if all the correspondent sides are proportional to each other, this means that the figures have the same shape but different size.

First, for triangle A the measures of the sides are:

48, 55, 73

Here the two catheti are 48 and 55, and the hypotenuse is 73.

Then to answer the first question we need to try to apply the Pythagorean's theorem, we should have:

48^2 + 55^2 = 73^2

solving that we get:

5,329 = 5,329

This is true, thus triangle A is a triangle rectangle.

Now for triangle B the measures are: 36, 77 and 85.

So the catheti are 36 and 77, and the hypotenuse is 85

So to check if triangle B is a triangle rectangle the equation:

36^2 + 77^2 = 85^2

must be true, solving both sides we get:

7,225 = 7,225

This is true, so triangle B is a triangle rectangle.

Finally, to check if the figures are similar we need to compare the correspondent sides of both triangles, such that the quotient of correspondent sides must be always the same.

For the hypotenuses, if we compute:

(hypotenuse B)/(Hypotenuse A) we get:

85/73 = 1.16

Now if we do the same for the two smaller catheti we get:

36/48 = 0.75

The quotients are different, thus the triangles are not similar.

Find the measure of angle X. The horizontal lines are parallel. HINT: The sum
of all interior angles in a triangle is 180 degrees.

Answers

Answer:  x = 112 (choice D)

===========================================================

Explanation:

The angle adjacent and supplementary to the 107 degree angle is 73 degrees because 107+73 = 180.

Or you could say 180 - 107 = 73.

The base angles of the upper isosceles triangle are 73 degrees each, which means the third remaining angle (let's call it y for now) is

73+73+y = 180

146+y = 180

y = 180-146

y = 34

Refer to the diagram below. Notice how the 34 degree angle shows up twice because we have vertical angles. Consequently, the base angles of the bottom isosceles triangle are y = 34 degrees each

We can now solve for x

y+y+x = 180

34+34+x = 180

68+x = 180

x = 180-68

x = 112, so the answer is choice D

Find the length of the missing side. Leave your answer in simplest radical form.
Hyp = 15yd
Leg = 13yd
Leg = X

Answers

Answer:

The other side is 7.48 yards.

Step-by-step explanation:

Given that,

Hypotenuse = 15 yards

One leg = 13 yards

We need to find the length of the other leg. We can use the Pythagoras theorem to find it such that,

[tex]H^2=b^2+h^2[/tex]

Where

h is other leg

Put all the values,

[tex]h=\sqrt{H^2-b^2} \\\\h=\sqrt{(15)^2-(13)^2} \\\\h=7.48\ yd[/tex]

So, the other side is 7.48 yards.

Over what interval is the parabola below decreasing?



3<. x. <∞
−∞ <. x. <3
−1<. x. <∞
−∞ < x < −1

Answers

Answer:

B. -oo < x < 3

Step-by-step explanation:

since the vertex (3, -1), so, x should be less than 3

-oo < x < 3

What is the length of the line segment joining the points A(3, - 5) and B(-5,1)?​

Answers

√26 would be your answer

Alla and Balla together drink 750 milliliters (ml) of water. If Alla drinks 50% more than
Balla, how much does Alla drink?

Answers

Answer:

Step-by-step explanation:

A + B = 750

A = 1.5 B

~~~~~~~~~~~~~~

750-B = 1.5 B

750 = 1.5 B + B

750 = B(1.5 +1)

750 = B (2.5)

B = 300

A = 450

Which statement is true about the function f(x)= sqrt of x?

Answers

the answer is D the range of the graph is all greater than or equal to 0

what is the answer?
(2a³b⁴)⁴=

Answers

Answer:

16a^12 b^16

Step-by-step explanation:

that's the answer. just multiply out the powers

Answer:

16*(a^12)*(b^16)

Step-by-step explanation:

In order to solve this problem, we can split these term into three separate terms.

[tex]{(2 {a}^{3} {b}^{4})}^{4} = {2}^{4} \times {( {a}^{3}) }^{4} \times {( {b}^{4} )}^{4} [/tex]

2 to the power of 4 is 16.

[tex] {2}^{4} = 16[/tex]

As for the terms a and b, the two exponents can multiply with each other.

[tex] {( {a}^{3} )}^{4} = {a}^{(3 \times 4)} = {a}^{12} [/tex]

[tex] {( {b}^{4} )}^{4} = {b}^{(4 \times 4)} = {b}^{16} [/tex]

Now, we can directly multiply the values together by combining into one term.

Hence, the final answer is

[tex]16 {a}^{12} {b}^{16} [/tex]

Helpppp please ASAP

Answers

Answer:

(13, -3).

Step-by-step explanation:

Expression representing transformation has been given as,

[tex]r_{y-z}oT_{4,-5}[/tex]

First apply the rule → [tex]T_{4,-5}[/tex]

Translation of the point by 4 units along the x-axis and 5 units downwards along the y-axis,

(x, y) → (x + 4, y - 5)

(-1, -8) → (-1 + 4, -8 - 5)

          → (3, -13)

Now apply the rule of reflection over the line y = -x to the image point (3, -13),

(x, y) → (-y, -x)

(3, -13) → (13, -3)

Therefore, answer will be (13, -3).

Other Questions
Use your knowledge of Greek and Latin roots to find the word which best replaces the underlined word.My mother wanted to augment the amount of chores I had, but I thought I already had plenty.a.increasec.lessonb.changed.none of the abovePlease select the best answer from the choices providedABCD What is the initial pressure of a gas if its occupied a volume of 0.375 L but now occupies a volume of 1.25 L at a pressure of 95.5 K PA Instant Dinner comes in packages with weights that are normally distributed, with a standard deviation of 0.5 oz. If 2.3% of the dinners weigh more than 13.2 oz, what is the mean weight? find the area of the circle use 3.14 for it d = 10 cm a = ? cm^2NO TROLLS TY Directions: As a responsible senior high school student, your actions are cautious consequences toward the protection of life of others and that of the environment. In this activity, you have to make a plan of action at home by citing five household consumption habits and write across each habit your possible contribution to help solve the climate change. ANSWER PLEASE! Richard is on a diet and has made a promise not to eat ice cream the entire year. However, during his best friend's party, he eats ice cream. He claims that he is only doing this because it was a very special occasion. He is exhibiting:______. Why you walk Study the following graphic organizer, then determine which answer BEST completes the chart for space 1, space 2, and space 3.A.space 1: auxiliaryspace 2: Expresses actions being performedspace 3: RoboCup will remain at the cutting edge of technological advances.B.space 1: actionspace 2: Connects subjects and complements (i.e., predicate adjectives and predicate nominatives)space 3: RoboCup will remain at the cutting edge of technological advances.C.space 1: auxiliaryspace 2: Connects subjects and complements (i.e., predicate adjectives and predicate nominatives)space 3: RoboCup will remain at the cutting edge of technological advances.D.space 1: linkingspace 2: Connects subjects and complements (i.e., predicate adjectives and predicate nominatives)space 3: RoboCup will remain at the cutting edge of technological advances. Primary sensory afferent axons have widely varying diameters, and their size correlates with the type of receptor to which they are attached. Write down the axons that are the smallest and the slowest? what is the definition of risk ? What are the two main reasons the Roman Empire, the Han dynasty, and the Gupta Empire fell? A Deloitte employment survey asked a sample of human resource executives how their company planned to change its workforce over the next 12 months (INC. Magazine, February 2012). A categorical response variable showed three options: The company plans to hire and add to the number of employees, the company plans no change in the number of employees, or the company plans to lay off and reduce the number of employees. Another categorical variable indicated if the company was private or public. Sample data for 180 companies are summarized as follows.a. Conduct a test of independence to determine if the employment plan for the next 12 months is independent of the type of company. At a .05 level of significance, what is your conclusion?b. Discuss any differences in the employment plans for private and public companies over the next 12 months. Awareness of ourselves and our environment is:A. an altered state.B. consciousness.C. hypnosis.D. hyper-alertness. Name the THREE Constituent bodies that would house theracial groups in the Tri-Cameral Parliament. How did the scientific method impact the work impact the work of scientists beginning in the 16th century? What is the current situation in Vietnam How are the dishwashing detergent and the sanitizer solution dispensed into the sinks Which of the following phenomenon odd called photoelectric effect?A. High energy electrons impinge on a metallic Annie which emits electronsB. A high energy photon emits photons as it slows downC. A metal absorbs a quanta of light and then emits electronsD. Two electrons are created from a quanta of light. The Democratic party is associated with the color blue and is represented by a __________ mascot.A.horseB.buffaloC.zebraD.donkey What are the measure of 1 and 2 ? Show your work or explain