Question: Solve with Python: 1: 2: You have a protein sequence and want to produce a version of that sequence where the characters for all amino
Solve with Python:
1:

2:

You have a protein sequence and want to produce a version of that sequence where the characters for all amino acids with a hydrophobicity score above zero have been converted to lower-case. Write a function, mask_hydrophobic_aa, 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 string, which presents a copy of argument one, where amino acids with a hy- drophobicity score above zero have been converted to lower-case. Example usage: If the function is called like this: mask_hydrophobic_aa('FIPGL', [100, 99, -46, 0, 97]) then it should return : fiPGl' You want to extract the hydrophobic subsequences from a protein sequence. A hydropho- bic subsequence is here defined as the consecutive sequences of amino acids with a hy- drophobicity above zero. Write a function, hydrophobic_subseqs, 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 list of strings, which represents the subsequences of argument one that only con- tain amino acids with a hydrophobicity above zero. Example usage: If the function is called like this: hydrophobic_subseqs('ILVGLMYFEW', [99, 97, 76, 0, 97, 74, 63, 100, -31, 97]) then it should return : ['ILV', 'LMYF', 'W']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
