Editing, Transferring, and Running Files on Vieques Daniel Malmer Dowell Lab Short Reads Course 6/9/15.

Slides:



Advertisements
Similar presentations
Client-server practices DSC340 Mike Pangburn. Agenda Overview of client-server development Editing on client (e.g., Notepad) or directly on server (e.g.,
Advertisements

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
CCPR Workshop Lexis Cluster Introduction October 19, 2007 David Ash.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Introduction to HPC Workshop October Introduction Rob Lane HPC Support Research Computing Services CUIT.
Understanding the Basics of Computational Informatics Summer School, Hungary, Szeged Methos L. Müller.
A crash course in njit’s Afs
Accessing the Internet with Anonymous FTP Transferring Files from Remote Computers.
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
Introduction to UNIX/Linux Exercises Dan Stanzione.
MCB Lecture #3 Sept 2/14 Intro to UNIX terminal.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
CSE 390a Editing and Moving Files
Nick Geoghegan1 Introduction to Linux Workshop. Nick Geoghegan2 Getting Started Download the following files:
Welcome to Linux & Shell Scripting Small Group How to learn how to Code Workshop small-group/
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
CIS 90 - Lesson 15 Lesson Module Status Slides – draft Properties - done Flash cards – 1 st Minute quiz – NA Web calendar summary – done Web book pages.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
Network Security: Lab#3 Transport-Level Security Tools J. H. Wang May 12, 2011.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Usage of Workstation Lecturer: Yu-Hao( 陳郁豪 ) Date:
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
1 Remote Access Telnet Telnet FTP FTP. 2 Applications and Communications Telnet Telnet  Program for accessing systems remotely.  Available on Windows.
Introduction to HPC Workshop October Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
®® Microsoft Windows 7 Windows Tutorial 2 Organizing Your Files.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
+ Vieques and Your Computer Dan Malmer & Joey Azofeifa.
1 CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
+ Introduction to Unix Joey Azofeifa Dowell Lab Short Read Class Day 2 (Slides inspired by David Knox)
Introduction to LINUX command line Allegra Via IBBE, National Research Council, Italy Sapienza Università di Roma, Italy EMBO Practical Course on Computational.
Setting up visualization. Make output folder for visualization files Log into vieques $ ssh
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
An Brief Introduction Charlie Taylor Associate Director, Research Computing UF Research Computing.
Review Why do we use protection levels? Why do we use constructors?
Hackinars in Bioinformatics
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
First Day in Lab Making a C++ program
Welcome to Indiana University Clusters
PARADOX Cluster job management
CS1010: Intro Workshop.
Unix Scripts and PBS on BioU
Prepared by: Eng. Maryam Adel Abdel-Hady
Welcome to Indiana University Clusters
How to use the HPCC to do stuff
CommLab PC Cluster (Ubuntu OS version)
Assignment Preliminaries
Practice #0: Introduction
Postdoctoral researcher Department of Environmental Sciences, LSU
File Transfer Olivia Irving and Cameron Foss
Introduction to HPC Workshop
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
College of Engineering
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Downloading workshop files to your computer
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Linux File System Commands
Quick Tutorial on MPICH for NIC-Cluster
CSCE 206 Lab Structured Programming in C
Introduction to Linux and Code Editing
Working in The IITJ HPC System
DIBBs Brown Dog Tutorial Setup
Maxwell Compute Cluster
Presentation transcript:

Editing, Transferring, and Running Files on Vieques Daniel Malmer Dowell Lab Short Reads Course 6/9/15

…We will use secure File Transfer Protocols (SFTP and SCP)

Today Edit files in the terminal (emacs, nano) Transfer files to/from vieques (scp, FileZilla) Run jobs on compute nodes (qsub)

First, a quick review (plus setup some stuff we need) Login to vieques ssh Make a new directory, Day3 mkdir Day3 Logout exit

Editing files in the terminal (emacs) (nano)

Editing files in the terminal Open a terminal, do not login to vieques yet! Create a new file: nano hello_world.py Write the line: print “hello world!” Save and exit: – In nano: Ctrl-o,, Ctrl-x – In emacs: Ctrl-x, Ctrl-s, Ctrl-x, Ctrl-c Run ls to see the file you just created ls

Transferring to vieques FileZilla vs scp / sftp

Transferring to vieques FileZilla: Then simply drag the file over to the Day3 directory vieques.colorado.edu Important!

Transferring to vieques scp (Mac/Linux only): scp hello_world.py PuTTY (Windows): – In PuTTY, open PSFTP – Type: open – Then: put hello_world.py no return here, this command is all one line

Transferring to vieques Log back into vieques Change into Day3 directory cd Day3 Run your script! python hello_world.py

Grabbing files from an FTP In a browser (chrome, safari, firefox), go to google and search for “UCSC downloads” Scroll down, click “C. elegans” Click “Full data set” Scan readme, scroll down to the blue links Right-click on chromFa.tar.gz and click “Copy link address”

Grabbing files from an FTP In the terminal type: wget (put a space after wget) Then paste your URL: Press enter and it will download the file:

gzip/tar ls to see the new file and its size: ls -lh Unzip (chromFa.tar.gz -> chromFa.tar): gunzip chromFa.tar.gz ls -lh (how big is the unzipped file?) Untar (chromFa.tar -> indv.fa files): tar -xvf chromFa.tar (google is still your best friend!) ls -lh (what do you see now?)

gzip/tar Now lets compress the fasta files back into a new.tar.gz: tar -cvf C_elegans_chrs.tar *.fa ls -lh Tar can create (and unzip).gz files as well: tar -cvzf C_elegans_chrs.tar.gz *.fa ls -lh Tarred/zipped files are much easier to transfer and store!

Coffee break?

Before moving on, let’s copy some more files cd /projects/sreadgrp/homeworkfiles/Day3 ls cp -r BowtieExample /Users/username/Day3 cd /Users/username/Day3/BowtieExample ls

Cluster architecture

Job queue Jobs running on compute nodes are kept in a queue To view currently running jobs, type: qstat To view only your currently running jobs: qstat -u username To stop one of your running jobs, type: qdel ###### (job_id number, do not include.vieques) To kick off a job: qsub PBS_script_file

Job queue After the job finishes, output files are printed in the directory you kicked the job off in job_name.o###### job_name.e###### If set in the PBS script, you’ll also receive an after the job finishes:

PBS scripts Go to your BowtieExample directory: cd /Users/username/Day3/BowtieExample/ Open up first script nano run_bowtie_1core.pbs – Change – Change the word “username” to your username Ctrl \ (to start a search and replace) Search (to replace): username (enter in the word “username”) Replace with: your_username (enter in your username, eg. dama9282) Replace this instance? A (replace all instances) Do the same for the other script nano run_bowtie_8core.pbs

PBS scripts You can re-use PBS scripts every time! – Copy an existing script with cp – Edit with nano/emacs/vim

Kicking off jobs To run a job from a PBS script, type: qsub PBS_script_file Before you do it yourselves, let me go through a quick example Always check the error output! Now go ahead and kick off the two scripts with: qsub run_bowtie_1core.pbs qsub run_bowtie_8core.pbs Check that your jobs are running: qstat -u username

Kicking off jobs After the jobs finish, check the output files: ls (check the filenames of the output files) less bowtie_1c.e###### (press q to exit) less bowtie_8c.e###### Check Exit_status=0 means the job succeeded Exit_status=(anything else) usually means the job failed cput = total amount of computation that was done (aggregate time of each cpu) mem = max memory used by the job walltime = total time from the start of the job to the end of the job