Question: PLEASE HELP ME HOW TO WRITE THIS BASH SCRIPT. PLEASE EXPLAIN WITH DETAILS. 2 Tasks This assignment consists of two tasks, one related to PDB

PLEASE HELP ME HOW TO WRITE THIS BASH SCRIPT. PLEASE EXPLAIN WITH DETAILS.
2 Tasks This assignment consists of two tasks, one related to PDB files and the other related to nudeotide strings The files that you can use for input for the first task are in the directory /data/biocs/b/student.accounts/cs132/data/pdb.files Tho se for the second are in /data/biocs/b/student.accounts/cs 132/data/dna_textfiles 1. Write a script named atomcoordinates that will expect on the command line two arguments: a valid three-letter code of a st andard amino acid in upper case, and the name of a PDB file. Given a valid amino acid name and a P DB file that it can open, the script will display, for each record of that type that it finds in the file, a line of output containing the atom's serial number, its three-letter amino acid name, and its x, y, and coordinates. For example, a line in the PDB file that looks like this: ATOM 18 CB GLN A 3 83. 556 52.126 45.080 1. 00 26.06 C would cause the following output line to be displayed: 18 GLN 83.556 52.126 45.080 be cause the atom's seria number is 18, its amino acid name is GLN, and its coordinates are 83.556, 52.126, and 45.080. These five pieces of information must be separated by white-space such as blanks Your script has to extract the serial number, amino acid name, and the coor dinates from the lne and di splay them. Your job is to deci de which filters, or combination of filters, can achieve this. This wil take some creativity. A hint is that al of the filters you need have been covered either during class lectures or are listed in the slides in Lesson 9 Figure out which might be usefu, or even better, which are the most efficient for you to use Error checking: Your seript must check that it has both command line arguments, and that the file can be read. It must display a message if either of these is not true. It does not need to check whether the amino aid design ation is valid, because f it is not, it should smply display nothing as its output 2 Tasks This assignment consists of two tasks, one related to PDB files and the other related to nudeotide strings The files that you can use for input for the first task are in the directory /data/biocs/b/student.accounts/cs132/data/pdb.files Tho se for the second are in /data/biocs/b/student.accounts/cs 132/data/dna_textfiles 1. Write a script named atomcoordinates that will expect on the command line two arguments: a valid three-letter code of a st andard amino acid in upper case, and the name of a PDB file. Given a valid amino acid name and a P DB file that it can open, the script will display, for each record of that type that it finds in the file, a line of output containing the atom's serial number, its three-letter amino acid name, and its x, y, and coordinates. For example, a line in the PDB file that looks like this: ATOM 18 CB GLN A 3 83. 556 52.126 45.080 1. 00 26.06 C would cause the following output line to be displayed: 18 GLN 83.556 52.126 45.080 be cause the atom's seria number is 18, its amino acid name is GLN, and its coordinates are 83.556, 52.126, and 45.080. These five pieces of information must be separated by white-space such as blanks Your script has to extract the serial number, amino acid name, and the coor dinates from the lne and di splay them. Your job is to deci de which filters, or combination of filters, can achieve this. This wil take some creativity. A hint is that al of the filters you need have been covered either during class lectures or are listed in the slides in Lesson 9 Figure out which might be usefu, or even better, which are the most efficient for you to use Error checking: Your seript must check that it has both command line arguments, and that the file can be read. It must display a message if either of these is not true. It does not need to check whether the amino aid design ation is valid, because f it is not, it should smply display nothing as its output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
