Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For part 1 and 2, write the commands of a shell script that answers the following. (using nanu file in Ubuntu bash) Part-1) Download the

For part 1 and 2, write the commands of a shell script that answers the following. (using nanu file in Ubuntu bash)

Part-1) Download the URL below (using curl command ) Into the same folder that your script is located in. https://www2.unb.ca/~rmalenf1/BIOL3933/lab5_sequences.fasta

a. Print to the screen only the FASTA headers of any complete genomes that are not marked as chloroplast genomes. (You will need a pipe.) " | "

b. DNA sequencing gaps are represented by the letter N. Do any of the sequences in this file contain long gaps? (i.e., 100adjacent Ns?) Print the FASTA headers of the matching sequences to the screen. (Print the headers only, not the sequences.)

c. One of the sequences in this file is the Veronicastrum sibiricum plastid genome. Print to a new file (called V_sibiricum_fragments.txt) all of the restriction fragments that would be expected if you digested the V.sibiricum genome with BsrFI (i.e., RCCGGY, where R is either A or G, and Y is either C or T*). Your file should contain one restriction fragment per line. (Hint: use find and replace.)

d.How many BsrFI restriction fragments does V_sibiricum_fragments.txt contain?

Part-2) Download the URL below (using curl) into the same folder that your script is located in. https://www2.unb.ca/~rmalenf1/BIOL3933/measurements.txt a. In a single piped command " | " , do all of the following:

Replace all the -999 in this new file (which has missing data) with NA.

Change the file from space-delimited to tab-delimited.

Sort the file by Bear ID (smallest to largest).

Save the output as a new file called cleaned_measurements.txt. Use the cleaned dataset for all subsequent questions.

b. What is the total number of unique individuals in the dataset (i.e how many unique bear IDs are there)?

c. How many records in the file have body length between 180 cm and 185 cm (inclusive)?

d.Imagine that you are particularly interested in the bear X70611and his parents (X61507and X67296). Create a new data file (with a header) that contains all of these bears records (only these bearsrecords).

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

Step: 3

blur-text-image

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions