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...")
(No difference)

Revision as of 15:46, 4 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!).

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 ls in your home directory. You can see if you tell the ls command that you want to see everything:

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.