Unix Tutorial for FreeSurfer Users Allison Stevens.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

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.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Intro to FreeSurfer Jargon
“Linux at the Command Line” Don Johnson of BU IS&T.
Unix Tutorial for FreeSurfer Users
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
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”
© Crown copyright Met Office An Introduction to Linux PRECIS Workshop, University of Reading, 23rd – 27th April 2012.
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface (or Terminal) What is the filesystem tree.
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.
Welcome to Linux & Shell Scripting Small Group How to learn how to Code Workshop small-group/
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
CENT 305 Information Systems Security Linux Introduction.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Natawut NupairojAssembly Language1 Unix Survival Guide.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Processing Your Own Data With FreeSurfer, certain variables must be set in order to use it correctly: FREESURFER_HOME SUBJECTS_DIR tell Operating System.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
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.
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:
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Lecture One. Objective: Provide description of the Command-Line Editor of Linux operating system. Enable students to understand the practical side of.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
The Unix File sytem. Introduction Tree structure …
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
Learning basic Unix command It 325 operating system.
Intro to FreeSurfer Jargon voxel surface volume vertex surface-based recon cortical, subcortical parcellation/segmentation registration, morph, deform,
Intro to FreeSurfer Jargon. voxel surface volume vertex surface-based recon cortical, subcortical parcellation/segmentation registration, morph, deform,
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
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.
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Prepared by: Eng. Maryam Adel Abdel-Hady
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Linux/Unix - Download Ubuntu Linux :
Intro to FreeSurfer Jargon
Shell Environments.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
WELCOME FREESURFER COURSE ATTENDEES!
WELCOME FREESURFER COURSE ATTENDEES!
Intro to FreeSurfer Jargon
Tutorial of Unix Command & shell scriptS 5027
Intro to FreeSurfer Jargon
Intro to FreeSurfer Jargon
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
CSE 303 Concepts and Tools for Software Development
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

Unix Tutorial for FreeSurfer Users Allison Stevens

What is Unix/Linux? An operating system (like Windows and OS X) Linux is the free, modifiable, and redistributable version of Unix Why use it?

What is Unix/Linux? An operating system (like Windows and OS X) Linux is the free, modifiable, and redistributable version of Unix Why use it? –power to write many scripts with many commands to work with lots of data –to use computer resources on the network efficiently, such as clusters

Getting Started Communicate with operating system through a “shell” or terminal window. For course-provided Linux computers: Double click Terminal icon on Desktop For Macs: Double click on hard drive Applications > Utilities > XQuartz (double click) Applications > Utilities > Terminal

Warm Up Type: and hit enter. date

Warm Up Type: and hit enter. Should see date Mon Apr 6 8:05:24 EDT 2009

Warm Up Type: and hit enter. Should see Type: and hit enter. date Mon Apr 6 8:05:24 EDT 2009 cal

Warm Up Type: and hit enter. Should see Type: and hit enter. Should see date Mon Apr 6 8:05:24 EDT 2009 cal April 2009 Su Mo Tu We Th Fr Sa

Directories Unix uses a hierarchical file system ( think folders in Windows )

Directories Unix uses a hierarchical file system ( think folders in Windows ) Home is like “My Computer”

Directories Unix uses a hierarchical file system ( think folders in Windows ) Home is like “My Computer” Like “My Documents”

Directories Unix uses a hierarchical file system ( think folders in Windows ) Home is like “My Computer” Like “My Documents” Like “My Photos”

Directories Unix uses a hierarchical file system ( think folders in Windows ) Home is like “My Computer” Like “My Documents” Like “My Photos” picture.jpg

Location Type: and hit enter. Should see shows “present working directory” or current location as a path similar to: /MyComputer/MyDocuments/MyPhotos pwd /home/nmrclass /Users/YourName OR

Opening a Directory Not double clicking Type command to “open” Commands to open files will differ

Navigating Directories “change directory”: move into a folder “list”: see contents of directory ls cd __ ls __

Navigating Directories “change directory”: move into a folder “list”: see contents of directory ls cd __ ls __ Desktop matlab tmp TUTORIAL_DATA

Anatomy of a Command command -option1 –option2 file command - -help

Anatomy of a Command command -option1 –option2 file command - -help ls --help Try:

Directory Contents List contents of directory you are in lists names of directories/files ls ls -lrt ls -l ls -a

Directory Contents List contents of directory you are in lists names of directories/files lists hidden files too.cshrc.bashrc.alias ls ls -lrt ls -l ls -a

