Overview | Chapter 2: Linux

Exercises: Linux

Exercise 2.1. Linux commands

Try the following command sequences:

Exercise 2.2. The use of commands for biological data interpretation

Step 1: Download a tab-delimited file containing all annotated genes involved in the regulation of the cell cycle, using Gene Ontology, across species.

Step 2: Copy this file to your home folder on the server (Bitvise SFTP, Upload from local to remote folder).

Step 3: Try in your home directory the following commands

cat filename.txt | wc -l

less filename.txt

cat filename.txt | grep MGI

cat filename.txt | grep Ccnd

cat filename.txt | grep -i Ccnd

cat filename.txt | grep MGI | grep Ccnd > ccnd_mouse.txt

cat filename.txt | sort -k3

cat filename.txt | cut -f7 | sort -u

cat filename.txt | grep IDA | grep MGI | grep cyclin

Exercise 2.3. EMBOSS

Step 1: Search for the accession number L07770

Step 2: Download EMBL or GenBank format and name the file xlrhodop.embl

Step 3: Find the EMBOSS command seqret via tab-completion and read the manual (man seqret)

Step 4:

seqret xlrhodop.embl -outseq L07770.fasta -feature

Step 5:

cat L07770.gff

Step 6: How many CDS features?

showfeat xlrhodop.embl

Step 7: How long, what is the GC content?

infoseq xlrhodop.embl

Exercise 2.4. EMBOSS

Download the EMBL of GenBank formatted file for the accession number U23808.

-Extract FASTA and GFF file using seqret.

Exercise 2.5. EMBOSS

Retrieve the sequence of the last coding exon of C.elegans gene mec-8.

-Translate this sequence using transeq (EMBOSS). How many nucleotides does it have (Hint: use cat, pipe and wc)? Reverse complement the sequence (revseq).


Overview | Chapter 2: Linux