7 kyu
Percentage of amino acids
287 of 454JasperGeh
Description:
You are a biologist working on the amino acid composition of proteins. Every protein consists of a long chain of 20 different amino acids with different properties. Currently, you are collecting data on the percentage, various amino acids make up a protein you are working on. As manually counting the occurences of amino acids takes too long (especially when counting more than one amino acid), you decide to write a program for this task:
Write a function that takes two arguments,
- A (snippet of a) protein sequence
- A list of amino acid residue codes
and returns the rounded percentage of the protein that the given amino acids make up. If no amino acid list is given, return the percentage of hydrophobic amino acid residues ["A", "I", "L", "M", "F", "W", "Y", "V"].
Fundamentals
Similar Kata:
Stats:
Created | Jul 24, 2017 |
Published | Jul 24, 2017 |
Warriors Trained | 888 |
Total Skips | 61 |
Total Code Submissions | 2453 |
Total Times Completed | 454 |
Python Completions | 287 |
JavaScript Completions | 191 |
Total Stars | 11 |
% of votes with a positive feedback rating | 87% of 173 |
Total "Very Satisfied" Votes | 137 |
Total "Somewhat Satisfied" Votes | 28 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 59 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 8 kyu |