Difference between revisions of "Phylogenetics: SMap lab"

From EEBedia
Jump to: navigation, search
(Created page with "{| border="0" |- |rowspan="2" valign="top"|150px |<span style="font-size: x-large">[http://hydrodictyon.eeb.uconn.edu/eebedia/index.php/Phylogenetics:_S...")
 
Line 13: Line 13:
 
  srun --pty -p mcbstudent --qos=mcbstudent bash
 
  srun --pty -p mcbstudent --qos=mcbstudent bash
  
Use curl to download the tar-gzipped file sMap-linux-x64.tar.gz (note the L in -LO is important in this case because the URL involves a redirect that should be followed to get to the actual file):
+
Use curl to download the tar-gzipped file ''sMap-linux-x64.tar.gz'' (note the <tt>L</tt> in <tt>-LO</tt> is important in this case because the URL involves a redirect that should be followed to get to the actual file):
  
 
  curl -LO https://github.com/arklumpus/sMap/releases/download/v1.0.5-2/sMap-linux-x64.tar.gz
 
  curl -LO https://github.com/arklumpus/sMap/releases/download/v1.0.5-2/sMap-linux-x64.tar.gz
Line 29: Line 29:
 
  alias smap="$HOME/sMap-linux-x64/sMap"
 
  alias smap="$HOME/sMap-linux-x64/sMap"
  
Now typing smap at the console, whereever you are, will invoke the program (try it!).
+
Now typing <tt>smap</tt> at the console, whereever you are, will invoke the program (try it!). You can see any aliases you've defined by typing <tt>alias</tt> at the command prompt.
  
If you want your alias to be present whenever you login to Xanadu, you need to add it to your ''.bash_profile'' file. The ''.bash_profile'' file is one of those files beginning with a dot that are hidden by default, so you will not see it when you type <tt>ls</tt> in your home directory. You can see if you tell the ls command that you want to see everything:
+
If you want your alias to be present whenever you login to Xanadu, you need to add it to your ''.bashrc'' file. The ''.bashrc'' file is one of those files beginning with a dot that are hidden by default, so you will not see it when you type <tt>ls</tt> in your home directory. You can see if you tell the <tt>ls</tt> command that you want to see everything:
  
 
  cd
 
  cd
 
  ls -la
 
  ls -la
  
Edit the ''.bash_profile'' file and add (on a line by itself at the very bottom of the file) the same alias command that I specified above. This will be loaded the next time you log into Xanadu.
+
Edit the ''.bashrc'' file (which may not even exist yet) and add (on a line by itself at the very bottom of the file) the same alias command that I specified above. This will be loaded the next time you log into Xanadu.
 +
 
 +
== Downloading the data for the tutorial ==
 +
 
 +
Download the Pontederiaceae data for the tutorial using curl:
 +
curl -L https://github.com/arklumpus/sMap/blob/master/Tutorials/Tutorial8/Tutorial8.zip?raw=true > Tutorial8.zip
 +
unzip Tutorial8.zip
 +
rm Tutorial8.zip
  
  

Revision as of 16:15, 6 April 2020

Adiantum.png EEB 349: Phylogenetics
In this lab you will learn how to use the program sMap, written by Giorgio Bianchini and Patricia Sánchez-Baracaldo. sMap uses stochastic character mapping to assess correlation among discrete characters.

Download sMap

Login to Xanadu and request a machine as usual:

srun --pty -p mcbstudent --qos=mcbstudent bash

Use curl to download the tar-gzipped file sMap-linux-x64.tar.gz (note the L in -LO is important in this case because the URL involves a redirect that should be followed to get to the actual file):

curl -LO https://github.com/arklumpus/sMap/releases/download/v1.0.5-2/sMap-linux-x64.tar.gz

Unpack the tar file:

tar zxvf sMap-linux-x64.tar.gz

You can now delete the tar.gz file if you want:

rm sMap-linux-x64.tar.gz

The executable file sMap is buried inside the directory created when you extracted the tar file. You can either always specify the full path to this file when you want to run it, or you can use a couple of different methods to make invoking it easier. One of the simplest methods is to create an alias:

alias smap="$HOME/sMap-linux-x64/sMap"

Now typing smap at the console, whereever you are, will invoke the program (try it!). You can see any aliases you've defined by typing alias at the command prompt.

If you want your alias to be present whenever you login to Xanadu, you need to add it to your .bashrc file. The .bashrc file is one of those files beginning with a dot that are hidden by default, so you will not see it when you type ls in your home directory. You can see if you tell the ls command that you want to see everything:

cd
ls -la

Edit the .bashrc file (which may not even exist yet) and add (on a line by itself at the very bottom of the file) the same alias command that I specified above. This will be loaded the next time you log into Xanadu.

Downloading the data for the tutorial

Download the Pontederiaceae data for the tutorial using curl:

curl -L https://github.com/arklumpus/sMap/blob/master/Tutorials/Tutorial8/Tutorial8.zip?raw=true > Tutorial8.zip
unzip Tutorial8.zip
rm Tutorial8.zip