Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve with Python You want to find the mean (average) hydrophobicity of the amino acids next to (neighbor- ing) each of the different kinds of

Solve with Python

image text in transcribed

You want to find the mean (average) hydrophobicity of the amino acids next to (neighbor- ing) each of the different kinds of amino acids in your sequence. In this example sequence: 'GVGL', the neighbors of the first G is V and the neighbors of the second G are V and L. The hydrophobicity of V and L are 76 and 97. So to compute the mean hydrophobicity of neigh- bors of Guanosines you would do: (76 + 76 +97)/3. Note that the same V is counted twice because it is the neighbor of two different Gs. You want to do this for each of the different amino acids that appear in your sequence. You can assume the sequence is at least two amino acids long. Write a function, neighbor_hydrophobicity, which takes two arguments: 1. A string, which represents the protein sequence. 2. A list of integers, which represents hydrophobicity scores of each amino acid in the protein sequence. The function must return: A dictionary of floats. The keys in the dictionary must be the different amino acids in the sequence. The value associated with each amino acid key must be the mean hydrophobicity of all neighbors of each occurrence of that amino acid. Example usage: If the function is called like this: neighbor_hydrophobicity('GVGL', [0, 76, 0, 97]) then it should return (not necessarily with key-value pairs in that order): {'G': 83.0, 'V': 0.0, 'L': 0.0}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago