A Genomics View of Unix. General Unix Tips To use the command line start X11 and type commands into the “xterm” window A few things about unix commands:

Slides:



Advertisements
Similar presentations
How to Use Stowe School District
Advertisements

Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Getting Started: Ansoft HFSS 8.0
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Introduction to Windows File Management
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
D. Mack Updating and Running CCleaner on your computer Tips for helping your computer to run faster and more efficiently 12/03/2007.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
Command Console Tutorial BCIS 3680 Enterprise Programming.
What is Blast What/Why Standalone Blast Locating/Downloading Blast Using Blast You need: Your sequence to Blast and the database to search against.
Welcome to the Southeastern Louisiana University’s Online Employment Site Applicant Tutorial!
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
I Can… Define basic file management and related terms Identify levels of a file system Identify and explain ways to view files in Windows OS Explain the.
DOS Understanding what you can do. Operating System Traits An OS only works with one type of processor –X86 processors for us; Motorola for Mac –Must.
Unix Tutorial for FreeSurfer Users Allison Stevens.
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Unix Basics Chapter 4.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
 The World Wide Web is a collection of electronic documents linked together like a spider web.  These documents are stored on computers called servers.
File Management Presented to The Glades Computer Club January 4, 2001.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Downloading and Installing Autodesk Revit 2016
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Operating Systems and Using Linux CMSC 104, Lecture 3 John Y. Park 1.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
8-2 What is a program? What is a “Window Manager” ? What is a “GUI” ? How do you navigate the Unix directory tree? What is a wildcard? Readings: See CCSO’s.
The Genome Analysis Centre Building Excellence in Genomics and Computational Bioscience.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Learning basic Unix command It 325 operating system.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Introduction to Unix for FreeSurfer Users
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
The Command Prompt Commands are the way to “do things” in Unix
Fastest way for already created documents
Introduction to Computers
Tutorial for using Case It for bioinformatics analyses
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
New Perspectives on Windows XP
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Presentation transcript:

A Genomics View of Unix

General Unix Tips To use the command line start X11 and type commands into the “xterm” window A few things about unix commands: –UNIX is case sensitive –Little or no feedback if successful, “no news is good news”

Unix Help on the Web Here is a list of a few online Unix tutorials: Unix for Beginners Unix Guru Universe Getting Started With The Unix Operating System

Unix directories Unix systems can have many thousands of files Directories are a means of organizing your files on a Unix computer. –They are equivalent to folders in Windows and Macintosh computers

Directory Structure / The directory that holds everything is called “root”and is symbolized by “/” ApplicationsUsersSystem AdministratorStudent4342Shared DocumentsMusicDesktop

Unix directories (cont) When logged into a unix computer there is always one directory called the “current working directory” When you type a command with a filename unix will look for that file in the “current working directory” You can change the “current working directory” at any time with the cd command. You can see the the “current working directory” with the pwd command If the file is not in the “current working directory” you must tell unix where the file is. You do this by giving the full “path” to the file

Unix directories (cont) The “path” is a list of every directory from the “current working directory” to the file in which the name of each directory is separated by a “/” For example, when doing a BLAST search by command line, a path to the database to search might look like this: Databases/protein/invert/melanogaster Thus you are telling the computer to look inside the directory Database; inside is a directory called “protein”; inside that is a directory called “invert”; and inside that is the “melanogaster” database

Your Home Directory When you login to any Unix server, the “current working directory” always starts in your Home directory. –On Mac my home is /Users/chris To change which directory is the current working directory type cd and then the path to the new directory cd data/virilis/fosmids/14J19

Paths: special characters You can also start a path at two other locations besides the current working directory / can be used at the very beginning of the path to tell the computer to start at the very top of the tree (hard drive) ~ can be used at the beginning to tell the computer to start in your home directory

Other Path Shortcuts There are two other symbols that are useful in paths. (dot) means "the current working directory".. means "the parent directory" - the directory one level above the current directory; you can string many../ together to keep moving up and up and up E.g.../../../Databases/protein/invert/melanogaster This would go up three directories to find the “Databases” directory then go down into protein and invert to eventually find the melanogaster database

Unix Commands Most commands have this basic structure: command -a -b -c input.file Programmodifiersinput Program: the name of the program you want to run (blastall, consed, etc.) Modifiers (optional, usually in any order): a CASE SENSITIVE letter which controls exactly how the program will run Some will be plain “-l” some will have values such as “-l guest” Input (optional): the file(s) you wish the program to act upon.

Basic commands pwd (present working directory) shows the name of the current working directory: > pwd /Users/chris ls (list) gives you a list of the files in the current directory: > ls Desktop Library Public Documents Movies Sites cd (change directory) sets a new current working dir >cd Documents > pwd /Users/chris/Documents

Basic commands There are many other commands that can be used to copy, move, view, and delete files You can read about these and other commands in the unix help pages mentioned above, or you can use the mac or windows operating systems to do these things

Unix tries to help you: 1.Command History 2.Command line completion

Command history The computer remembers the last 100 or so commands you have entered. Use the “up arrow” to scroll back through these commands. You can use the right and left arrows to move around inside the command to edit it Very nice for long commands (e.g. blast searches)

Files name completion Since the computer will only look in the current working dir for files, when you want to type in a file name all you have to type is enough characters at the beginning to uniquely define the file When you hit the shell will finish typing the name for you > ls af gb_pr5 test.seq apt.txt > rm af > rm af gb_pr5 Have long names but keep the differences at the beginning to facilitate using this feature

Bioinformatics commands There are three commands that we will talk about that you might want to run on a command line: –BLAST –RepeatMasker –Herne (our BLAST results viewer)

Command line BLAST There are two versions of BLAST available for the command line: –NCBI BLAST (free from NCBI) –WU BLAST (blast.wustl.edu) Why run BLAST by a command line? –Avoid slow responses at NCBI –Use a static database, so answers do not change –Search unpublished data (search all fosmids)

NCBI BLAST For Bio4342 we use NCBI BLAST –Mostly historical –Command line program is called blastall –Web page with help for NCBI BLAST:

NCBI BLAST NCBI blastall has 4 required entries which can be given in any order: –Which program (blastn, blastx etc) -p name –Query -i seq_file.seq –Database -d database_name –Name of file for results -o output_filename

NCBI BLAST NCBI blastall has many optional settings the most common include: –Format the output as a web page: -T –Change the E cutoff: -e number –Explicitly turn filter on: -F T –Explicitly turn filter off: -F F

Building a BLAST command Usually you will set the current working directory to the one with the query sequence using the cd command. For example > cd data/virilis/fomids/99M21/ Then enter the the blastall command with all relevant settings: >blastall-p blastx-i 99M21.seq -d../../../Databases/protein/melanogaster -o dmel_blastx.html-T-e 1e-2-F F

RepeatMasker This program is used to screen any DNA sequence for the presence of known repetitive sequences. It will take a sequence file as input and create a new file in which any sequences identified as repetitive will be changed to “N” It will also create other files which summarize the repetitive content (.tbl) and provide a complete list of every hit (.out)

RepeatMasker Web pages that run RepeatMasker limit the size of the input sequence Computationally intensive, 1-2 hours for class to get results for 12 fosmids on moderately powerful unix workstation Once installed you can get a mini help page by typing “RepeatMasker” on the command line with nothing else

RepeatMasker command line The command is RepeatMasker There are two required fields -species species_name sequence_file_to_mask RepeatMasker command might look like this: >RepeatMasker -species drosophila 99M21.seq

Herne: the BLAST output viewer We have available a viewer that can be run on any computer that supports Tcl/Tk. (Most linux, mac OS 10.4 systems work) The command has two required settings and two optional settings This is a nice way to get an overall view of where in a large sequence various highly similar sequences align

Herne the BLAST output viewer The command in herne you must supply: –the output of a blastall search (-b) – the sequence file used in the search (-s) > herne -b dmel_blastx.html -s 99M21.seq

Herne the BLAST output viewer There are also two optional settings –You can have herne show you the location of all of the repeats identified by RepeatMasker by adding -m repeatmasker.out e.g. -m 99M21.seq.out –If you are red/green colorblind, add the setting -r

Interpretation of Herne window The green bar represents the query sequence If you added the repeatmasker.out file, the repeats are shown in grey Each single hit is shown in its proper position, black, green, yellow, red show increasing quality All hits from the same subject are boxed Clicking on any hit will open a new window showing the alignment