Directory Contents List contents of directory you are in lists names of directories/files lists hidden files too lists file details drwxrwx--- user group others ls ls -lrt ls -l ls -a

Directory Contents List contents of directory you are in lists names of directories/files lists hidden files too lists file details lists recent files last ls ls -lrt ls -l ls -a

Save Some Time Filename Completion hit Tab key should see hit enter History hit keyshould see ls Des ls Desktop

Changing Directories makes a new directory “practice” changes to directory “practice” mkdir practice cd practice ls -lrt pwd ls pwd /home/nmrclass /home/nmrclass/practice should see Nothing!

Changing Directories

mkdir stuff ls makes folder “stuff” inside practice should see “stuff”

Using an Editor If using a Mac: Type: I could write a script. File > Save (Buffer) File > Exit emacs should see “mynotes.txt” emacs mynotes.txtopen -e mynotes.txt ls Format > Make plain text File > Save

Using an Editor If using a Mac: Type: I could write a script. File > Save (Buffer) File > Exit emacs should see “mynotes.txt” gedit mynotes.txtopen -e mynotes.txt ls Format > Make plain text File > Save

Using an Editor

Copying files ls cp --help cp mynotes.txt stuff cd stuff more mynotes.txt learn all the options or “arguments” is the copy command cp

Copying files ls cp --help cp mynotes.txt stuff cd stuff less mynotes.txt learn all the options or “arguments” is the copy command cp

Changing Directories shows one directory up ls.. pwd /home/nmrclass/practice/stuff ls../.. goes up two! cd.. should see cd../.. can also do (but don’t right now):on

Copying / Moving files cp mynotes.txt myothernotes.txt Could also use do: mv myothernotes.txt hernotes.txt mv hernotes.txt..

Removing Files rm mynotes.txt ls pwd should be in “stuff” ls

Review no double clicking mkdir ls cd pwd emacs, gedit, vi, pico cp rm

Using FreeSurfer With FreeSurfer, certain variables must be set in order to use it correctly: FREESURFER_HOME SUBJECTS_DIR tell Operating System where FreeSurfer is tell FreeSurfer where data is

Required Variables To use FreeSurfer you’ll have to do: setenv FREESURFER_HOME /home/apps/freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.csh tell Operating System where FreeSurfer is source this script to get your computer ready to use FreeSurfer (sources other scripts & sets other variables) setenv SUBJECTS_DIR /path/to/data

Required Variables To go to location of your data: $ means take the value of the variable cd $SUBJECTS_DIR setenv SUBJECTS_DIR /path/to/data

Required Variables To go to location of your data: $ means take the value of the variable cd $SUBJECTS_DIR aka cd /path/to/data setenv SUBJECTS_DIR /path/to/data

$ How ‘echo’ works: To set a variable: To check what a variable is set to: echo $TEST_VARIABLE setenv TEST_VARIABLE yourfirstname echo I am not scared of unix.

Required Variables With FreeSurfer, certain variables must be set in order to use it correctly: FREESURFER_HOME SUBJECTS_DIR tell Operating System where FreeSurfer is tell FreeSurfer where data is echo $FREESURFER_HOME echo $SUBJECTS_DIR To check variables

Visualization Tools For FreeSurfer visualization tools: tkmedit subj001 T1.mgz -aux wm.mgz tksurfer subj001 lh inflated VisualizationTool subject data_file -aux other_data_file VisualizationTool subject hemisphere data_file freeview volume1 volume2 -f surface1 surface2

More Help /FsTutorial/CommandLineNavigation Links on Wiki under “Unix Tutorial” Glossary of Unix commands

The End Good Luck!

Intro to FreeSurfer Jargon voxel surface volume vertex surface-based recon cortical, subcortical parcellation/segmentation registration, morph, deform, transforms (computing vs. resampling)

Cortical vs. Subcortical GM coronal sagittal subcortical gmcortical gm

Cortical vs. Subcortical GM coronal sagittal subcortical gm

Parcellation vs. Segmentation (subcortical) segmentation(cortical) parcellation

Registration -align subjects -common space -reference points b/w subjects will be same transforms template deform morph warp compute resample

FreeSurfer Questions Search for terms and answers to all your questions in the Glossary, FAQ, or FreeSurfer Mailing List Archives

More Help alias e emacs man alias ls file*  lists file1, file2, file3 ls file[12]  lists file1 and file2 but not file3 command >>& file.txt  save output to screen and errors in text file