Question: Using Linux - glutamine - bash: Write a script called countAA.bash that takes one command line argument which is the name of a protein data

Using Linux - glutamine - bash:

Write a script called countAA.bash that takes one command line argument which is the name of a protein data bank (.pdb) file and prints out to the screen a list of the number of each of the 20 amino acids appearing in that protein file along with the 3 letter amino acid code. Hint: look at the script we wrote in Class 2A. The 3 letter abbreviations for the amino acids are: ALA, ARG, ASN, ASP, CYS, GLU, GLN, GLY, HIS, ILE, LEU, LYS, MET, PHE, PRO, SER, THR, TRP, TYR, VAL. You can test your script on the PK.pdb file that is provided in the homework2 directory, which contains 208 ALA and 64 PHE amino acids (and differing numbers of the other 18 amino acids). If no argument is given to the script it should print (echo) the message: This script requires a protein file and if a non-existent protein file is given to the script it should print Cannot find protein file. Note to be sure to use exactly these messages in your script.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!