This will be your homework for Monday, Jan 22. My goal is to be certain that (1) you can log into a Unix machine, (2) run some simple commads to create files and directories, (3) to edit a file using emacs (but you can use a different editor), (4) transfer a file from your laptop to Unix, and (5) use the 'curl' command to transfer files from a web site to a unix file.
slogin unix-id@interactive.hpc.virginia.edu
slogin unix-id@interactive.hpc.virginia.edu
Outside UVA, you MUST use Cisco Anyconnect
echo $PATH
echo $PATH
echo $PATH > path.file
cat path.file more path.file less path.file # type "q" to return to the shell prompt
cp path.file path.copy
mkdir biol4230Move into that directory with cd biol4230
To make certain that I can read files in your biol4230 directory:
chmod go+rx ~ # <- tilde (shift-backtic, under ESC on my keyboard) chmod go+rx ~/biol4230 chmod go+rx ~/biol4230/hwk1
cd ~/biol4230/hwk1 ls ls -lWhat is the extra information in the second listing?
Use the emacs text editor to edit the directory listing file. Make several copies of some of the lines in the file, and save it.
Check the contents of the biol4230/hwk1 directory.
curl http://www.uniprot.org/uniprot/P09488.fasta
cd # go to home directory chmod go+rx . # make it readable by others chmod go+rx biol4230/ # make biol4230 readable chmod go+rx biol4230/hwk1 # and hwk1 cd biol4230/hwk1 chmod go+r * # make all files in the directory readable by others (me)
(0) A file called hwk1.notes, which lists the names of each of the files listed below and gives the answer to part (10).
(1-3) A fasta format file for GSTM1_HUMAN/NP_000552 from NCBI
(4a) file with a list of accessions for human refseq glutathione transferases
(4c) list of accessions for human SwissProt glutathione transferases from Uniprot
(5) file with a list of NP_ human refseq accessions: gst_refseq.NP_only
(6) the GST fasta file transferred with get_ncbi_acc.sh
(7) a file of NCBI Swissprot accessions for GSTs
(8) a file with version numbers removed from file (7)
(9) a summary of the differences between the Uniprot and SwissProt GST accessions
(10) the name of a different (between NCBI and Uniprot) SwissProt protein, and a possible explanation for the inclusion/exclusion from the NCBI/UniProt query (in hwk1.notes)