Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Learning to use awk, grep and sed There is a protein database le (4HKD.pdb) in Dr. Harrisons main directory. These les consist of many individual

Learning to use awk, grep and sed There is a protein database le (4HKD.pdb) in Dr. Harrisons main directory. These les consist of many individual records (lines) each of which starts with a keyword that identies it. The les are somewhat complicated. Your task is to use Unix tools to simplify looking at these les. It is a good idea to write script les out as demonstrated in class, rather than trying to compose them on the command line. - you can turn the scripts in as part of the answer. You should copy the le to your own area and write programs to solve the following problems. 1. Records other than ATOM,CONNECT, HETATM, TER and END are considered header records which describe the metadata about the molecule. Use grep to generate the header. Please give the grep command(s) and the header you found. 2. The records that have HETATM and MSE should be ATOM (the two spaces after ATOM are important) and MET respectively. (This reects an experimental technique used to solve the structure - but results in a syntactical inconsistency that can cause problems). Please use sed and/or awk to x this. Please give the commands you used and show the corrected lines. 3. Use awk to nd the maximum and minimum x,y,z values for the ATOMs ATOM 93 OG SER A 12 20.901 10.643 45.146 1.00 34.66 O ATOM 94 N MET A 13 22.086 11.751 41.731 1.00 22.99 N The 7th through 9th elds are the x,y,z positions. 4. nd the mean values for x,y,z for the HETATM records (same elds as ATOM records ) 5. The standard name for a water molecule is HOH. Unfortunately it needs to be called WAT to be used by some (slightly braindead) computational chemistry program. Make the changes automatically with sed. What command did you use? 6. produce a list of atoms sorted by their b-factor (11th position in an ATOM record). How did you do it?

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_2

Step: 3

blur-text-image_3

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What do these students reactions tell you about childrens thinking?

Answered: 1 week ago

Question

What is management growth? What are its factors

Answered: 1 week ago

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago