BIOL/CMPU 353 - Bioinformatics Smith and Schwarz Fall 2008
Mon, Sep. 8
The purpose of this in-class assignment is to access the bioinf cluster using your new login account, create and run a Perl script, submit your work electronically and print a hardcopy.
bioinf.cs.vassar.edu and fill in your login id and password.
passwd command at the Linux prompt to change your password. Be sure to choose a good (secure) password:
mlsmith@n1:~> passwd Changing password for mlsmith. Old Password: New Password: New Password:
exit command to logout:
mlsmith@n1:~> exit
mlsmith@n1:~> mkdir bioinformatics
mlsmith@n1:~> chmod 700 bioinformatics
bioinformatics listed among your files and directories)
mlsmith@n1:~> ls
mlsmith@n1:~> cd bioinformatics mlsmith@n1:~/bioinformatics>
pwd command:
mlsmith@n1:~/bioinformatics> pwd /home/mlsmith/bioinformatics mlsmith@n1:~/bioinformatics>
#!/usr/bin/perl #use strict; #use warnings; # This is my first Perl program # Programmer: Matthew Vassar print "Hello DNA Land\n";
bioinf.cs.vassar.edu
mavassar (use your own login id here)
18(BeeR)61 (and your own secure password)
proj0 and click the OK button.
proj0 subdirectory you just created. Enter the file name to save your program under: helloDNA.pl (the .pl file extension is the naming convention for a Perl script)
Save button. On the message bar at the bottom of the jEdit window you should see:“Input/Output complete”
bioinformatics course directory you created, but if you list the files in it (by entering the ls command), you’ll see the proj0 subdirectory you created in jEdit.
proj0 subdirectory:
mlsmith@n1:~/bioinformatics> cd proj0
mlsmith@n1:~/bioinformatics/proj0> perl helloDNA.pl Hello DNA Land mlsmith@n1:~/bioinformatics/proj0>
lpr (line printer) command to print your file:
mlsmith@n1:~/bioinformatics/proj0> lpr helloDNA.pl
mlsmith@n1:~/bioinformatics/proj0> cd .. mlsmith@n1:~/bioinformatics> submit353 proj0