BIOL/CMPU 353 - Bioinformatics
Smith and Schwarz
Spring 2012
Tue., Jan 24
The purpose of this in-class assignment is to access the CCAS cluster (jr) using your new login account, create and run a Perl script, submit your work electronically and print a hardcopy.
jr.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@ccas20:~> passwd Changing password for mlsmith. Old Password: New Password: New Password:
exit command to logout:
mlsmith@ccas20:~> exit
mlsmith@ccas20:~> mkdir bioinf
mlsmith@ccas20:~> chmod 700 bioinf
bioinf listed among your files and directories)
mlsmith@ccas20:~> ls
mlsmith@ccas20:~> cd bioinf mlsmith@ccas20:~/bioinf>
pwd command:
mlsmith@ccas20:~/bioin> pwd /home/mlsmith/bioinf mlsmith@ccas20:~/bioinf>
#!/usr/bin/perl #use strict; #use warnings; # This is my first Perl program # Programmer: Matthew Vassar print "Hello DNA Land\n";
jr.vassar.edu
mavassar (use your own login id here)
18B(ee)R61 (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”
bioinf 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@ccas20:~/bioinf> cd proj0
mlsmith@ccas20:~/bioinf/proj0> perl helloDNA.pl Hello DNA Land mlsmith@ccas20:~/bioinf/proj0>
You just ran your program on the head node of jr. This is the node that everyone logs into, and we want to make sure that we do not create a bottleneck by running programs on it. You can instead run your program on one of the back nodes by using the command “jrun”
mlsmith@ccas20:~/bioinf/proj0> jrun perl helloDNA.pl
Use the jrun command every time that you want to run a program on jr.
lpr (line printer) command to print your file:
mlsmith@ccas20:~/bioinf/proj0> lpr helloDNA.pl
mlsmith@ccas20:~/bioinf/proj0> cd .. mlsmith@ccas20:~/bioinf> submit353 proj0