# Application Reference Guides

Application instructions and examples for specific systems and software versions.

# ADCIRC (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-cuny-hpc-center-">The CUNY HPCC has installed version 50.79 on SALK (the Cray) and ANDY (the SGI) for general academic use. ADCIRC can be run in serial or MPI-parallel mode on either system. ADCIRC has demonstrated good scaling properties up to 512 cores on SALK and 64 cores on ANDY. A step-by-step walk through of running an ADCIRC test case in both serial and parallel mode follows.

#### **<span class="mw-headline" id="bkmrk-serial-execution-1">Serial Execution</span>**

Create a directory where all the files needed to run the serial ADCIRC job will be kept.

```
salk$ mkdir test_sadcirc
salk$ cd test_sadcirc
```

Copy the Shinnecok Inlet example from ADCIRC installation tree and unzip it.

```
salk$ cp /share/apps/adcirc/default/testcase/serial_shinnecock_inlet.zip ./
salk$ unzip ./serial_shinnecock_inlet.zip 
Archive:  ./serial_shinnecock_inlet.zip
  inflating: serial_shinnecock_inlet/fort.14  
  inflating: serial_shinnecock_inlet/fort.15  
  inflating: serial_shinnecock_inlet/fort.16  
  inflating: serial_shinnecock_inlet/fort.63  
  inflating: serial_shinnecock_inlet/fort.64  
```

Change into the unpacked subdirectory.

```
salk$ cd serial_shinnecock_inlet/
```

There you should find the following files:

```
salk$ ls
fort.14  fort.15  fort.16  fort.63  fort.64
```

Next, create a SLURM script with the following lines in it to be used to submit the serial ADCIRC job to the Cray (SALK) SLURM queues. Note that on SALK running a serial job requires allocating (and wasting most of) 16 processors because fractional compute nodes cannot be allocated on SALK.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name SADCIRC.test
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2048
#SBATCH --o sadcirc.out

# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# You must explicitly change to the working directory in SBATCH
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin ADCRIC Serial Run ..."
aprun -n 1 /share/apps/adcirc/default/bin/adcirc
echo ">>>> End   ADCRIC Serial Run ..."
```

And finally to submit the serial job to the SLURM queue enter:

```
salk$ qsub sadcirc.job
```

#### **<span class="mw-headline" id="bkmrk-parallel-execution-1">Parallel Execution</span>**

The steps required to run ADCIRC in parallel include some additional mesh partitioning and decomposition steps based on the number processors planned for the job. As before, create a directory where all the files needed for the job will be kept:

```
salk$ mkdir test_padcirc
salk$ cd test_padcirc
```

Again, copy the Shinnecok Inlet example from ADCIRC installation tree and unzip it. The starting point for the serial and parallel tests is the same, but for the parallel case the serial data set used above is partitioned and decomposed for the parallel run.

```
salk$ cp /share/apps/adcirc/default/testcase/serial_shinnecock_inlet.zip ./
salk$ unzip ./serial_shinnecock_inlet.zip 
Archive:  ./serial_shinnecock_inlet.zip
  inflating: serial_shinnecock_inlet/fort.14  
  inflating: serial_shinnecock_inlet/fort.15  
  inflating: serial_shinnecock_inlet/fort.16  
  inflating: serial_shinnecock_inlet/fort.63  
  inflating: serial_shinnecock_inlet/fort.64  
```

Rename and change into directory you just unpacked:

```
salk$ mv  serial_shinnecock_inlet  parallel_shinnecock_inlet
salk$ cd parallel_shinnecock_inlet/
```

Now we need to run the ADCIRC preparation program 'adcprep' to partition the serial domain and decompose problem:

```
salk$ /share/apps/adcirc/default/bin/adcprep 
```

When prompted, enter 8 for number of processors to be used in our parallel example here:

```


  *****************************************
  ADCPREP Fortran90 Version 2.3  10/18/2006
  Serial version of ADCIRC Pre-processor   
  *****************************************
  
 Input number of processors for parallel ADCIRC run:
8

```

Next, enter 1 to complete partitioning the domain for 8 processors using METIS:

```


 #-------------------------------------------------------
   Preparing input files for subdomains.
   Select number or action:
     1. partmesh
      - partition mesh using metis ( perform this first)
 
     2. prepall
      - Full pre-process using default names (i.e., fort.14)

      ...

 #-------------------------------------------------------

 calling: prepinput

 use_default =  F
 partition =  T
 prep_all  =  F
 prep_15   =  F
 prep_13   =  F
 hot_local  =  F
 hot_global  =  F

```

Next, provide that name of the unpartitioned file unzipped from the serial test case, fort.14:

```
Enter the name of the ADCIRC UNIT 14 (Grid) file:
fort.14
```

This will generate some additional output to your terminal and complete the mesh partition step.

You must then run 'adcprep' again to decompose the problem. When prompted enter 8, number of processors as before, but this time followed by a 2 to decompose the problem. When this preparation step completes you will find the following files and directories in your working directory:

```
salk$ ls
fort.15     fort.63  fort.80          partmesh.txt  PE0001  PE0003  PE0005  PE0007
fort.14     fort.16  fort.64     metis_graph.txt  PE0000   PE0002  PE0004  PE0006
```

The 8 subdirectories created in the second 'adcprep' run contain the partitioned and decomposed problem that each MPI processor (8 in this case) will work on.

Copy the parallel ADCIRC binary to the working directory.

```
# cp /share/apps/adcirc/default/bin/padcirc ./
```

At this point you'll have all the files needed to run the parallel job. The files and directories created and required for this 8 core parallel run are shown here:

```
# ls 
adc  fort.14  fort.15  fort.16  fort.80  metis_graph.txt  partmesh.txt 
PE0000/  PE0001/  PE0002/  PE0003/  PE0004/  PE0005/  PE0006/  PE0007/
```

Create a SLURM script with the following lines in it to be used to submit the parallel ADCIRC job to the Cray (SALK) SLURM queues:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name PADCIRC.test
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2048
#SBATCH --o padcirc.out


# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin PADCRIC MPI Parallel Run ..."
aprun -n 8 /share/apps/adcirc/default/bin/padcirc
echo ">>>> End   PADCRIC MPI Parallel Run ..."
```

And finally to submit the parallel job to the SLURM queue enter:

```
salk$ qsub padcirc.job
```

The CUNY HPCC has also built and provided a parallel-coupled version of ADCIRC and SWAN to include surface wave affects in the simulation. This executable is called 'padcswan' and can be run with largely the same preparation steps and the same SLURM script shown above for 'padcirc'. Details on the minor differences and additional input files required are available at the SWAN websites given in the introduction.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [WRF and ADCIRC](https://wiki.csi.cuny.edu/books/software-applications/page/wrf-and-adcirc)

# AUTODOCK (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-autodock-description">#### **<span class="mw-headline" id="bkmrk-autodock-1">**AUTODOCK**</span>**

  
<font color="red">**Description:**</font> ***AutoDock*** is a suite of automated docking tools. It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure.

<font color="red">**Additional Notes:**</font> Current distributions of ***AutoDock*** consist of two generations of software: ***AutoDock 4*** and ***AutoDock Vina***. The latter is a new generation of docking software from the Molecular Graphics Lab. It achieves significant improvements in the average accuracy of the binding mode predictions, while also being up to two orders of magnitude faster than ***AutoDock 4.1***.

Because the scoring functions used by ***AutoDock 4*** and ***AutoDock Vina*** are different and inexact, on any given problem, either program may provide a better result.

Please note that preparing the input files for ***AutoDock 4*** require use of ***Autodock*** tool set. The use of the later is not described in this document.

<font color="red">**Availability:**</font> PENZIAS and ANDY

<font color="red">**Module file:**</font> autodock

<font color="red">**Limitations:**</font> ***AutoDock*** is distributed freely under the GNU GPL for all to use. AutoDock Vina is available under the Apache license, allowing commercial and non-commercial use and redistribution.

<font color="red">**Citation:**</font> Include in published paper the following citation regarding use of:

<dl><dd><dl><dd>  
 ***AutoDock***: Morris, G. M., Huey, R., Lindstrom, W., Sanner, M. F., Belew, R. K., Goodsell, D. S. and Olson, A. J. (2009)   
</dd><dd>***Autodock4*** and ***AutoDockTools4***: automated docking with selective receptor flexiblity. J. Computational Chemistry 2009, 16: 2785-91.   
</dd><dd>Morris, G. M., Goodsell, D. S., Halliday, R.S., Huey, R., Hart, W. E., Belew, R. K. and Olson, A. J. (1998), Automated Docking Using a Lamarckian Genetic Algorithm and and Empirical Binding Free Energy Function J. Computational Chemistry, 19: 1639-1662.   
</dd><dd>***AutoDock Vina:*** O. Trott, A. J. Olson, AutoDock Vina: improving the speed and accuracy of docking with a new scoring function, efficient optimization and multithreading, Journal of Computational Chemistry 31 (2010) 455-461</dd></dl></dd></dl>  
<font color="red">**Documentation:**</font>[http://autodock.scripps.edu/faqs-help/manual/autodock-4-2-user-guide](http://autodock.scripps.edu/faqs-help/manual/autodock-4-2-user-guide)

<dl><dd><dl><dd>[http://autodock.scripps.edu/faqs-help/manual/autodock-vina-manual-page/autodock-vina-manual-page](http://autodock.scripps.edu/faqs-help/manual/autodock-vina-manual-page/autodock-vina-manual-page)   
</dd></dl></dd></dl><font color="red">**Tutorials:**</font> [http://autodock.scripps.edu/faqs-help/tutorial](http://autodock.scripps.edu/faqs-help/tutorial)

<font color="red">**Related Packages:**</font>

<dl><dd><dl><dd>Pardock</dd><dd>ICM</dd><dd>SwissDock</dd></dl></dd></dl><font color="red">**Use:**</font> Load module file.

```
<font face="courier"> 
module load autodock 
</font>
```

<font color="red">**Example:**</font>***Autodock*** example requires several files, which are prepared ***Autodock*** tool set and placed in <font face="courier">**/share/apps/autodock/default/example/in**</font> directory. Upon running the example the files from this directory must be copied in a user directory by the command:

```
cp /share/apps/autodock/default/example/in/* .
```

Below is given an example of job submitting script. Please note that installed version of ***Autodock*** is a serial program, so the fields <font face="courier">**&lt;cpus&gt;**</font> and <font face="courier">**&lt;chunks&gt;**</font> must have value of <font face="courier">**1**</font>. The file <font face="courier">**aq.dpf**</font> below is called ***docking parameter file*** and is generated by ***themkgpf3*** and ***mkdpf3*** programs, which are part of ***Autodock*** tool set.

#### **<span class="mw-headline" id="bkmrk-penzias-or-andy-1">PENZIAS or ANDY</span>**

```
#!/bin/bash 
#SBATCH -- autodock_test 
#SBATCH -- partition production 
#SBATCH -- select=<font color="red"><chunks></font>
#SBATCH -- tasks=<font color="red"><cpus></font>  

# Explicitly change to the working directory  
cd $SLURM_SUBMIT_DIR  

# generate atomic maps 

autogrid4 -p aq.gpf -l output_mapGeneration.glg  

# execute autodock 

autodock4 -p aq.dpf -l output_autodock.dlg #------------------------------  echo "*** Job is done! ***"
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# ITASSER (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-i-tasser-description">#### **<span class="mw-headline" id="bkmrk-i-tasser-1">**I-TASSER**</span>**

  
<font color="red">**Description:**</font> ***I-Tasser*** is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by **LOMETS** and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with **BioLiP** protein function database.

<font color="red">**Additional Notes:**</font> ***Package Contents include:***

<dl><dd><dl><dd>I-TASSER: A standalone I-TASSER package for protein 3D structure prediction and refinement.</dd><dd>COACH: A function annotation program based on COFACTOR, TM-SITE and S-SITE.</dd><dd>COFACTOR: A program for ligand-binding site, EC number &amp; GO term prediction.</dd><dd>TM-SITE: A structure-based approach for ligand-binding site prediction.</dd><dd>S-SITE: A sequence-based approach for ligand-binding site prediction.</dd><dd>LOMETS: A set of locally installed threading programs for meta-server protein fold-recognition.</dd><dd>MUSTER: A threading program to identify templates from a non-redundant protein structure library.</dd><dd>SPICKER: A clustering program to identify near-native protein model from structure decoys.</dd><dd>HAAD: A program for quickly adding hydrogen atoms to protein heavy-atom structures.</dd><dd>EDTSurf: A program to construct triangulated surfaces of protein molecules.</dd><dd>ModRefiner: A program to construct and refine atomic-level protein models from C-alpha traces.</dd><dd>NW-align: A robust program for protein sequence-to-sequence alignments by Needleman-Wunsch algorithm.</dd><dd>PSSpred: A highly accurate program for protein secondary structure prediction.</dd></dl></dd></dl><font color="red">**Availability:**</font> PENZIAS

<font color="red">**Module file:**</font> itasser

<font color="red">**Citation:**</font> Include in published paper the following citation regarding use of ***I-TASSER***:

<dl><dd><dl><dd>Zhang, Y. and Skolnick, J., 2004, PNAS (for TASSER method), J.Yang,R.Yan,R.Roy,D.Xu,J.Poisson,Y.Zhang The I-TASSER Suite.Protein structure and function prediction. Nature Methods (2014)., Wu S, Zhang Y Nucleic Acids Res. 2007; 35(10):3375-82 (for MUSTER), Wu S, Zhang Y Nucleic Acids Res. 2007; 35(10):3375-82. (for LOMETS)</dd></dl></dd></dl><font color="red">**Documentation:**</font>There is no complete documentation for the package. Some examples are available on I-TASSER web server site: [http://zhanglab.ccmb.med.umich.edu/I-TASSER/](http://zhanglab.ccmb.med.umich.edu/I-TASSER/)  
<font color="red">**Tutorials:**</font> There are not comprehensive tutorials as well. The useful information for beginners can be found in the I-TASSER forum at: [http://zhanglab.ccmb.med.umich.edu/bbs/?q=forum/2](http://zhanglab.ccmb.med.umich.edu/bbs/?q=forum/2)

<font color="red">**Related Packages:**</font>

<dl><dd><dl><dd>HHpred</dd><dd>RaptorX</dd><dd>Modeller</dd></dl></dd></dl><font color="red">**Use:**</font> Load module with command:

```
<font face="courier"> 
module load itasser 
</font>
```

Loading module will set up a path to all programs installed under I-TASSER umbrella (see above list).

<font color="red">**Example:**</font> The **I-TASSER** prediction pipeline includes **four** general steps: template identification, structure re-assembly, atomic model construction, and final model selection.

<dl><dd><dl><dd>**Step 1. Template identification.**</dd><dd>There are 2 scripts in **I-TASSER** suite dedicated to template identification. The first one is called **MUSTER**, which uses an extended sequence profile-profile alignment algorithm with the alignment score assisted by secondary structure match, fragment structure profile, solvent accessibility, backbone torsion angle, and hydrophobic scoring matrix. The second one is **LOMETS** used for a local meta-threading.</dd></dl></dd></dl><dl><dd><dl><dd>**Step 2. Structure assembly.**</dd><dd>The cluster centroids are generated by **SPICKER**, which clusters all the trajectories. **I-TASSER** structure assembly simulations contain 14 independent runs by default. This number can be modified if the user wants to run more simulations, especially for big protein without good templates.</dd></dl></dd></dl><dl><dd><dl><dd>**Step 3. Structure assembly.**</dd><dd>The **SPICKER** cluster centroids from **I-TASSER** are reduced models, with each residue represented by its Cα and side-chain center. The full models can be constructed via other application i.e. **REMO** which is not part of installed suite.</dd></dl></dd></dl><dl><dd><dl><dd>**Step 4. Model Selection.**</dd><dd>The procedure of model selection is matter of choice according to the current research workflow.</dd></dl></dd></dl>The **I-TASSER** can be run in sequential or parallel mode. The application is perl script which uses default perl interpreter on a cluster. The name of the application is <font face="courier">runI-TASSER.pl</font>.

For serial mode the following script can be used. Please note that for sequential scripts the chunk is <font face="courier">ntasks=1</font>, and the placement is pack (<font face="courier">-l place=pack</font>).

  
For meaning and proper choice of values in <font face="courier"><font color="red">**&lt;chunks&gt;**</font></font>and <font face="courier"><font color="red">**&lt;tasks&gt;**</font></font> fields please read the section <a class="new" title="Submitting Jobs (page does not exist)">“Writing a job submit script.”</a>

#### **<span class="mw-headline" id="bkmrk-penzias-1">PENZIAS</span>**

#### **<span class="mw-headline" id="bkmrk-sample-submit-script-1">Sample submit script</span>**

```
#!/bin/bash 
#!/bin/bash 
#SBATCH --partition production
#SBATCH --job-name TASSER 
#SBATCH --nodes=<font color="red"><chunks></font>
#SBATCH --ntasks=<<font color="red"><tasks></font>

# Explicitly change to the working directory in SLURM 
cd $SLURM_SUBMIT_DIR  

# Start job

 runI-TASSER.pl –pkgdir /share/apps/itasser/4.2 –libdir /share/apps/itasser/4.2/ITLIB –seqname <font color="red"><name_of_input_sequence></font> -datadir $HOME –java_home /usr 2>&1 

echo ">>>> End <<<<”
```

#### **<span class="mw-headline" id="bkmrk-parallel-submit-scri-1">Parallel submit script</span>**

For parallel run on I-TASSER the SBATCH job script below can be used. The parallelism is quite primitive: the I-TASSER script submits several parts of itself at the same time to different cores. Thus the number of used cores is determined by set in <font face="courier"><font color="red">–l select=\[N:\]&lt;chunks&gt; line </font></font>(resources list) in SBATCH job script. For example for running the below script on 4 cores the chunk could be:

```
 nodes=4 ntasks=1
```

```
#!/bin/bash 
#SBATCH --partition production
#SBATCH --job-name ITASSERJOB 
#SBATCH --nodes=[<font color="red">N</font>:]<<font color="red"><chunk></font>


# Explicitly change to the working directory in SLURM 
cd $SLURM_SUBMIT_DIR  

# Start job

 runI-TASSER.pl –pkgdir /share/apps/itasser/4.2 –libdir /share/apps/itasser/4.2/ITLIB –seqname <font color="red"><name_of_input_sequence></font> -datadir $HOME –runstyle parallel –java_home /usr 2>&1 

echo ">>>> End <<<<”
```

  
<font color="red">**Additional Notes:**</font> The **I-TASSER** is a selection of several **perl** scripts. The actual use of the scripts varies according to a particular research workflow. The <font face="courier">**runI-TASSER.pl**</font> is a main perl script. It can take the following parameters apart from mentioned above:

<dl><dd><dl><dd><font face="courier">-homoflag</font>, \[real, benchmark\],"real" will use all templates, "benchmark" will exclude homologous templates</dd><dd><font face="courier">-idcut</font>, sequence identity cutoff for "benchmark" runs, default value is 0.3, range is in \[0,1\]</dd><dd><font face="courier">-ntemp</font>, number of top templates output for each threading program, default is 20, range is in \[1,50\]</dd><dd><font face="courier">-nmodel</font>, number of final models output by I-TASSER, default value is 5, range is in \[1,10\]</dd><dd><font face="courier">-LBS</font>, \[true or false\], whether to predict ligand-binding site, default is false</dd><dd><font face="courier">-EC</font>, \[true or false\], whether to predict EC number, default is false</dd><dd><font face="courier">-GO</font>, \[true or false\], whether to predict GO terms, default is false</dd><dd><font face="courier">-restraint1</font>, specify distance/contact restraints</dd><dd><font face="courier">-restraint2</font>, specify template with alignment</dd><dd><font face="courier">-restraint3</font>, specify template name without alignment</dd><dd><font face="courier">-restraint4</font>, specify template file without alignment</dd><dd><font face="courier">-temp\_excl</font>, exclude specific templates from template library</dd><dd><font face="courier">-traj</font>, this option means to deposit the trajectory files</dd><dd><font face="courier">-hours</font>, specify maximum hours of simulations (default=5 when -light=true). Must match or be less than walltime on SLURM chunk .</dd><dd><font face="courier">-outdir</font>, where the final results should be saved. Default is start up directory.</dd></dl></dd></dl></div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# AUGUSTUS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-augustus-is-availabl">Augustus is available on Karle, users must load the module by typing:

```
module load augustus/[current-version]
```

The current version can be found in /share/usr/augustus. More detailed information about AUGUSTUS capabilities along with data sets can be found on AUGUSTUS web page:

```
http://bioinf.uni-greifswald.de/augustus/
```

When used in research the AUGUSTUS must be cited with appropriate paper from the following list:

```
Oliver Keller, Martin Kollmar, Mario Stanke, Stephan Waack (2011)
A novel hybrid gene prediction method employing protein multiple sequence alignments
Bioinformatics, doi: 10.1093/bioinformatics/btr010
Mario Stanke, Mark Diekhans, Robert Baertsch, David Haussler (2008)
Using native and syntenically mapped cDNA alignments to improve de novo gene finding
Bioinformatics, 24(5), pages 637-644, doi: 10.1093/bioinformatics/btn013
Mario Stanke, Ana Tzvetkova, Burkhard Morgenstern (2006)
"AUGUSTUS at EGASP: using EST, protein and genomic alignments for improved gene prediction in the human genome"
BMC Genome Biology, 7(Suppl 1):S11.
M. Stanke , O. Schöffmann , B. Morgenstern, S. Waack (2006)
Gene prediction in eukaryotes with a generalized hidden Markov model that uses hints from external sources 
BMC Bioinformatics 7, 62.
Mario Stanke and Burkhard Morgenstern (2005)
"AUGUSTUS: a web server for gene prediction in eukaryotes that allows user-defined constraints",
Nucleic Acids Research, 33, W465-W467
Mario Stanke, Rasmus Steinkamp, Stephan Waack and Burkhard Morgenstern (2004) 
"AUGUSTUS: a web server for gene finding in eukaryotes" 
Nucleic Acids Research, Vol. 32, W309-W312
Mario Stanke and Stephan Waack (2003)
Gene Prediction with a Hidden-Markov Model and a new Intron Submodel. 
Bioinformatics, Vol. 19, Suppl. 2, pages ii215-ii225
Mario Stanke (2003)
Gene Prediction with a Hidden-Markov Model. 
Ph.D. thesis, Universität Göttingen
```

AUGUSTUS is sequential program Thus the following basic script can be used to run workflow with AUGUSTUS:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name my program
#SBATCH --nodes=1
#SBATCH --ntasks=1

cd SLURM_SUBMIT_DIR

augustus <input_file>  > <output_file>
 
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# BEAST (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-currently%2C-beast-is-">Currently, BEAST is installed on ANDY and PENZIAS at the CUNY HPCC, BEAST is a serial program, but can also be run in parallel with the help of a companion library (BEAGLE) on systems with Graphics Processing Units (GPUs). PENZIAS supports GPU processing using NVIDIA Kepler GPUs and the BEAGLE 1.0 and 2.0 GPU libraries have been installed there for this purpose. (NOTE: GPU processing on ANDY has been eliminated as the FERMI GPUs their have reached end-of-life.) BEAST can therefore be run either serially or in GPU-accelerated mode on PENZIAS. Benchmarks of BEAST show that GPU acceleration provides significant performance improvement over basic CPU serial operation.

BEAST's user interface program, 'BEAUti', can be run locally on an office workstation or from the head node of ANDY. The latter option assumes that the user has logged in directly to PENZIAS or ANDY via the secure shell with X-Windows tunneling enabled (e.g. ssh -X my.name@andy.csi.cuny.edu). This second approach is only convenient for those on the College of Staten Island campus that can directly address PENZIAS or ANDY. Moreover, if HPC staff find that using the BEAUTi interface is consuming too much CPU time users will be asked to move their pre-processing work to their desktop, which is the preferred location for pre-processing in general. Details on using ssh to login are provided elsewhere in this document. Among other things, BEAUti is used to convert raw '.nex' files in into BEAST XML-based input files. Using ANDY's or PENZIAS's head node for anything compute intensive is forbidden, but these file conversions should be fairly low intensity.

Once a usable BEAST input file has been created (or provided), a SLURM batch script must be written to run the job, either in serial mode or in GPU parallel mode. Below, we show how to run both a serial and GPU-accelerated job with a test input case (testMC3.xml) available in the BEAST examples directory. The input file may be copied into the users working directory from BEAST's installation tree for submission with the SLURM, as follows:

```
cp /share/apps/beast/2.1.2/examples/testRNA.xml .
```

To include all required environmental variables and the path to the BEAST executable run the modules load command (the modules utility is discussed in detail above):

```
module load beast/2.1.2
```

Next, a SLURM Pro batch script must be created to run your job. The first script below shows a serial run that uses the textRNA.xml XML input file.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEAST_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BEAST Serial Run ..."
beast -m 2880 -seed 666 ./testRNA.xml > beast_ser.out 2>&1
echo ">>>> End   BEAST Serial Run ..."
```

This script can be dropped into a file (say 'beast\_serial.job) on ANDY or PENZIAS and run with:

```
qsub beast_serial.job
```

This case should take less fifteen minutes to run and will produce SLURM output and error files beginning with the job name 'BEAST\_serial', as well files specific to BEAST. The primary BEAST application output will be written into the user-specified file at the end of the BEAST command line after the greater-than sign. Here it is named 'beast\_ser.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered above in the SLURM section of the Wiki. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory for the job. The second line instructs SLURM to place this job wherever the least loaded compute node resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The HPC Center staff has made two changes to the memory constraints in operation for ALL the BEAST distributed programs (see list below). First, the default minimum memory size has been set up from 64 MBs to 256 MBs. Second, a maximum memory control option has been added to all the programs. It is not required and if NOT used, programs will use the historical default for Linux jobs which is 1024 MBs (i.e. 1 GBs). If this option is used, it must be the FIRST option included on the execution line in your script and should take the form:

```
-m XXXXX
```

where the value 'XXXX' is the new user-selected maximum memory setting in MBytes. So, the option used in the script above:

```
-m 2880
```

would bump up the memory maximum for the 'beast' program to 2,880 MBytes. Notice that this matches the amount requested per 'chunk' in the SLURM '-l select' line above. You should not ask for more memory that you have requested through SLURM.

You may wish to request more memory than the per cpu (core) defaults on a system. This can be accomplished by asking for more cores per SLURM 'chunk' than you are going to use, but using ALL of the memory SLURM allocates to the multiple cores. For instance, a '-l select' line of:

```
#SBATCH --nodes=1 ntasks=4 mem=11520
```

requests 4 cpus (cores) and 11,520 MBs of memory. You could make this request of SLURM and then leave the extra cores unused while asking for the all of the memory allocated with a 'beast' execution line of:

```
beast -m 11520 -seed 666 ./testRNA.xml
```

This provides 4 times the single-core quantity of memory for your 'beast' run by allocating but not using the 4 SLURM cores requested the '-l select' statement. The non\_GPU version of 'beast' is serial in the sense that it uses only one CPU core to control the GPU. This memory ceiling management option and technique can be used with any of the programs distributed with BEAST. Another such distributed program would be 'treeannotator' for instance.

Remember that ANDY has 2880 MBs of available memory per core (2.880 GBs). Penzias has 3686 MBs of available memory per core.

Note that there are larger number of command line options available to BEAST. This example uses the defaults, other than setting the seed with '-s 666'. All of BEAST's options can be listed as follows:

```
shaker.krit@andy:~> /share/apps/beast/default/bin/beast -help
Using Java MAXMEM default: 2048 MBs
  Usage: beast [-verbose] [-warnings] [-strict] [-window] [-options] [-working] [-seed] [-prefix <PREFIX>] [-overwrite] [-errors <i>] [-threads <i>] [-java] [-threshold <r>] [-beagle] [-beagle_info] [-beagle_order <order>] [-beagle_instances <i>] [-beagle_CPU] [-beagle_GPU] [-beagle_SSE] [-beagle_cuda] [-beagle_opencl] [-beagle_single] [-beagle_double] [-beagle_scaling <default|dynamic|delayed|always|none>] [-beagle_rescale <i>] [-mpi] [-mc3_chains <i>] [-mc3_delta <r>] [-mc3_temperatures] [-mc3_swap <i>] [-version] [-help] [<input-file-name>]
    -verbose Give verbose XML parsing messages
    -warnings Show warning messages about BEAST XML file
    -strict Fail on non-conforming BEAST XML file
    -window Provide a console window
    -options Display an options dialog
    -working Change working directory to input file's directory
    -seed Specify a random number generator seed
    -prefix Specify a prefix for all output log filenames
    -overwrite Allow overwriting of log files
    -errors Specify maximum number of numerical errors before stopping
    -threads The number of computational threads to use (default auto)
    -java Use Java only, no native implementations
    -threshold Full evaluation test threshold (default 1E-6)
    -beagle Use beagle library if available
    -beagle_info BEAGLE: show information on available resources
    -beagle_order BEAGLE: set order of resource use
    -beagle_instances BEAGLE: divide site patterns amongst instances
    -beagle_CPU BEAGLE: use CPU instance
    -beagle_GPU BEAGLE: use GPU instance if available
    -beagle_SSE BEAGLE: use SSE extensions if available
    -beagle_cuda BEAGLE: use CUDA parallization if available
    -beagle_opencl BEAGLE: use OpenCL parallization if available
    -beagle_single BEAGLE: use single precision if available
    -beagle_double BEAGLE: use double precision if available
    -beagle_scaling BEAGLE: specify scaling scheme to use
    -beagle_rescale BEAGLE: frequency of rescaling (dynamic scaling only)
    -mpi Use MPI rank to label output
    -mc3_chains number of chains
    -mc3_delta temperature increment parameter
    -mc3_temperatures a comma-separated list of the hot chain temperatures
    -mc3_swap frequency at which chains temperatures will be swapped
    -version Print the version and credits and stop
    -help Print this information and stop

  Example: beast test.xml
  Example: beast -window test.xml
  Example: beast -help
```

The CUNY HPCC also provides a GPU-accelerated version of BEAST. This version can be run *ONLY* on PENZIAS which supports GPUs. The same 'beast' module which also loads the BEAGLE GPU library, must be loaded as shown previously. NOTE: ANDY no longer supports GPU computation as its Fermi GPUs have reach end-of-life failure rates.

A SLURM batch script for running the GPU-accelerated version of BEAST follows:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEAST_gpu
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --gres=gpu:1
#SBATCH --mem=2880
#SBATCH --accel=kepler

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BEAST GPU Run ..."
beast_gpu -m 2880 -beagle -beagle_GPU  -beagle_single -seed 666 ./testRNA.xml > beast_gpu.out 2>&1
echo ">>>> End   BEAST GPU Run ..."
```

This script has several unique features. Next, the '-l select' line includes requests for GPU-related resources. Both 1 processor (npus=1) and 1 GPU (ngpus=1) are requested. You need both. The type of GPU accelerator is specified as an NVIDIA Kepler GPU which has 832 double precision processors (and 2496 single precision processors) running at 0.705 GHz to apply to this workload (accel=kepler). These GPU processing cores, while less powerful individually that a CPU core, in concert are what deliver the performance of the highly parallel MCMC algorithm.

In addition, GPU-specific command-line options are required to invoke the GPU version of the BEAST. Here we have requested that the 'BEAGLE' GPU-library be used and that the computation be run in single- precision (32-bits as opposed to 64-bits) on the GPU which is as much as 3X faster that double-precision on NVIDIA Kepler if you can get by with single-precision.

All the programs that are part of the BEAST 2.1.2 distribution are available, even though we have only discussed 'beast' itself in detail here. The other programs, all of which can be run with similar scripts, include:

```
addonmanager beast beauti densitree loganalyser  logcombiner  treeannotator
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# BPP2 (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-at-the-cuny-hpc-cent">At the CUNY HPCC BPP2 is installed on Andy and Penzias. BPP2 is a serial code that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the fence lizard test case provided with the distribution archive (/share/apps/bpp2/default/examples).

To include all required environmental variables and the path to the BPP2 executable run the modules load command (the modules utility is discussed in detail above):

```
module load bpp2
```

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BPP2_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUMBIT_DIR

# Invoke the executable in command-line mode to run
echo ">>>> Begin BPP2 Serial Run ..."
bpp2 ./lizard.bpp.ctl > bpp2_ser.out 2>&1
echo ">>>> End   BPP2 Serial Run ..."
```

This script can be dropped in to a file (say bpp2.job) and started with the command:

```
qsub bpp2.job
```

Running the fence lizard test case should take less than 15 minutes and will produce SLURM output and error files beginning with the job name 'BPP2\_serial'. The primary BPP2 application results will be written into the user-specified file at the end of the BPP2 command line after the greater-than sign. Here it is named 'bpp2\_ser.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered in the SLURM section in Applications Enviroment [\[1\]](/bookstack/books/software-applications/page/applications-environment-reference-guide). The most important lines are the '#SBATCH --nodes=1 ncpus=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# ADF (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-adf-%28amsterdam-densi">#### **<span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-adf-%28amsterdam-densi-2">ADF (Amsterdam Density Functional Theory)</span>**

ADF (Amsterdam Density Functional) is a Fortran program for calculations on atoms and molecules (in gas phase or solution) from first principles. It can be used for the study of such diverse fields as molecular spectroscopy, organic and inorganic chemistry, crystallography and pharmacochemistry. Some of its key strengths include high accuracy supported by its use of Slater-type orbitals, all-electron relativistic treatment of the heavier elements, and fast parameterized DFT-based semi-empirical methods. A separate program BAND is available for the study of periodic systems: crystals, surfaces, and polymers. The COSMO-RS program is used for calculating thermodynamic properties of (mixed) fluids.

The underlying theory is the Kohn-Sham approach to Density-Functional Theory (DFT). This implies a one-electron picture of the many-electron systems, but yields in principle the exact electron density (and related properties) and the total energy. If ADF is a new program for you, we recommend that you carefully read Chapter 1, section 1.3 'Technical remarks, Terminology', which presents a discussion of a few ADF-typical aspects and terminology. This will help you to understand and appreciate the output of an ADF calculation. The ADF Manual is located on the web here: [\[1\]](http://www.scm.com/Doc/Doc2013/ADF/ADFUsersGuide/page1.html)

ADF 2013 (and SCM's other programs) is installed on ANDY and PENZIAS at the CUNY HPCC. The older 2012 version is also available on ANDY server. The current license is group-limited and allows for up to 32 cores of simultaneous ADF use and 8 cores of simultaneous BAND use. This is a floating license limited to the DDR side of ANDY and the SLURM 'production' queue. Users not currently in the ADF group should inquire about access by sending an email to 'hpchelp@csi.cuny.edu'.

Here is a simple ADF input deck that compute the SCF wave function for HCN. This example can be run with the SLURM script shown below on from 1 to 4 cores.

```
Title    HCN Linear Transit, first part
NoPrint  SFO, Frag, Functions, Computation

Atoms      Internal
  1 C  0 0 0       0    0    0
  2 N  1 0 0       1.3  0    0
  3 H  1 2 0       1.0  th  0
End

Basis
 Type DZP
End

Symmetry NOSYM

Integration 6.0 6.0

Geometry
  Branch Old
  LinearTransit  10
  Iterations     30  4
  Converge   Grad=3e-2,  Rad=3e-2,  Angle=2
END

Geovar
  th   180    0
End

End Input
```

A SLURM script ('adf\_4.job') configured to use 4 cores is shown here. Note that ADF does not use the version of MPI that the HPC Center supports by default. ADF used the proprietary version of MPI from SGI that is part of SGI's MPT parallel library package. This script includes special lines to configure the run for this. A side effect of this fact is that ADF jobs will not clock time in SLURM as shown under the 'Time' column when your job is being checked with 'qstat'

To include all required environmental variables and the path to the ADF executable run the modules load command (the modules utility is discussed in detail above):

```
module load adf
```

```
#!/bin/bash
# This script runs a 4-cpu (core) ADF job using the group
# license of Dr. Vittadello, Dr. Birke, and the CUNY HPCC.
# This script requests only one half of the resources 
# on an ANDY compute node (4 cores, 1 half its memory). 
#
# The HCN_4P.inp deck in this directory is configured to work
# with these resources, although this computation is really 
# too small to make full use of them. To increase or decrease
# the resources SLURM requests (cpus, memory, or disk) change the 
# '-l select' line below and the parameter values in the input deck.
#
#SLURM -q production
#SLURM -N adf_4P_job
#SLURM -l select=1:ncpus=4:mem=11520mb:lscratch=400gb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# set environment up to use SGI's MPT version of MPI rather
# than the CUNY default which is OpenMPI
BASEPATH=/opt/sgi/mpt/mpt-2.02

export PATH=${BASEPATH}/bin:${PATH}
export CPATH=${BASEPATH}/include:${CPATH}
export FPATH=${BASEPATH}/include:${FPATH}
export LD_LIBRARY_PATH=${BASEPATH}/lib:${LD_LIBRARY_PATH}
export LIBRARY_PATH=${BASEPATH}/lib:${LIBRARY_PATH}
export MPI_ROOT=${BASEPATH}

# set the ADF root directory
export ADFROOT=/share/apps/adf
export ADFHOME=${ADFROOT}/2013.01

# point ADF to the ADF license file
export SCMLICENSE=${ADFHOME}/license.txt

# set up ADF scratch directory 
export MY_SCRDIR=`whoami;date '+%m.%d.%y_%H:%M:%S'`
export MY_SCRDIR=`echo $MY_SCRDIR | sed -e 's; ;_;'`
export SCM_TMPDIR=/home/adf/adf_scr/${MY_SCRDIR}_$$

mkdir -p $SCM_TMPDIR

echo ""
echo "The ADF scratch files for this job are in: ${SCM_TMPDIR}"
echo ""

# check important paths
#type mpirun
#type adf

# set the number processors to use in this job to 4
export NSCM=4

# run the ADF job
echo "Starting ADF job ... "
echo ""

adf -n 4 < HCN_4P.inp > HCN_4P.out 2>&1

# name output files
mv logfile HCN_4P.logfile

echo ""
echo "ADF job finished ... "

# clean up scratch directory files
/bin/rm -r $SCM_TMPDIR
```

Much of this script is similar to the script that runs Gaussian jobs, but the differences should should be described in some detail. First, ADF must be submitted to the 'production' queue which is where its floating license has been limited, and where it can only use 32 cores at one for ADF and 8 cores at a time for BAND. Second, there is a block in the script that sets up the environment to use the SGI proprietary version of MPI for parallel runs. Next is the NSCM environmental variable which defines the number of cores to use along with the '-n' option on the command line. Both of these (along with the number of cpus on the SLURM '-l select' line at the beginning of the script) must be adjusted to control the number of cores used by the job.

Note the 'adf' command is actually a script that generates and runs another script that actually runs the 'adf.exe' executable. This script (called 'runscript') is built and placed in the users working directory. It typically includes some preliminary steps that are NOT run in parallel.

With the HCN input file and SLURM script above, you can submit an ADF job on ANDY with:

```
qsub adf_4.job
```

All users of ADF must be licensed and placed in the 'gadf' Unix group by HPC Center staff.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GROMACS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-gromacs-description%3A">#### **<span class="mw-headline" id="bkmrk-gromacs-1">**GROMACS**</span>**

  
<font color="red">**Description:**</font> ***GROMACS*** is a highly optimized, fast, Molecular Dynamics (MD) simulation package primarily used for research on proteins, lipids, and polymers. The package can also be applied to a wide variety of chemical and biological research questions.

<font color="red">**Additional Notes:**</font> ***GROMACS 5.X*** represents the newest version of GROMACS and has been optimized for both parallel MPI and GPU performance. This version is installed on PENZIAS and is recommended. GROMACS 4.X is also installed. There are significant differences between versions of GROMACS, which may affect the simulation process.

<font color="red">**Availability:**</font> PENZIAS and APPEL

<dl><dd><dl><dd><font color="black">**MPI:**</font> Yes</dd><dd><font color="black">**SMP:**</font> No</dd><dd><font color="black">**GPU:**</font> Yes on PENZIAS, No on APPEL</dd></dl></dd></dl><font color="red">**Module file:**</font> gromacs

<font color="red">**Citation:**</font> Include in published paper the following citation regarding use of ***GROMACS***: 1. Berendsen, et al. (1995) Comp. Phys. Comm. 91: 43-56, Lindahl, et al. (2001) J. Mol. Model. 7: 306-317, Van der Spoel, et al. (2005) J. Comput. Chem. 26: 1701-1718, Hess, et al. (2008) J. Chem. Theory Comput. 4: 435-447, Pronk, et al. (2013) Bioinformatics 29 845-854.

<font color="red">**Documentation:**</font> [http://www.gromacs.org/Documentation](http://www.gromacs.org/Documentation)  
<font color="red">**Tutorials:**</font> [http://www.gromacs.org/Documentation/Tutorials](http://www.gromacs.org/Documentation/Tutorials)

<font color="red">**Related Packages:**</font>

<dl><dd><dl><dd>LAMMPS</dd><dd>NWChem</dd><dd>TINKER</dd></dl></dd></dl><font color="red">**General notes of use:** </font>The GROMACS package comes with a set of tools, which can be used to prepare the molecular system for simulation. genbox tool is no longer available in GROMACS 5.X. Also, the tools in GROMACS 5.X cannot be used directly, (as they were with GROMACS 4.X), but via wrapper called gmx (i.e. gmx pdb2gmx). Users should consult the tutorial(s)/documentation specific for the particular version. Also there are significant changes in algorithms used in GROMACS 5.X vs. those in GROMACS 4.X.

<font color="red">**GROMACS parallelization schemes:** </font>Version 5.X on PENZIAS utilizes MPI parallelism, OpenMP parallelism and GPU-direct mechanism (P2P) to run simulations across several GPUs from different nodes. GROMACS 4.X installed on ANDY utilizes OpenMP (in node parallelism, SMP) and MPI parallelism. The GPU enabled 4.X version on PENZIAS utilizes MPI and OpenMP parallelism as well, but also uses GPUs as accelerator.

<font color="red">**Use of GPUs:** </font>In the GPU enabled version of GROMACS, the Particle Mesh Ewald (PME) calculations are always done on CPU, while particle-particle (PP) interactions are done on GPU. As such, the optimal ratio between number of CPUs and number of GPUs depends on type of molecular system simulated. For X86\_64 architecture the recommended number of atoms per CPU is typically about 100 to 150. As such, and as a rule of thumb, for a computer with K20 GPUs the ratio between the number of CPUs and GPUs should be at least 4:1, but the optimal number depends on molecular system simulated.

<font color="red">**Use:** </font><font face="courier"></font>

<font face="courier">PENZIAS: </font>

<font face="courier">```
module load gromacs/<font color="red">x.x.x</font>
```

</font><font face="courier">ANDY:

</font><font face="courier"></font>```
<font face="courier">module load gromacs
</font>
```

For meaning and proper choice of values in <font face="courier"><font color="red">**&lt;chunks&gt;**</font></font> and <font face="courier"><font color="red">**&lt;cpus&gt;**</font></font> fields please read the section <a class="new" title="Submitting Jobs (page does not exist)">“Writing a job submit script.”</a>

<font color="red">**Example:**</font> The following example SLURM scripts are described below: (1) General Script Template (2) Penzias (a) 4 cpus and 1 gpu, (b) 4 cpus and 2 gpus (c) 2 mpi threads per gpu and a submit script for (3) Andy.

#### **<span class="mw-headline" id="bkmrk-general-submit-scrip-1">General submit script template</span>**

The sample submit script should be modified based upon sysem (PENZIAS or ANDY) and desired CPU/GPU usage.

```
#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<font color="red"><chunks></font>
#SBATCH --ntasks=<font color="red"><cpus></font>
#SBATCH --gres=gpu=<font color="red"><gpus></font>
#SBATCH --mem=<font color="red"><memory_mb></font> 
   

# You must explicitly change to your working directory in SLURM 

cd $SLURM_SUBMIT_DIR  

mpirun -np <font color="red"><chunks*cpus></font> gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0 > water.out 2>&1
```

#### **<span class="mw-headline" id="bkmrk-penzias-1">PENZIAS</span>**

#### **<span class="mw-headline" id="bkmrk-a.-example-submit-sc-1">A. Example Submit Script: 4 CPUs and 1 GPU</span>**

In the script below, the SLURM scheduler is asked to schedule 4 CPUs and 1 GPU for a job.

On PENZIAS, there are 2 versions of GROMACS which are GPU enabled: GROMACS 5.X and GROMACS 4.X. The 5.x uses more advanced communication protocol between GPU and has improved CPU performance. The following SLURM script can be used as a model on how to run a MPI parallel GROMACS 5.X job with GPUs on PENZIAS. First, load the module for GROMACS with command:

```
module load gromacs/5.0.4
```

```
#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<font color="red"><chunks></font>
#SBATCH --ntasks=<font color="red"><cpus></font>
#SBATCH --gres=gpu:1
#SBATCH --mem=3660mb   

# You must explicitly change to your working directory in SLURM 

cd $SLURM_SUBMIT_DIR  

mpirun -np 4 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0 > water.out 2>&1
```

#### **<span class="mw-headline" id="bkmrk-b.-example-submit-sc-1">B. Example Submit Script: 4 CPUs and 2 GPUs</span>**

On PENZIAS, each virtual node has 2 GPUs. The following script shows how to use 2 GPUs:

```
#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<font color="red"><chunks></font>
#SBATCH --ntasks=<font color="red"><cpus></font>
#SBATCH --gres=gpu:1
#SBATCH --mem=3660 

cd $SLURM_SUBMIT_DIR   

mpirun -np 32 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 01 > water.out 2>&1 

```

The above script will allocate 32 CPUs and 8 GPUs across several nodes.

#### **<span class="mw-headline" id="bkmrk-c.-example-submit-sc-1">C. Example Submit Script: 2 MPI threads per GPU</span>**

For some molecular systems is beneficial to submit two MPI threads per GPU. On PENZIAS that can be achieved with small change in above script in the field of –gpu\_id (i.e., adding 0011):

```
#!/bin/bash 
#SBATCH --job-name water_job 
#SBATCH --partition production 
#SBATCH --nodes=<font color="red"><chunks></font>
#SBATCH --ntasks=<font color="red"><cpus></font>
#SBATCH --gres=gpu:1
#SBATCH --mem=3660 

cd $SLURM_SUBMIT_DIR   

mpirun -np 32 gmx mdrun –s topol.tpr –o md_para.trr –c md_para.gro –e md_para.edr –g md_para.log –gpu_id 0011 > water.out 2>&1
```

#### **<span class="mw-headline" id="bkmrk-appel-1">APPEL</span>**

The following SLURM script can be used as a model how to run MPI only simulations with GROMACS 4.X on ANDY. First load the module for the GROMACS with the command:

```
module load gromacs 
```

The SLURM script is as follows:

```
#!/bin/bash 
#SBATCH --job-name GRMX_32bit 
#SBATCH --partition production_qdr 
#SBATCH --nodes=16
#SBATCH --ntasks
#SBATCH --mem=2880 
  

# You must explicitly change to your working directory in SLURM 

cd $SLURM_SUBMIT_DIR   
 

mpirun -np 16 mdrun_mpi -px -pf -s md_para.tpr -o md_para.trr -c md_para.gro -e md_para.edr  -g md_para.log > GRMX_32bit.out 2>&1 
```

In the above example, the topology file (.tpr), trajectory file (.trr) coordinates file (.gro) etc. are all prepared with GROMACS tools (not shown here).

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [GROMACS](https://wiki.csi.cuny.edu/books/software-applications/page/gromacs)

# BEST (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-currently%2C-best-is-a">Currently, BEST is available on ANDY at the CUNY HPCC.

To run BEST, first a NEXUS-formatted, DNA sequence comparison input file (e.g. a '.nex' file) must be created using MrBayes. See the section on MrBayes below for this. Here is an example NEXUS input file:

```
#NEXUS

begin data;
   dimensions ntax=17 nchar=432;
   format datatype=dna missing=?;
   matrix
   human       ctgactcctgaggagaagtctgccgttactgccctgtggggcaaggtgaacgtggatgaagttggtggtgaggccctgggcaggctgctggtggtctacccttggacccagaggttctttgagtcctttggggatctgtccactcctgatgctgttatgggcaaccctaaggtgaaggctcatggcaagaaagtgctcggtgcctttagtgatggcctggctcacctggacaacctcaagggcacctttgccacactgagtgagctgcactgtgacaagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggtctgtgtgctggcccatcactttggcaaagaattcaccccaccagtgcaggctgcctatcagaaagtggtggctggtgtggctaatgccctggcccacaagtatcac
   tarsier     ctgactgctgaagagaaggccgccgtcactgccctgtggggcaaggtagacgtggaagatgttggtggtgaggccctgggcaggctgctggtcgtctacccatggacccagaggttctttgactcctttggggacctgtccactcctgccgctgttatgagcaatgctaaggtcaaggcccatggcaaaaaggtgctgaacgcctttagtgacggcatggctcatctggacaacctcaagggcacctttgctaagctgagtgagctgcactgtgacaaattgcacgtggatcctgagaatttcaggctcttgggcaatgtgctggtgtgtgtgctggcccaccactttggcaaagaattcaccccgcaggttcaggctgcctatcagaaggtggtggctggtgtggctactgccttggctcacaagtaccac
   bushbaby    ctgactcctgatgagaagaatgccgtttgtgccctgtggggcaaggtgaatgtggaagaagttggtggtgaggccctgggcaggctgctggttgtctacccatggacccagaggttctttgactcctttggggacctgtcctctccttctgctgttatgggcaaccctaaagtgaaggcccacggcaagaaggtgctgagtgcctttagcgagggcctgaatcacctggacaacctcaagggcacctttgctaagctgagtgagctgcattgtgacaagctgcacgtggaccctgagaacttcaggctcctgggcaacgtgctggtggttgtcctggctcaccactttggcaaggatttcaccccacaggtgcaggctgcctatcagaaggtggtggctggtgtggctactgccctggctcacaaataccac
   hare        ctgtccggtgaggagaagtctgcggtcactgccctgtggggcaaggtgaatgtggaagaagttggtggtgagaccctgggcaggctgctggttgtctacccatggacccagaggttcttcgagtcctttggggacctgtccactgcttctgctgttatgggcaaccctaaggtgaaggctcatggcaagaaggtgctggctgccttcagtgagggtctgagtcacctggacaacctcaaaggcaccttcgctaagctgagtgaactgcattgtgacaagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggttattgtgctgtctcatcactttggcaaagaattcactcctcaggtgcaggctgcctatcagaaggtggtggctggtgtggccaatgccctggctcacaaataccac
   rabbit      ctgtccagtgaggagaagtctgcggtcactgccctgtggggcaaggtgaatgtggaagaagttggtggtgaggccctgggcaggctgctggttgtctacccatggacccagaggttcttcgagtcctttggggacctgtcctctgcaaatgctgttatgaacaatcctaaggtgaaggctcatggcaagaaggtgctggctgccttcagtgagggtctgagtcacctggacaacctcaaaggcacctttgctaagctgagtgaactgcactgtgacaagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggttattgtgctgtctcatcattttggcaaagaattcactcctcaggtgcaggctgcctatcagaaggtggtggctggtgtggccaatgccctggctcacaaataccac
   cow         ctgactgctgaggagaaggctgccgtcaccgccttttggggcaaggtgaaagtggatgaagttggtggtgaggccctgggcaggctgctggttgtctacccctggactcagaggttctttgagtcctttggggacttgtccactgctgatgctgttatgaacaaccctaaggtgaaggcccatggcaagaaggtgctagattcctttagtaatggcatgaagcatctcgatgacctcaagggcacctttgctgcgctgagtgagctgcactgtgataagctgcatgtggatcctgagaacttcaagctcctgggcaacgtgctagtggttgtgctggctcgcaattttggcaaggaattcaccccggtgctgcaggctgactttcagaaggtggtggctggtgtggccaatgccctggcccacagatatcat
   sheep       ctgactgctgaggagaaggctgccgtcaccggcttctggggcaaggtgaaagtggatgaagttggtgctgaggccctgggcaggctgctggttgtctacccctggactcagaggttctttgagcactttggggacttgtccaatgctgatgctgttatgaacaaccctaaggtgaaggcccatggcaagaaggtgctagactcctttagtaacggcatgaagcatctcgatgacctcaagggcacctttgctcagctgagtgagctgcactgtgataagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgctggtggttgtgctggctcgccaccatggcaatgaattcaccccggtgctgcaggctgactttcagaaggtggtggctggtgttgccaatgccctggcccacaaatatcac
   pig         ctgtctgctgaggagaaggaggccgtcctcggcctgtggggcaaagtgaatgtggacgaagttggtggtgaggccctgggcaggctgctggttgtctacccctggactcagaggttcttcgagtcctttggggacctgtccaatgccgatgccgtcatgggcaatcccaaggtgaaggcccacggcaagaaggtgctccagtccttcagtgacggcctgaaacatctcgacaacctcaagggcacctttgctaagctgagcgagctgcactgtgaccagctgcacgtggatcctgagaacttcaggctcctgggcaacgtgatagtggttgttctggctcgccgccttggccatgacttcaacccgaatgtgcaggctgcttttcagaaggtggtggctggtgttgctaatgccctggcccacaagtaccac
   elephseal   ttgacggcggaggagaagtctgccgtcacctccctgtggggcaaagtgaaggtggatgaagttggtggtgaagccctgggcaggctgctggttgtctacccctggactcagaggttctttgactcctttggggacctgtcctctcctaatgctattatgagcaaccccaaggtcaaggcccatggcaagaaggtgctgaattcctttagtgatggcctgaagaatctggacaacctcaagggcacctttgctaagctcagtgagctgcactgtgaccagctgcatgtggatcccgagaacttcaagctcctgggcaatgtgctggtgtgtgtgctggcccgccactttggcaaggaattcaccccacagatgcagggtgcctttcagaaggtggtagctggtgtggccaatgccctcgcccacaaatatcac
   rat         ctaactgatgctgagaaggctgctgttaatgccctgtggggaaaggtgaaccctgatgatgttggtggcgaggccctgggcaggctgctggttgtctacccttggacccagaggtactttgatagctttggggacctgtcctctgcctctgctatcatgggtaaccctaaggtgaaggcccatggcaagaaggtgataaacgccttcaatgatggcctgaaacacttggacaacctcaagggcacctttgctcatctgagtgaactccactgtgacaagctgcatgtggatcctgagaacttcaggctcctgggcaatatgattgtgattgtgttgggccaccacctgggcaaggaattcaccccctgtgcacaggctgccttccagaaggtggtggctggagtggccagtgccctggctcacaagtaccac
   mouse       ctgactgatgctgagaagtctgctgtctcttgcctgtgggcaaaggtgaaccccgatgaagttggtggtgaggccctgggcaggctgctggttgtctacccttggacccagcggtactttgatagctttggagacctatcctctgcctctgctatcatgggtaatcccaaggtgaaggcccatggcaaaaaggtgataactgcctttaacgagggcctgaaaaacctggacaacctcaagggcacctttgccagcctcagtgagctccactgtgacaagctgcatgtggatcctgagaacttcaggctcctaggcaatgcgatcgtgattgtgctgggccaccacctgggcaaggatttcacccctgctgcacaggctgccttccagaaggtggtggctggagtggccactgccctggctcacaagtaccac
   hamster     ctgactgatgctgagaaggcccttgtcactggcctgtggggaaaggtgaacgccgatgcagttggcgctgaggccctgggcaggttgctggttgtctacccttggacccagaggttctttgaacactttggagacctgtctctgccagttgctgtcatgaataacccccaggtgaaggcccatggcaagaaggtgatccactccttcgctgatggcctgaaacacctggacaacctgaagggcgccttttccagcctgagtgagctccactgtgacaagctgcacgtggatcctgagaacttcaagctcctgggcaatatgatcatcattgtgctgatccacgacctgggcaaggacttcactcccagtgcacagtctgcctttcataaggtggtggctggtgtggccaatgccctggctcacaagtaccac
   marsupial   ttgacttctgaggagaagaactgcatcactaccatctggtctaaggtgcaggttgaccagactggtggtgaggcccttggcaggatgctcgttgtctacccctggaccaccaggttttttgggagctttggtgatctgtcctctcctggcgctgtcatgtcaaattctaaggttcaagcccatggtgctaaggtgttgacctccttcggtgaagcagtcaagcatttggacaacctgaagggtacttatgccaagttgagtgagctccactgtgacaagctgcatgtggaccctgagaacttcaagatgctggggaatatcattgtgatctgcctggctgagcactttggcaaggattttactcctgaatgtcaggttgcttggcagaagctcgtggctggagttgcccatgccctggcccacaagtaccac
   duck        tggacagccgaggagaagcagctcatcaccggcctctggggcaaggtcaatgtggccgactgtggagctgaggccctggccaggctgctgatcgtctacccctggacccagaggttcttcgcctccttcgggaacctgtccagccccactgccatccttggcaaccccatggtccgtgcccatggcaagaaagtgctcacctccttcggagatgctgtgaagaacctggacaacatcaagaacaccttcgcccagctgtccgagctgcactgcgacaagctgcacgtggaccctgagaacttcaggctcctgggtgacatcctcatcatcgtcctggccgcccacttcaccaaggatttcactcctgactgccaggccgcctggcagaagctggtccgcgtggtggcccacgctctggcccgcaagtaccac
   chicken     tggactgctgaggagaagcagctcatcaccggcctctggggcaaggtcaatgtggccgaatgtggggccgaagccctggccaggctgctgatcgtctacccctggacccagaggttctttgcgtcctttgggaacctctccagccccactgccatccttggcaaccccatggtccgcgcccacggcaagaaagtgctcacctcctttggggatgctgtgaagaacctggacaacatcaagaacaccttctcccaactgtccgaactgcattgtgacaagctgcatgtggaccccgagaacttcaggctcctgggtgacatcctcatcattgtcctggccgcccacttcagcaaggacttcactcctgaatgccaggctgcctggcagaagctggtccgcgtggtggcccatgccctggctcgcaagtaccac
   xenlaev     tggacagctgaagagaaggccgccatcacttctgtatggcagaaggtcaatgtagaacatgatggccatgatgccctgggcaggctgctgattgtgtacccctggacccagagatacttcagtaactttggaaacctctccaattcagctgctgttgctggaaatgccaaggttcaagcccatggcaagaaggttctttcagctgttggcaatgccattagccatattgacagtgtgaagtcctctctccaacaactcagtaagatccatgccactgaactgtttgtggaccctgagaactttaagcgttttggtggagttctggtcattgtcttgggtgccaaactgggaactgccttcactcctaaagttcaggctgcttgggagaaattcattgcagttttggttgatggtcttagccagggctataac
   xentrop     tggacagctgaagaaaaagcaaccattgcttctgtgtgggggaaagtcgacattgaacaggatggccatgatgcattatccaggctgctggttgtttatccctggactcagaggtacttcagcagttttggaaacctctccaatgtctccgctgtctctggaaatgtcaaggttaaagcccatggaaataaagtcctgtcagctgttggcagtgcaatccagcatctggatgatgtgaagagccaccttaaaggtcttagcaagagccatgctgaggatcttcatgtggatcccgaaaacttcaagcgccttgcggatgttctggtgatcgttctggctgccaaacttggatctgccttcactccccaagtccaagctgtctgggagaagctcaatgcaactctggtggctgctcttagccatggctacttc
   ;
end;

begin mrbayes;
   charset non_coding = 1-90 358-432;
   charset coding     = 91-357;
   partition region = 2:non_coding,coding;
   set partition = region;
   lset applyto=(2) nucmodel=codon;
   prset ratepr=variable;
   mcmc ngen=5000 nchains=1 samplefreq=10;
end;
```

Next, a SLURM batch script must be created to run your job. The first script below shows a MPI parallel script for the above '.nex' input file. Note that the number of processors that can be used by the job is limited to the number of chains in the input file. Here, we have just 2 chains and therefore can only request 2 processors. If you make the mistake of asking for more processors than input file chains, you will get the following error message:

```
      The number of chains must be at least as great
      as the number of processors (in this case 4)
```

Also, to include all required environmental variables and the path to the BEST executable run the modules load command (the modules utility is discussed in detail above):

```
module load best
```

Here is the MPI parallel SLURM batch script for BEST that request 2 processors, one for each chain in the input file:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEST_parallel
#SBATCH --nodes=2
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin BEST Parallel Run ..."
mpirun -np mbbest ./bglobin.nex  > best_mpi.out 2>&1
echo ">>>> End   BEST Parallel Run ..."
```

This script can be dropped into a file (say 'best\_mpi.job) on ANDY and run with:

```
qsub best_mpi.job
```

It should take less five minutes to run and will produce SLURM output and error files beginning with the job name 'BEST\_parallel'. The primary BEAST application results will be written into the user-specified file at the end of the BEST command line after the greater-than sign. Here it is named 'best\_mpi.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes ntasks=1 mem=2880'. The first instructs SLURM to select 2 resource 'chunks' each with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The CUNY HPCC also provides a serial version of BEST. A SLURM batch script for running the serial version of BEST follows:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BEST_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the serial executable to run
echo ">>>> Begin BEST Serial Run ..."
mbbest_serial ./bglobin.nex > best_ser.out 2>&1
echo ">>>> End   BEST Serial Run ..."
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# BOWTIE2 (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-at-the-cuny-hpc-cent">At the CUNY HPCC BOWTIE2 is installed on ANDY and PENZIAS. BOWTIE2 is a parallel threaded code (pthreads) that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the lambda virus test case provided with the BOWTIE2 distribution which can be copied from the local installation directory to your current location as follows:

```
cp /share/apps/bowtie2/default/examples/reference/lambda_virus.fa .
cp /share/apps/bowtie2/default/examples/reads/reads_1.fq . 
```

To include all required environmental variables and the path to the BOWTIE2 executable run the modules load command (the modules utility is discussed in detail above).

```
module load bowtie2
```

Running 'bowtie2' from the interactive prompt without any options will provide a brief description of the form of the command-line arguments and options. Here is SLURM batch script that builds lambda virus the index and aligns the sequences in serial mode:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BOWTIE2_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BOWTIE2 Serial Run ..."
echo ""
echo ">>>> Build Index ..."
bowtie2-build lambda_virus.fa lambda_virus > lambda_virus_index.out 2>&1
echo ""
echo ">>>> Align Sequence ..."
bowtie2 -x lambda_virus -U reads_1.fq -S eg1.sam > lambda_virus_align.out 2>&1
echo ""
echo ">>>> End   BOWTIE2 Serial Run ..."
```

This script can be dropped in to a file (say bowtie.job) and started with the command:

```
qsub bowtie2.job
```

Running the lambda virus test case should take less than 2 minutes and will produce SLURM output and error files beginning with the job name 'BOWTIE2\_serial'. The primary BOWTIE2 application results will be written into the user-specified file at the end of the CUFFLINKS command line after the greater-than sign. Here it is named 'lambda\_virus\_index.out' and 'lambda\_virus\_align.out.' The expression '2&gt;&amp;1' at the end of the command-line combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

To run BOWTIE2 in parallel-threads mode several changes to the script are required. Here is a modified script that shows how to run BOWTIE2 using two threads. ANDY has as many as 8 physical compute cores per compute node and therefore as many as 8 threads might be chosen, but the larger the number of cores-threads requested the longer the job may wait to start as SLURM looks for a compute node with the free resources requested.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BOWTIE2_threads
#SBATCH --nodes=1
#SBATCH --ntasks=2
#SBATCH --mem=5760

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BOWTIE2 Threaded Run ..."
echo ""
echo ">>>> Build Index ..."
bowtie2-build lambda_virus.fa lambda_virus > lambda_virus_index.out 2>&1
echo ""
echo ">>>> Align Sequence ..."
bowtie2 -p 2 -x lambda_virus -U reads_1.fq -S eg1.sam > lambda_virus_align2.out 2>&1
echo ""
echo ">>>> End   BOWTIE2 Threaded Run ..."
```

Notice the difference in the '-l select' line where the resource 'chunk' now includes 2 cores (ntasks=2) and requests twice as much memory as before. Also, notice that the BOWTIE2 command-line now includes the '-p 2' option to run the code with 2 threads working in parallel. Perfectly or 'embarrassingly' parallel workloads can run close to 2, 4, or more times as fast as the same workload in serial mode depending on the number of threads requested, but workloads cannot be counted on to be perfectly parallel.

The speed ups that you observe will typically be less than perfect and diminish as you ask for more cores-threads. Larger jobs will typically scale more efficiently as you add cores-threads, but users should take note of the performance gains that they see as cores-threads are added and select a core-thread count the provides efficient scaling and avoids diminishing returns.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# BROWNIE (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-brownie-is-installed">BROWNIE is installed on the Andy cluster under the directory "/share/apps/brownie/default/bin/". The directory "/share/apps/brownie/default/examples/" contains two example files.

In order to run one of these examples on Andy follow the steps:

1\) create a directory and "cd" there:

```
mkdir ./brownie_test  && cd ./brownie_test
```

2\) Copy the example input deck to the current directory:

```
cp /share/apps/brownie/default/example/ratetest_example.nex ./
```

3\) Create a SLURM submit script. Use your favorite text editor to put the following lines into file "brownie\_serial.job"

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name BROWNIE_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin BROWNIE Serial Run ..."
brownie ./ratetest_example.nex > brownie_ser.out 2>&1
echo ">>>> End   BROWNIE Serial Run ..."
```

4\) Load the BROWNIE module to include all required environmental variables and the path to the BROWNIE executable (the modules utility is discussed in detail above.

```
module load brownie
```

5\) Submit the job to the SLURM queue using:

```
qsub brownie_serial.job
```

Running the rate test case should take less than 15 minutes and will produce SLURM output and error files beginning with the job name 'BROWNIE\_serial'. The primary BROWNIE application results will be written into the user-specified file at the end of the BROWNIE command line after the greater-than sign. Here it is named 'brownie\_ser.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SLURM --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

One can check the status of the job using "qstat" command. Upon successful completion the following files will be generated:

```
BrownieBatch.nex
brownie_test.eXXXX   --- std error from SLURM
BrownieLog.txt
brownie_test.oXXXX  --- std output from SLURM
RatetestOutput.txt --- result returned by Brownie
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# CP2K (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-at-the-cuny-hpc-cent">At the CUNY HPCC CP2K is installed on ANDY. CP2K can be built as a serial, MPI-parallel, or MPI-OpenMP-parallel code. At this time, only the MPI-parallel version of the application has been built for production use at the HPC Center. Further information on CP2K is available at the website here [\[1\]](http://www.cp2k.org/).

Below is an example SLURM script that will run the CP2K H2O-32 test case provided with the CP2K distribution. It can be copied from the local installation directory to your current location as follows:

```
cp /share/apps/cp2k/2.3/tests/SE/regtest-2/H2O-32.inp .
```

To include all required environmental variables and the path to the CP2K executable run the modules load command (the modules utility is discussed in detail above).

```
module load cp2k
```

Here is the example SLURM script:

```
#!/bin/bash
#SBATCH -- partition production
#SBATCH -- job-name CP2K_MPI.test
#SBATCH -- nodes=8
#SBATCH -- ntasks
#SBATCH -- mem=2880


# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin CP2K MPI Parallel Run ..."
mpirun -np 8 cp2k.popt ./H2O-32.inp > H2O-32.out 2>&1
echo ">>>> End   CP2K MPI Parallel Run ..."
```

This script can be dropped in to a file (say cp2k.job) and started with the command:

```
qsub cp2k.job
```

Running the H2O-32 test case should take less than 5 minutes and will produce SLURM output and error files beginning with the job name 'CP2K\_MPI.test'. The CP2K application results will be written into the user-specified file at the end of the CP2K command line after the greater-than sign. Here it is named 'H2O-32.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered above in the SLURM section. The most important lines are the '#SLURM -l select=8:ncpus=1:mem=2880mb' and the '#SLURM -l pack=free' lines. The first instructs SLURM to select 8 resource 'chunks' with 1 processor (core) and 2,880 MBs of memory in each for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# CUFFLINKS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-at-the-cuny-hpc-cent">At the CUNY HPCC CUFFLINKS is installed on ANDY. CUFFLINKS is a parallel threaded code (pthreads) that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the messenger RNA test case provided at the website here [\[1\]](http://cufflinks.cbcb.umd.edu/tutorial.html).

To include all required environmental variables and the path to the CUFFLINKS executable run the modules load command (the modules utility is discussed in detail above):

```
module load cufflinks
```

Running 'cufflinks' from the interactive prompt without any options will provide a brief description of the form of the command-line arguments and options. Here is SLURM batch script that runs this test case in serial mode:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name CLINKS2_Serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Invoke the executable in command-line mode to run
echo ">>>> Begin CLINKS Serial Run ..."
cufflinks ./mRNA_test.sam > mRNA_test.out 2>&1
echo ">>>> End   CLINKS Serial Run ..."
```

This script can be dropped in to a file (say cufflinks.job) and started with the command:

```
qsub cufflinks.job
```

Running the mRNA test case should take less than 1 minute and will produce SLURM output and error files beginning with the job name 'CLINKS\_serial'. The primary CUFFLINKS application results will be written into the user-specified file at the end of the CUFFLINKS command line after the greater-than sign. Here it is named 'mRNA\_test.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SLURM --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

To run CUFFLINKS in parallel-threads mode several changes to the script are required. Here is a modified script that shows how to run CUFFLINKS using two threads. ANDY has as many as 8 physical compute cores per compute node and therefore as many as 8 threads might be chosen, but the larger the number of cores-threads requested the longer the job may wait to start as SLURM looks for a compute node with the free resources requested.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name CLINKS_threads
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=5760

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Invoke the executable in command-line mode to run
echo ">>>> Begin CLINKS Threaded Run ..."
cufflinks -p 2 ./clinks_ptest.sam > clinks_ptest.out 2>&1
echo ">>>> End   CLINKS Threaded Run ..."
```

Notice the difference in the '-l select' line where the resource 'chunk' now includes 2 cores (ncpus=2) and requests twice as much memory as before. Also, notice that the CUFFLINKS command-line now includes the '-p 2' option to run the code with 2 threads working in parallel. Perfectly or 'embarrassingly' parallel workloads can run close to 2, 4, or more times as fast as the same workload in serial mode depending on the number of threads requested, but workloads cannot be counted on to be perfectly parallel.

The speed ups that you observe will typically be less than perfect and diminish as you ask for more cores-threads. Larger jobs will typically scale more efficiently as you add cores-threads, but users should take note of the performance gains that they see as cores-threads are added and select a core-thread count the provides efficient scaling and avoids diminishing returns.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GAMESS-US (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-program-is-insta">The program is installed on PENZIAS. Before run the program please load the proper module file:

```
module load gamess-us
```

Below is a simple test input file named **test\_1.inp** for GAMESS:

```
!  test_1
!    1-A-1 CH2    RHF geometry optimization using GAMESS.
!
!    Although internal coordinates are used (COORD=ZMAT),
!    the optimization is done in Cartesian space (NZVAR=0).
!    This run uses a criterion (OPTTOL) on the gradient
!    which is tighter than default, but very safe.
!
!    This job tests the sp integral module, the RHF module,
!    and the geometry optimization module.
!
!    Using the default search METHOD=STANDARD,
!    FINAL E= -37.2322678015, 8 iters, RMS grad= .0264308
!    FINAL E= -37.2351919062, 7 iters, RMS grad= .0202617
!    FINAL E= -37.2380037239, 7 iters, RMS grad= .0013100
!    FINAL E= -37.2380352917, 8 iters, RMS grad= .0007519
!    FINAL E= -37.2380396312, 5 iters, RMS grad= .0001615
!    FINAL E= -37.2380397693, 5 iters, RMS grad= .0000067
!    FINAL E= -37.2380397698, 3 iters, RMS grad= .0000004
!
 $CONTRL SCFTYP=RHF RUNTYP=OPTIMIZE COORD=ZMT NZVAR=0 $END
 $SYSTEM TIMLIM=1 $END
 $STATPT OPTTOL=1.0E-5  $END
 $BASIS  GBASIS=STO NGAUSS=2 $END
 $GUESS  GUESS=HUCKEL $END
 $DATA
Methylene...1-A-1 state...RHF/STO-2G
Cnv  2

C
H  1 rCH
H  1 rCH  2 aHCH

rCH=1.09
aHCH=110.0
 $END
 
```

The SLURM start up script is given below.

```
#!/bin/bash
# This script runs a 4-cpu GAMESS-US job
# with the 4 cpus packed onto a single compute node 
# to ensure that it will run as an SMP parallel job.
#SBATCH --partition production
#SBATCH --job-name geom
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --mem=7680

# print out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# set the working directory

cd $SLURM_SUBMIT_DIR

# set the name and location of the GAMESS-US scratch directory
# on the compute node.  This is where one needs to go
# to remove left-over script files.
# the following 6 lines set up the scratch directory for large files on each node and separate scratch directory for  small files in user 
# own main directory. Do not modify and/or remove below 6 lines of code. 

export MY_SCRDIR=`whoami;date '+%m.%d.%y_%H:%M:%S'`
export MY_SCRDIR=`echo $MY_SCRDIR | sed -e 's; ;_;'`
export SCR=/state/partition1/gamess_scr/${MY_SCRDIR}_$$
export USERSCR=$PWD/scr
mkdir -p $SCR
mkdir -p $USERSCR
  
# start of the  job. 

gamess 01 test_1.inp -n 4 > test_1.out

# remove the scratch directory before terminating

/bin/rm -rf $SCR

echo 'Job is done!'
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GAUSSIAN09 (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-as-a-commercially-li">As a commercially license application, running Gaussian09 at the CUNY HPCC comes with some restrictions

```


1. A Gaussian09 job can only run in parallel within a single-node at CUNY.   
2. Gaussian09 users must comply with the licensing and citation requirements
   of Gaussian, Inc.  The following citation must be included in publications that
   relied on Gaussian 09 computations at the CUNY HPCC.
  

Gaussian [03,09], Revision C.02, M. J. Frisch, G. W. Trucks, H. B. Schlegel, 
G. E. Scuseria, M. A. Robb, J. R. Cheeseman, J. A. Montgomery, Jr., T. Vreven, 
K. N. Kudin, J. C. Burant, J. M. Millam, S. S. Iyengar, J. Tomasi, V. Barone, 
B. Mennucci, M. Cossi, G. Scalmani, N. Rega, G. A. Petersson, H. Nakatsuji, 
M. Hada, M. Ehara, K. Toyota, R. Fukuda, J. Hasegawa, M. Ishida, T. Nakajima, 
Y. Honda, O. Kitao, H. Nakai, M. Klene, X. Li, J. E. Knox, H. P. Hratchian, 
J. B. Cross, V. Bakken, C. Adamo, J. Jaramillo, R. Gomperts, R. E. Stratmann, 
O. Yazyev, A. J. Austin, R. Cammi, C. Pomelli, J. W. Ochterski, P. Y. Ayala, 
K. Morokuma, G. A. Voth, P. Salvador, J. J. Dannenberg, V. G. Zakrzewski, 
S. Dapprich, A. D. Daniels, M. C. Strain, O. Farkas, D. K. Malick, A.D. Rabuck, 
K. Raghavachari, J. B. Foresman, J. V. Ortiz, Q. Cui, A. G. Baboul, S. Clifford, 
J. Cioslowski, B. B. Stefanov, G. Liu, A. Liashenko, P. Piskorz, I. Komaromi, 
R. L. Martin, D. J. Fox, T. Keith, M. A. Al-Laham, C. Y. Peng, A. Nanayakkara, 
M. Challacombe, P. M. W. Gill, B. Johnson, W. Chen, M. W. Wong, C. Gonzalez, 
and J. A. Pople, Gaussian, Inc., Wallingford CT, 2004.

3. The Gaussian 09 license prohibits the publication of comparative benchmark data.
 
```

A SLURM script must be used in order to run a Gaussian09 job. HPCC main cluster Penzias supports Gaussian jobs demanding up to 64GB of memory. Any job necessitating more than 24GB but less than 64GB must be submitted via partition "partgaularge" and can utilize up to 16 cores. All other jobs can utilize up to 8 cores and must be submitted via partition "production\_gau". The users should place job(s) according to their simulation requirement.

#### **<span class="mw-headline" id="bkmrk-gaussian-scratch-fil-1">Gaussian Scratch File Storage Space</span>**

If a single Gaussian job is using all the cores on a particular node (this is often the case) then that node's entire local scratch space is available to that job, assuming files from previous jobs have been cleaned up. In order to use Gaussian scratch space, the users **must not edit** their SLURM scripts in order to place Gaussian scratch files anywhere other than the directories used in the recommended scripts. In particular, users MUST NOT place their scratch files in their home directories. The home directory is backed up to tape and backing up large integrals files to tape will unnecessarily waste backup tapes and increase backup time-to-completion.

Users are encouraged to ensure that their scratch file data is removed after each completed Gaussian run. The example SLURM script below for submitting Gaussian jobs includes a final line to remove scratch files, but this is not always successful. You may have to manually remove your scratch files. The examples script prints out both the node where the job was run and the unique name of each Gaussian job's scratch directory. Please police your own use of Gaussian scratch space by going to '/scratch/gaussian/g09\_scr' and looking for directories that begin with your name and the date that the directory was created. As a good rule of thumb, you can request 100 GBs per core in the SLURM script, although this is NOT guaranteed to be enough. Finally, Gaussian users should note that Gaussian scratch files are NOT backed up. Users are encouraged to save their checkpoint files in their SLURM 'working directories' and copy them on '/global/u/username' if they will be needed for future work as they are temporary. From this location, they will be backed up.

NOTE: If other users have failed to clean up after themselves, and you request the maximum amount of Gaussian scratch space, it may not be available and your job may sit in the queue.

#### **<span class="mw-headline" id="bkmrk-gaussian-slurm-job-s-1">Gaussian SLURM Job Submission</span>**

As noted, Gaussian parallel jobs are **limited by the number of cores on a single compute node.** Eight (8) is the maximum processor (core) count on small nodes and the memory per core is limited to 2880 MB/core. On large nodes the maximum processor cores is 16 and the memory per core is 3688MB/core. Here, we provide a simple Gaussian input file (a Hartree-Fock geometry optimization of methane), and the companion SLURM batch submit script that would allocate 4 cores on a single compute node and 400 GBytes of compute-node-local storage.

The Gaussian 09 methane input deck is:

```
%chk=methane.chk
%mem=8GB
%nproc=4
# hf/6-31g

Title Card Required

0 1
 C                  0.80597015   -1.20895521    0.00000000
 H                  1.16262458   -2.21776521    0.00000000
 H                  1.16264299   -0.70455702    0.87365150
 H                  1.16264299   -0.70455702   -0.87365150
 H                -0.26402985   -1.20894202    0.00000000

END
```

Notice that we have explicitly requested 8 GBytes of memory with the '%mem=8GB' directive. The input file also instructs Gaussian to use 4 processors which will ensure that all of Gaussian's parallel executables (i.e. links) will run in SMP mode with 4 cores. For this simple methane geometry optimization, requesting these resources (both here and in the SLURM script) is a bit extravagant, but both the input file and script can be adapted to other more substantial molecular systems running more accurate calculations. User's can make pro-rated adjustments to the resources requested in BOTH the Gaussian input deck and SLURM submit script to run jobs on 2, 4, or 8 cores. Here is the Gaussian SLURM script named **g09.job** which is intended to be used on G09:

```
#!/bin/csh
# This script runs a '''small memory''' 4-cpu (core) Gaussian 09 job
# with the 4 cpus packed onto a single compute node 
# and max 3GB per core
#SBATCH --partition production_gau
#SBATCH --job-name methane_opt
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --mem=11520mb
 
# print out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# set the G09 root directory

setenv g09root /share/apps/gaussian/g09_E01

# set the name and location of the G09 scratch directory
# on the compute node.  This is where one needs to go
# to remove left-over script files.

setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

setenv GAUSS_SCRDIR  /state/partition1/gaussian/g09_scr/${MY_SCRDIR}_$$
mkdir -p $GAUSS_SCRDIR

echo $GAUSS_SCRDIR

# run the G09 setup script

source $g09root/g09/bsd/g09.login

# users must explicitly change to their working directory with SLURM

cd $SLURM_SUBMIT_DIR

# start the G09 job

$g09root/g09/g09 methane.input

# remove the scratch directory before terminating

/bin/rm -r $GAUSS_SCRDIR

echo 'Job is done!'
```

To run the job, one must use the standard SLURM job submission command as follows:

```
<p>sbatch g09.job
</p>
```

Users may choose to run jobs with fewer processors (cores, cpus) and smaller storage space requests than this sample job. This includes one processor jobs and others using a fraction of a compute node (2 processors, 4 processors, 6 processors). On a busy system, these smaller jobs may start sooner that those requesting a full 8 processors packed on a single node. Selecting the most efficient combination of processors, memory, and storage will ensure that resources will not be wasted and will be available to allocate to the next job submitted. For large jobs (up to 64GB) the users may use the following script named **g09\_large.job**:

```
#!/bin/csh
# This script runs a '''small memory''' 16-cpu (core) Gaussian 09 job
# with the 4 cpus packed onto a single compute node 
# and max 4GB per core
#SBATCH --partition partgaularge
#SBATCH --job-name methane_opt
#SBATCH --nodes=1
#SBATCH --ntasks=16
#SBATCH --mem=58980mb
 
# print out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# set the G09 root directory

setenv g09root /share/apps/gaussian/g09_E01

# set the name and location of the G09 scratch directory
# on the compute node.  This is where one needs to go
# to remove left-over script files.

setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

setenv GAUSS_SCRDIR /state/partition1/gaussian/g09_scr/${MY_SCRDIR}_$$ 
mkdir -p $GAUSS_SCRDIR

echo $GAUSS_SCRDIR

# run the G09 setup script

source $g09root/g09/bsd/g09.login

# users must explicitly change to their working directory with SLURM

cd $SLURM_SUBMIT_DIR

# start the G09 job

$g09root/g09/g09 methane.input

# remove the scratch directory before terminating

/bin/rm -r $GAUSS_SCRDIR

echo 'Job is done!'
```

To run the job, one must use the the following SLURM job submission command:

```
<p>sbatch g09_large.job
</p>
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [NWChem and Gaussian](https://wiki.csi.cuny.edu/books/software-applications/page/nwchem-and-gaussian)

# LAMMPS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-complete-lammps-">The complete LAMMPS package is installed on PENZIAS server. Please always use only name lammps not a full path as on andy. Because the later is GPU enabled computer the code is compiled as **double-double** i.e double precision on force and velocity. The abundance of GPU in PENZIAS makes the use of OpenMP obsolete, because usually the better performance results are obtained by oversubscribing Kepler GPUs rather than by using OpenMP style. That is why the OpenMP package along with KIM package is not installed on PENZIAS. As a rule of thumb, it is recommended to use 2-4 MPI threads per Kepler GPU in order to gain maximum performance. Current packages installed on PENZIAS are: ASPHERE, BODY, CLASS2, COLLOID, DIPOLE, FLD, GPU, GRANULAR, KSPACE, MANYBODY, MC, MEAM, MISC, MOLECULE, OPT, PERI, POEMS, REAX, REPLICA, RIGID, SHOCK, SRD, VORONOI, XTC. In addition the following USER packages are also installed: ATC, AWPMD, CG-CMM, COLVARS, CUDA, EFF, LB, MISC, MOLFILE, PHONON, REAXC and SPH.

Here is a LAMMPS input deck (in.lj) from the LAMMPS benchmark suite.

```
 3d Lennard-Jones melt

variable        x index 1
variable        y index 1
variable        z index 1

variable        xx equal 20*$x
variable        yy equal 20*$y
variable        zz equal 20*$z

units           lj
atom_style      atomic

lattice         fcc 0.8442
region          box block 0 ${xx} 0 ${yy} 0 ${zz}
create_box      1 box
create_atoms    1 box
mass            1 1.0

velocity        all create 1.44 87287 loop geom

pair_style      lj/cut 2.5
pair_coeff      1 1 1.0 1.0 2.5

neighbor        0.3 bin
neigh_modify    delay 0 every 20 check no

fix             1 all nve

run             100
```

The script below utilizes version of LAMMPS on 8 CPU processor cores. Before use it however load module lammps with the command

```
module load lammps
```

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name LAMMPS_test
#SBATCH --nodes=8
#SBATCH --ntasks


# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SBATCH Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin LAMMPS MPI Parallel Run ..."
echo ""
mpirun -np 8 lmp_ompi < in.lj > out_file
echo ""
echo ">>>> End   LAMMPS MPI Parallel Run ..."
```

On PENZIAS the GPU mode is the default unless otherwise turned off with the command-line switch '-cuda off'. In order to run on GPU you must also modify the SLURM script by editing the '-l select' line to request one GPU for every CPU allocated by SLURM. In other words the '-l select' line for a GPU run would look like this:

```
#SBATCH --nodes=8
#SBATCH --ntasks
#SBATCH --gres=gpu:1 
```

Other changes to the input file and/or the command line. are also need to run on the GPUs. Details regarding command-line switches are available here [\[1\]](http://lammps.sandia.gov/doc/Section_start.html#start_7). Here is a simple listing:

```
-c or -cuda
-e or -echo
-i or -in
-h or -help
-l or -log
-p or -partition
-pl or -plog
-ps or -pscreen
-r or -reorder
-sc or -screen
-sf or -suffix
-v or -var
```

Other requirements for running in GPU mode (or to use any of the various user-packages) can be found here [\[2\]](http://lammps.sandia.gov/doc/Section_accelerate.html) and in the LAMMPS User Manual mentioned above. The 'package gpu' and 'package cuda' commands the those of primary interest.

At the end note that users interested a single-precision version of LAMMPS should contact the HPC Center through 'hpchelp@csi.cuny.edu'.

The installation on the Cray XE6 (SALK) does not include the GPU parallel models because the CUNY HPCC Cray does not have GPU hardware.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [LAMMPS](https://wiki.csi.cuny.edu/books/software-applications/page/lammps)

# DL POLY (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-dl_poly-is-installed">DL\_POLY is installed on ANDY under the user applications directory

```
/share/apps/dlpoly
```

The default is currently version 2.20, but users can select the more current version by referencing the 3.10 directory explicitly in their scripts.

To run DL\_POLY the user needs to provide a set of several files. Those that are **required** include:

1\) The CONTROL file, which indicates to DL\_POLY what kind of simulation you want to run, how much data you want to gather, and for how long you want the simulation to run.

2\) The CONFIG file, which contains the atom positions, and, depending on how the file was created (e.g. whether this is a configuration created from ‘scratch’ or the end point of another run), the atom's velocities and forces.

3\) The FIELD file, which specifies the nature of the intermolecular interactions, the molecular topology, and the atomic properties, such as charge and mass.

Sometimes you may require a fourth file: TABLE, which contains short-ranged potential and force arrays for functional forms not available within DL\_POLY (usually because they are too complex e.g. spline potentials) and/or a fifth file: TABEAM, which contains metal potential arrays for non- analytic or too complex functional forms and/or a sixth file: REFERENCE, which is similar to the CONFIG file and contains the ”perfect” crystalline structure of the system.

Several directories are included in the installation tree. The primary executable for DL\_POLY and a number of other supporting scripts are located in the directory:

```
/share/apps/dlpoly/default/bin
```

A collection of example input files that you may use as test cases are located in the directory:

```
/share/apps/dlpoly/default/data
```

The user and installation guide in PDF format are located in the directory:

```
/share/apps/dlpoly/default/man
```

Support utilities and programs are found in:

```
/share/apps/dlpoly/default/utility
/share/apps/dlpoly/default/public
```

To test DL\_POLY, copy the files in

```
/share/apps/dlpoly/default/data/TEST10/LF
```

to a working directory (e.g. dlpoly) in your $HOME directory and run the SLURM script provided below using the SLURM submission command:

```
qsub dlpoly.job
```

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name DLPOLY_mpi
#SBATCH --nodes=8
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLUM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin DLPOLY MPI Run ..."
mpirun -np 8 dlpoly > dlpoly_mpi.out 2>&1
echo ">>>> Begin DLPOLY MPI Run ..."
```

Please refer to the DL\_POLY manual for more detailed information on DL\_POLY and to the general SLURM section in this Wiki for more details on the SLURM queuing system. There are a number of tutorials and further information to be found online by Googling.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GARLI (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-at-the-cuny-hpc-cent">At the CUNY HPCC, GARLI is installed on on ANDY. GARLI has both a serial and MPI parallel version that takes its input from a simple text configuration file ('garli.conf') and a '.nex' sequence file ('rana.nex' for instance). Like other applications on ANDY, GARLI path and environment variables are controlled using the modules utility. To include all required environmental variables and the path to the GARLI executable run the modules load command (the modules utility is discussed in detail above):

```
module load garli
```

Below is an example SLURM script that will run the frog ('rana.nex') test case provided with the distribution archive (/share/apps/garli/default/examples/basic). Users can copy the necessary files from this location.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name GARLI_mpi
#SBATCH --nodes=2
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin GARLI MPI Run ..."
mpirun -np 2 -machinefile $SLURM_NODEFILE garli_mpi > garli_mpi.out 2>&1
echo ">>>> Begin GARLI MPI Run ..."
```

This script can be dropped in to a file (say garli\_mpi.job) and started with the command:

```
qsub garli_mpi.job
```

Running the 'rana.nex' test case should take less than 15 minutes and will produce SLURM output and error files beginning with the job name 'GARLI\_mpi'. The primary GARLI application results will be written into the user-specified file at the end of the GARLI command line after the greater-than sign. Here it is named 'garli\_mpi.out'. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered in the SLURM section above. The most important lines here are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GAUSS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-a-slurm-submit-scrip">A SLURM submit script for GAUSS that runs on 1 processor (core) follows:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name GAUSS_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname
echo ""

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

#
# Point to the serial executable to run
#
echo ">>>> Begin GAUSS Serial Run ..."
# Static executable
/share/apps/gauss/default/tgauss.static < ./pxyz.e > pxyz.out
#
# Dynamic executable
#/share/apps/gauss/default/tgauss < ./quantile.e > gauss.out
#
echo ">>>> End   GAUSS Serial Run ..."
```

Here, the file pxyz.e was taken from the GAUSS examples in /share/apps/gauss/examples. Upon successful completion, a run file "graphic.tkf" should be created in working directory.

pxyz.e:

```
library pgraph;
graphset;

let v = 100 100 640 480 0 0 1 6 15 0 0 2 2;
wxyz = WinOpenPQG( v, "XYZ Plot", "XYZ" );
call WinSetActive( wxyz );

begwind;
makewind(9,6.855,0,0,1);
makewind(9/2.9,6.855/2.9,0,0,0);
makewind(9/2.9,6.855/2.9,0,3.8,0);
_psurf = 0;
title("\202XYZ Curve - \201Toroidal Spiral");
fonts("simplex complex");
xlabel("X");
ylabel("Y");
zlabel("Z");

setwind(1);
t = seqa(0,.0157,401);
a = .2; b=.8; c=20;
x = 3*((a*sin(c*t)+b) .* cos(t));
y = 3*((a*sin(c*t)+b) .* sin(t));
z = a*cos(c*t);
margin(.5,0,0,0);
ztics(-.3,.3,.3,0);
_pcolor = 10;
view(-3,-2,4);
volume(1,1,.7);
_plwidth = 5;
xyz(x,y,z);

nextwind;
margin(0,0,0,0);
title("");
x = x .* (sin(z)/10);
_paxes = 0;
_pframe = 0;
_pbox = 13;
_pcolor = 11;
_plwidth = 0;
view(15,2,10);
xyz(x,y,z);

nextwind;
_pcolor = 9;
a = .4; b=.4; c=15;
x = 3*((a*sin(c*t)+b) .* cos(t));
y = 3*((a*sin(c*t)+b) .* sin(t));
z = a*cos(c*t);
volume(1,1,.4);
xyz(x,y,z);

endwind;

call WinSetActive( 1 );
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GENOMEPOP2 (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-cuny-hpc-center-">The CUNY HPCC has installed GenomePop2 (/share/apps/genomepop) on ANDY. GenomePop2 is a serial code that reads all of its input parameters from a file in the user's working directory called 'GP2Input.txt'. How to set up such a file is explained in the How-To section at the GenomePop2 web-site here [\[1\]](http://webs.uvigo.es/acraaj/GP2howto.htm). The following SLURM batch script runs the third example given in the How-To which defines different SNPs ancestral alleles in different populations.

**NOTE:** This program has also been installed and can be found at '/share/apps/genomepop/1.0.6/bin/genomepop1'

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name GENPOP2_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the serial executable to run
echo ">>>> Begin GENPOP2 Serial Run ..."
echo ""
/share/apps/genomepop/default/bin/genomepop2
echo ""
echo ">>>> End   GENPOP2 Serial Run ..."
```

This script can be dropped in to a file (say genomepop2.job) and started with the command:

```
qsub genomepop2.job
```

This test case should take less than a minute to run and will produce SLURM output and error files beginning with the job name 'GENPOP2\_serial'. Details on the meaning of the SLURM script are covered above in the SLURM section. The most important lines are the '#SBATCH --nodes=1:ntasks=1'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 1,920 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run the job will be printed in the SLURM output file by the 'hostname' command.

While it is not visible in this SLURM script, your customized 'GP2Input.txt' file *MUST* be present in the working directory for the job. When the job completes, GenomePop2 will have created a subdirectory called 'GP2\_Results' with the results files in it. One could easily adapt this script to run GenomePop version 1.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# GPAW (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-complete-gpaw-docume">Complete GPAW documentation can be found at [https://wiki.fysik.dtu.dk/gpaw/documentation/manual.html](https://wiki.fysik.dtu.dk/gpaw/documentation/manual.html)

GPAW is currently available on Penzias HPC system.

Two examples of running GPAW computation on Penzias are provided below.

**1. Single-core job.**

\-- Copy single-core example to your current directory with

```
cp /share/apps/gpaw/default/test/gpaw_serial_example.py ./
```

\-- Prepare the job script:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name gpaw_ser
#SBATCH --nodes=
#SBATCH --ntasks

echo "Starting..."
cd $SLURM_SUBMIT_DIR
python gpaw_serial_example.py >  out.log
echo "Done..."
```

\-- Load the gpaw module

```
module load gpaw
```

\-- Submit the job.

  
**2. Parallel (MPI multithreaded) job**

\-- Copy parallel example to your current directory with

```
cp /share/apps/gpaw/default/test/gpaw_parallel_example.py ./
```

\-- Prepare the job script:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name gpaw_par
#SBATCH --nodes=
#SBATCH --ntasks

echo "Starting..."
cd $SBATCH_SUBMIT_DIR
python gpaw_parallel_example.py >  out.log
echo "Done..."
```

\-- Load the gpaw module (unless already loaded)

```
module load gpaw
```

\-- Submit the job.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# IMA2 (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-ima2-is-a-serial-pro">IMa2 is a serial program that is currently installed on ANDY at the CUNY HPCC. It requires an input file and potentially several additional data files to run. Here we provide a script that will run the test input program supplied by the authors, 'ima2\_testinput.u'. Completing this run may also require the prior file ('ima2\_priorfile\_4pops.txt') and the nested models file ('ima2\_all\_nested\_models\_2\_pops.txt'). All these files can be copied out of the IMa2 installation examples directory, as follows:

```
cp /share/apps/ima2/default/examples/ima2_testinput.u .
```

A working SLURM batch script that will complete an IMa2 run is presented here:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name IMa2_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin IMa2 Serial Run ..."
echo ""
/share/apps/ima2/default/bin/IMa2 -i ima2_testinput.u -o ima2_testoutput.out -q2 -m1 -t3 -b10000 -l100
echo ""
echo ">>>> End   IMa2 Serial Run ..."
```

This script can be dropped into a file (say 'ima2\_serial.job), and run with:

```
qsub ima2_serial.job
```

It should take less than a few minutes to run and will produce SLURM output and error files beginning with the job name 'IMA2\_serial'. It also produces IMa2's own output files. Details on the meaning for the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=1920'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 1,920 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

Please take note of the IMa2 options used here. Details on each can be found in the IMa2 manual referenced above.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# LSDYNA (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-both-32-bit-and-64-b">Both 32-bit and 64-bit executables in both serial and parallel versions are provided. The MPI parallel versions use OpenMPI as their MPI parallel library, the HPC Center's default version of MPI. The serial executable can also be run in OpenMP (not to be confused with OpenMPI) node- local SMP-parallel mode. The names of the executable files in the '/share/apps/lsdyna/default/bin' directory are:

```
ls-dyna_32.exe  ls-dyna_64.exe  ls-dyna-mpp32.exe  ls-dyna_mpp64.exe
```

Those with the string 'mpp' in the name are the MPI distributed parallel versions of the code. The integer (32 or 64) designates the precision of the build. In the examples below, depending on the type of script being submitted (serial or parallel, 32- or 64-bit), a different executable will be chosen. The scaling properties of LS-DYNA in parallel mode are limited, and users should not carelessly submit parallel jobs requesting large numbers of cores without understanding how their job will scale. A large 128 core job that runs only 5% faster than a 64 core job is a waste of resources. Please examine the scaling properties of your particular job before scaling up.

As is the case with most long running applications run at the CUNY HPCC, whether parallel or serial, LS-DYNA jobs are run using a SLURM batch job submission script. Here we provide some example scripts for both serial and parallel execution.

  
Note that before using this script you will need to setup the environment for LS-DYNA. On Andy "[modules](/bookstack/books/getting-started/page/what-is-cuny-hpcc "Main Page")" is used to manage environments. Setting up LS-DYNA is done with

```
module load ls-dyna
```

First an example serial execution script (called say 'airbag.job') run at 64-bits using the LS-DYNA 'airbag' example ('airbag.deplo.k') from the examples directory above as the input.

```
#!/bin/bash
#SBATCH --partition production_qdr
#SBATCH --job-name ls-dyna_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin LS-DYNA Serial Run ..."
ls-dyna_64.exe i=airbag.deploy.k memory=2000m
echo ">>>> End   LS-DYNA Serial Run ..."
```

Details on the SLURM options at the head of the this script file are discussion below, but in summary '-q production\_qdr' selects the routing queue into which the job will be placed, '-N ls-dyna\_serial' sets this job's name, 'nodes=1 ntasks=1 mem=2880' nodes-requests 1 SLURM resource chunk that includes 1 cpu and 2880 MBytes of memory, allows SLURM to put the resources needed for the job any where on the ANDY system.

The LS-DYNA command line sets the input file to be used and the amount of in-core memory that is available to the job. Note that this executable does NOT include the string 'mpp' which means that it is not the MPI executable. Users can copy the 'airbag.deploy.k' file from the examples directory and cut-and-paste this script to run this job. It takes a relatively sort time to run. The SLURM command for submitting the job would be:

```
qsub airbag.job
```

Here is a SLURM script that runs a 16 processor (core) MPI job. This script is set to run the TopCrunch '3cars' benchmark which is relatively long-running using MPI on 16 processors. There are a few important differences in this script.

```
#!/bin/bash
#SBATCH --partition production_qdr
#SBATCH --job name ls-dyna_mpi
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin LS-DYNA MPI Parallel Run ..."
mpirun -np 16 ls-dyna_mpp64.exe i=3cars_shell2_150ms.k ntasks=16 memory=2000m
echo ">>>> End   LS-DYNA MPI Parallel Run ..."
```

Focusing on the difference in this script relative to the serial SLURM script above. First, the '-l select' line requests not 1 SLURM resource chunk, but 16 each with 1 cpu (core) and 2880 MBytes of memory. This provides the necessary resources to run our 16 processor MPI-parallel job. Next, the LS-DYNA command line is different. The LS-DYNA MPI-parallel executable is used (ls-dyna\_mpp64.exe), and it is run with the help of the OpenMPI job submission command 'mpirun' which sets the number of processors and the location of those processors on the system. The actually LS-DYNA key words also add the string 'ncpu=16' to instruct LS-DYNA that this is to be a parallel run.

Running in parallel on 16 cores in 64-bit mode on ANDY, the '3cars' case takes about 9181 seconds of elapsed time to complete. If the user would like to run this job, they can grab the input files out of the directory '/share/apps/lsdyna/default/examples/3cars' on ANDY and use the above script.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# MATHEMATICA (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-modes-of-operation-i">#### **<span class="mw-headline" id="bkmrk-modes-of-operation-i-2">Modes of Operation in Mathematica</span>**

Mathematica can be run locally on an office workstation, directly on a server or cluster from its head node, or across the network between an office-local client and a remote server (a cluster for instance). It can be run serially or in parallel; its licenses can be provided locally or via a network-resident license server; and it can be run in command-line or GUI mode. The details of installing and running Mathematica on a local office workstation are left to the user. Those modes of operation important to the use of CUNY HPCC resources are discussed here.

#### **<span class="mw-headline" id="bkmrk-selecting-between-gu-1">Selecting Between GUI and Command-Line Mode</span>**

The use of command-line mode or GUI mode is determined by the Mathematica command selected. To use the Mathematica GUI, enter the following command to the user prompt:

```
$mathematica
```

To use Mathematica Command Line Interface (CLI), enter:

```
$math
```

More details on these and other Mathematica commands is available through *man command* as in:

```
$man mathematica
$man math
$man mcc
```

The lines above provide documentation on the GUI, CLI, and Mathematica C-compiler, respectively.

#### **<span class="mw-headline" id="bkmrk-using-mathematica-on-1">Using Mathematica on KARLE</span>**

Karle is a standalone, four socket, 4 x 6 = 24 core head-like node and is highly capable system. Karle's 24 Intel E740-based cores run at 2.4 GHz. Karle has a total of 96 Gbytes of memory or 4 Gbytes per core. Users can run GUI applications on Karle following [this approach](/bookstack/books/getting-started/page/x11-forwarding) or they can prefer CLI. Selecting Between GUI and Command-Line Mode is described [here](#bkmrk-selecting-between-gu-1).

#### **<span class="mw-headline" id="bkmrk-serial-job-exmaple-1">Serial Job Exmaple</span>**

If mathematica was started in interactive mode using GUI/CLI users can enter mathematica commands as they would normally do:

```
$ module load mathematica
$ math
Mathematica 10.0 for Linux x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.

In[1]:= Print["Hello World!"]
Hello World!

In[2]:= Table[Random[],{i,1,10}]

Out[2]= {0.22979, 0.168789, 0.257107, 0.724029, 0.466558, 0.588178, 0.186516, 
 
>    0.957024, 0.950642, 0.938009}

In[3] = Exit[]
$
```

Alternatively one may put these commands into a text file:

```
$ cat test.nb
Print["Hello World!"]
Table[Random[],{i,1,10}]
In[3] = Exit[]

$
```

and run it using:

```
math < test.nb
```

the following output will be received:

```
Mathematica 10.0 for Linux x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.

In[1]:= Hello World!

In[2]:= 
Out[2]= {0.67778, 0.737257, 0.862751, 0.623122, 0.253662, 0.541513, 0.776872, 
 
>    0.424682, 0.934039, 0.190007}

In[3]:= 
```

#### **<span class="mw-headline" id="bkmrk-parallel-job-example-1">Parallel Job Example</span>**

To run parallel computations in Mathematica on Karle first start required amount kernels (CUNY HPCC license allows up to 16 kernels) and then run actual computation. Consider the following example:

```
$ cat parallel.nb 

LaunchKernels[8]

With[{base = 10^1000, r = 10^10}, WaitAll[Table[ParallelSubmit[
     While[! PrimeQ[p = RandomInteger[{base, base + r}]], Null]; 
     p], {$KernelCount}]] - base]
$
$
$ math < parallel.nb 
Mathematica 10.0 for Linux x86 (64-bit)
Copyright 1988-2014 Wolfram Research, Inc.

In[1]:= 
In[1]:= 
Out[1]= {KernelObject[1, local], KernelObject[2, local], 
 
>    KernelObject[3, local], KernelObject[4, local], KernelObject[5, local], 
 
>    KernelObject[6, local], KernelObject[7, local], KernelObject[8, local]}

In[2]:= 
In[2]:= 
Out[2]= {4474664203, 8096247063, 9746330049, 4733134789, 2879419863, 
 
>    377023287, 7848087693, 8139999951}

In[3]:= 
$
```

Statement

```
LaunchKernels[8]
```

 starts 8 local kernels. Rest on the notebook runs parallel evaluation on those 8 kernels.

#### **<span class="mw-headline" id="bkmrk-submitting-batch-job-1">Submitting Batch Jobs to the CUNY ANDY Cluster</span>**

Currently, there is no simple and secure method of submitting Mathematica jobs from a remote (user local or desktop) CUNY installation of Mathematica to ANDY. This is something that is being pursued. In the mean time, both serial and parallel Mathematica jobs can be submitted from ANDY's head node by constructing a standard batch job. To ease the process of debugging such work, we recommend that user's test their Mathematica command sequences locally on smaller, but similar cases before submitting thier work to the cluster. The standard batch submission process is simple to set up and imposes no burden on ANDY's head node.

#### **<span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-serial-batch-jobs-ru-1">Serial Batch Jobs Run with 'qsub' Using a Mathematica Command (Text) File</span>**

In the following example, a batch job is created around a locally pre-tested Mathematica command sequence that is then submitted to ANDY batch queueing system using the *qsub* command. The simple Mathematica command sequence shown here computes a matrix of integrals and prints out every element of that matrix. Any valid sequence of Mathematica commands provided in a note book file, whether tested on an office Mathematica installation or on the cluster head node itself, could be used in this example.

When working remotely from an office or a classroom, a user would validate their command sequence on their local workstation (via a smaller local test run), modify it incrementally to make use of the additional resources available on ANDY, and then copy, paste, and save the Mathematica command sequence in a notebook file (file.nb) on ANDY. This last step would be done through a text editor like 'vi' or 'emacs' from a cluster terminal window. From a Windows desktop, the free, secure Windows-to-Linux terminal emulation package, PuTTY could be used. From a Linux desktop, connecting with secure shell 'ssh' would be the right approach.

Below, a note book file called "test\_run.nb" does a serial (single worker-kernel) integral calculation (that might have been tested on the user's office Mathematica installation) has been saved on ANDY from a 'vi' session. Its contents are listed here:

```
$
$ cat test_run.nb

Print ["Beginning Integral Calculations"]; p=5;
Timing[matr = Table[Integrate[x^(j+i),{x,0,1}], {i,1,p-1}, {j,1,p-1}]//N];
For[i=1, i<p, i++, For[j=1, j<p, j++, Print[matr[[i]][[j]]]]];
Print ["Finished!"];
Quit[];

$
```

As a serial Mathematica job, this job executes on just one core of just one of ANDY's compute nodes. The simple batch script offered to 'qsub' to run this job (we will call it serial\_run.math here) is listed below. This script is written in the SLURM Pro form, which became the workload manager on ANDY on 11-18-09. For details on SLURM Pro see the section on using the SLURM Pro workload manager elsewhere in the CUNY HPCC Wiki.

```
$
$cat serial_run.math

#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name mmat8_serial1 
#SBATCH --nodes=1
#SBATCH --ntasks=1

cd $SLURM_SUBMIT_DIR

math -run <test_run.nb > output

$
```

This script runs on a single processor (core) within a single ANDY compute node invoking a single Mathematica kernel instance. The '-N mmat8\_serial1' option names the job 'mmat8\_serial1' The job is directed to ANDY's *production* routing queue, which reads the script's resource request information, and places it in the appropriate *execution* queue. The 'nodes=1 ntasks=1 mem=1920' option requests one resource 'chunk' composed of 1 processor (core) and 1920 Mbytes of memory. The option instructs SLURM Pro to place the job where it wishes, which will be on the compute node with the lowest load average. The '-V' option ensures that the current local Unix environment is pushed out to the compute node that runs the job. Because this is a batch script with no connection to the terminal, the CLI version of the Mathematica command, 'math', is used.

Save this script in a file for your future use, for example in "serial\_run.math". With few modifications, it can be used to run most serial Mathematica batch jobs on ANDY.

To run this job script use the command:

```
 qsub serial_run.math 
```

Like any other batch jobs submitted using 'qsub', you can check the status of your job by running the command 'qstat' or 'qstat -f JID'. Upon completion, the output generated by the job will be written to the file 'output'.

Here is the output from this sample serial batch job:

```
Mathematica 8.0 for Linux x86 (64-bit)
Copyright 1988-2011 Wolfram Research, Inc.

In[1]:= Beginning Integral Calculations

In[2]:= 
In[3]:= 0.333333
0.25
0.2
0.166667
0.25
0.2
0.166667
0.142857
0.2
0.166667
0.142857
0.125
0.166667
0.142857
0.125
0.111111

In[4]:= Finished!

In[5]:= 
```

#### **<span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-smp-parallel-batch-j-1">SMP-Parallel Batch Jobs Run with 'qsub' Using a Mathematica Command (Text) File</span>**

Mathematica provides some easy-to-use methods to perform parallel computations in so-called SMP regime. This mode of operations allow users to use cores that are available within one compute node. KARLE as a standalone computational node has 24 cores and each of ANDY's nodes has 8 cores. Consider the following mathematica notebook:

```


$
$ cat test_smp.nb
(* perform some computations in serial mode *)
Timing[Table[{i,Plus @@ (#[[2]] &) /@ FactorInteger[(10^i - 1)/9]}, {i, 60, 70}]]

(* initialize 4 MathKernels*)
Needs["SubKernels`LocalKernels`"]
(* object 'mykernels' contains information about 4 computational instances *)
mykernels = LaunchKernels[LocalMachine[4]];

(* Let every kernel report it's existence *)
ParallelEvaluate[$MachineName, mykernels]

(* Perform the same computation as before but now using ParallelTable using those 4 kernels*)
Timing[ParallelTable[{i,Plus @@ (#[[2]] &) /@ FactorInteger[(10^i - 1)/9]}, {i, 60, 70}]]

Exit[]
$
```

This job first performs some computations using only one core. After that a stack of 4 computational kernels is created by Mathematica and similar computations are repeated in parallel. SLURM script that sends this job into the queue is:

```
$
$cat parallel_run.math

#SBATCH --partition production
#SBATCH --job-name mmat_smp 
#SBATCH --nodes=4
#SBATCH --ntasks=1

cd $SLURM_SUBMIT_DIR

math -run <test_smp.nb > output
$
```

There are two important things to note here: 1) "#SBATCH -l place=pack" -- user must request SLURM to pack allocated resources onto a single physical compute node. 2) "#SBATCH --nodes=4 ntasks=1" -- user requests 4 cores from SLURM (4 'chunks' with ntasks=1 each). This is important because in the mathematica notebook 4 computational kernels were created.

As before, the '-V' option ensures that the environment local to the head node is pushed out to the compute node that runs the job. The CLI version of the Mathematica command, 'math', is used again here.

As any other SLURM job, this smp-parallel Mathematica job is submitted to the SLURM queue using "qsub parallel\_run.math" command.

Result of this SMP-parallel batch job will be stored in the file 'output':

```
Mathematica 8.0 for Linux x86 (64-bit)
Copyright 1988-2011 Wolfram Research, Inc.

In[1]:= 
Out[1]= {8.14851, {{60, 20}, {61, 7}, {62, 5}, {63, 14}, {64, 15}, {65, 7}, 
 
>     {66, 15}, {67, 3}, {68, 10}, {69, 6}, {70, 12}}}

In[2]:= 
In[2]:= 
In[2]:= 
In[2]:= 
In[3]:= 
In[4]:= 
Out[4]= {r1i0n8, r1i0n8, r1i0n8, r1i0n8}

In[5]:= 
In[5]:= 
Out[5]= {0.544033, {{60, 20}, {61, 7}, {62, 5}, {63, 14}, {64, 15}, {65, 7}, 
 
>     {66, 15}, {67, 3}, {68, 10}, {69, 6}, {70, 12}}}

In[6]:= 
In[6]:= 
In[6]:=
```

It can be seen in the output that computations were first done in serial mode on one core. Line "Out\[4\]" is the output from "ParallelEvaluate\[$MachineName, mykernels\]". Obviously all 4 computational kernels evaluated the same $MachineName (as they were started on the same host). "Out\[5\]" is original computation performed in parallel on 4 MathKernels.

#### **<span class="mw-headline" id="bkmrk-submitting-batch-job-3">Submitting Batch Jobs from Remote Locations to Clusters</span>**

A method for doing this is being developed and tested.

For more information on Mathematica:

<dl><dd>- Online documentation is available through the Help menu within the Mathematica notebook front end.
- The Mathematica Book, 5th Edition (Wolfram Media, Inc., 2003) by Stephen Wolfram.
- The Mathematica Book is available online.
- Additional Mathematica documentation is available online.
- Information on the Parallel Computing Toolkit is available online.
- Getting Started with Mathematica (Wolfram Research, Inc., 2004).
- The Wolfram web site [http://www.wolfram.com](http://www.wolfram.com)

</dd></dl></div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# MRBAYES (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-mrbayes-is-installed">MrBayes is installed on ANDY and PENZIAS (GPU enabled version). In order to set-up the environment required to run MrBayes corresponding module needs to be loaded first. This is done with

```
module load mrbayes
```

Running MrBayes is a two-step process that first requires the creation of the NEXUS-formatted MrBayes input file and then the SLURM Pro script to run it. MrBayes can be run in serial, MPI-parallel, or GPU-accelerated mode (on PENZIAS only).

Here is NEXUS input file (**primates.nex**) which includes both a DATA block and a MRBAYES block. The MRBAYES block simply contains the MrBayes runtime commands terminated with a semi-colon. The example below shows 12 mitochondrial DNA sequences of primates and yields at least 1,000 samples from the posterior probability distribution. If you need more detail on generating the NEXUS file or on MrBayes in general, please check the MrBayes Wiki here [\[1\]](http://mrbayes.sourceforge.net)and the online manual here [on-line manual](http://mrbayes.scs.fsu.edu/wiki/index.php/Main_Page).

```
#NEXUS

begin data;
dimensions ntax=12 nchar=898;
format datatype=dna interleave=no gap=-;
matrix
Tarsius_syrichta	AAGTTTCATTGGAGCCACCACTCTTATAATTGCCCATGGCCTCACCTCCTCCCTATTATTTTGCCTAGCAAATACAAACTACGAACGAGTCCACAGTCGAACAATAGCACTAGCCCGTGGCCTTCAAACCCTATTACCTCTTGCAGCAACATGATGACTCCTCGCCAGCTTAACCAACCTGGCCCTTCCCCCAACAATTAATTTAATCGGTGAACTGTCCGTAATAATAGCAGCATTTTCATGGTCACACCTAACTATTATCTTAGTAGGCCTTAACACCCTTATCACCGCCCTATATTCCCTATATATACTAATCATAACTCAACGAGGAAAATACACATATCATATCAACAATATCATGCCCCCTTTCACCCGAGAAAATACATTAATAATCATACACCTATTTCCCTTAATCCTACTATCTACCAACCCCAAAGTAATTATAGGAACCATGTACTGTAAATATAGTTTAAACAAAACATTAGATTGTGAGTCTAATAATAGAAGCCCAAAGATTTCTTATTTACCAAGAAAGTA-TGCAAGAACTGCTAACTCATGCCTCCATATATAACAATGTGGCTTTCTT-ACTTTTAAAGGATAGAAGTAATCCATCGGTCTTAGGAACCGAAAA-ATTGGTGCAACTCCAAATAAAAGTAATAAATTTATTTTCATCCTCCATTTTACTATCACTTACACTCTTAATTACCCCATTTATTATTACAACAACTAAAAAATATGAAACACATGCATACCCTTACTACGTAAAAAACTCTATCGCCTGCGCATTTATAACAAGCCTAGTCCCAATGCTCATATTTCTATACACAAATCAAGAAATAATCATTTCCAACTGACATTGAATAACGATTCATACTATCAAATTATGCCTAAGCTT
Lemur_catta		AAGCTTCATAGGAGCAACCATTCTAATAATCGCACATGGCCTTACATCATCCATATTATTCTGTCTAGCCAACTCTAACTACGAACGAATCCATAGCCGTACAATACTACTAGCACGAGGGATCCAAACCATTCTCCCTCTTATAGCCACCTGATGACTACTCGCCAGCCTAACTAACCTAGCCCTACCCACCTCTATCAATTTAATTGGCGAACTATTCGTCACTATAGCATCCTTCTCATGATCAAACATTACAATTATCTTAATAGGCTTAAATATGCTCATCACCGCTCTCTATTCCCTCTATATATTAACTACTACACAACGAGGAAAACTCACATATCATTCGCACAACCTAAACCCATCCTTTACACGAGAAAACACCCTTATATCCATACACATACTCCCCCTTCTCCTATTTACCTTAAACCCCAAAATTATTCTAGGACCCACGTACTGTAAATATAGTTTAAA-AAAACACTAGATTGTGAATCCAGAAATAGAAGCTCAAAC-CTTCTTATTTACCGAGAAAGTAATGTATGAACTGCTAACTCTGCACTCCGTATATAAAAATACGGCTATCTCAACTTTTAAAGGATAGAAGTAATCCATTGGCCTTAGGAGCCAAAAA-ATTGGTGCAACTCCAAATAAAAGTAATAAATCTATTATCCTCTTTCACCCTTGTCACACTGATTATCCTAACTTTACCTATCATTATAAACGTTACAAACATATACAAAAACTACCCCTATGCACCATACGTAAAATCTTCTATTGCATGTGCCTTCATCACTAGCCTCATCCCAACTATATTATTTATCTCCTCAGGACAAGAAACAATCATTTCCAACTGACATTGAATAACAATCCAAACCCTAAAACTATCTATTAGCTT
Homo_sapiens		AAGCTTCACCGGCGCAGTCATTCTCATAATCGCCCACGGGCTTACATCCTCATTACTATTCTGCCTAGCAAACTCAAACTACGAACGCACTCACAGTCGCATCATAATCCTCTCTCAAGGACTTCAAACTCTACTCCCACTAATAGCTTTTTGATGACTTCTAGCAAGCCTCGCTAACCTCGCCTTACCCCCCACTATTAACCTACTGGGAGAACTCTCTGTGCTAGTAACCACGTTCTCCTGATCAAATATCACTCTCCTACTTACAGGACTCAACATACTAGTCACAGCCCTATACTCCCTCTACATATTTACCACAACACAATGGGGCTCACTCACCCACCACATTAACAACATAAAACCCTCATTCACACGAGAAAACACCCTCATGTTCATACACCTATCCCCCATTCTCCTCCTATCCCTCAACCCCGACATCATTACCGGGTTTTCCTCTTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGACAACAGAGGCTTA-CGACCCCTTATTTACCGAGAAAGCT-CACAAGAACTGCTAACTCATGCCCCCATGTCTAACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGCCCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACCATGCACACTACTATAACCACCCTAACCCTGACTTCCCTAATTCCCCCCATCCTTACCACCCTCGTTAACCCTAACAAAAAAAACTCATACCCCCATTATGTAAAATCCATTGTCGCATCCACCTTTATTATCAGTCTCTTCCCCACAACAATATTCATGTGCCTAGACCAAGAAGTTATTATCTCGAACTGACACTGAGCCACAACCCAAACAACCCAGCTCTCCCTAAGCTT
Pan	  		AAGCTTCACCGGCGCAATTATCCTCATAATCGCCCACGGACTTACATCCTCATTATTATTCTGCCTAGCAAACTCAAATTATGAACGCACCCACAGTCGCATCATAATTCTCTCCCAAGGACTTCAAACTCTACTCCCACTAATAGCCTTTTGATGACTCCTAGCAAGCCTCGCTAACCTCGCCCTACCCCCTACCATTAATCTCCTAGGGGAACTCTCCGTGCTAGTAACCTCATTCTCCTGATCAAATACCACTCTCCTACTCACAGGATTCAACATACTAATCACAGCCCTGTACTCCCTCTACATGTTTACCACAACACAATGAGGCTCACTCACCCACCACATTAATAACATAAAGCCCTCATTCACACGAGAAAATACTCTCATATTTTTACACCTATCCCCCATCCTCCTTCTATCCCTCAATCCTGATATCATCACTGGATTCACCTCCTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGACAACAGAGGCTCA-CGACCCCTTATTTACCGAGAAAGCT-TATAAGAACTGCTAATTCATATCCCCATGCCTGACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCCATCCGTTGGTCTTAGGCCCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACCATGTATACTACCATAACCACCTTAACCCTAACTCCCTTAATTCTCCCCATCCTCACCACCCTCATTAACCCTAACAAAAAAAACTCATATCCCCATTATGTGAAATCCATTATCGCGTCCACCTTTATCATTAGCCTTTTCCCCACAACAATATTCATATGCCTAGACCAAGAAGCTATTATCTCAAACTGGCACTGAGCAACAACCCAAACAACCCAGCTCTCCCTAAGCTT
Gorilla   		AAGCTTCACCGGCGCAGTTGTTCTTATAATTGCCCACGGACTTACATCATCATTATTATTCTGCCTAGCAAACTCAAACTACGAACGAACCCACAGCCGCATCATAATTCTCTCTCAAGGACTCCAAACCCTACTCCCACTAATAGCCCTTTGATGACTTCTGGCAAGCCTCGCCAACCTCGCCTTACCCCCCACCATTAACCTACTAGGAGAGCTCTCCGTACTAGTAACCACATTCTCCTGATCAAACACCACCCTTTTACTTACAGGATCTAACATACTAATTACAGCCCTGTACTCCCTTTATATATTTACCACAACACAATGAGGCCCACTCACACACCACATCACCAACATAAAACCCTCATTTACACGAGAAAACATCCTCATATTCATGCACCTATCCCCCATCCTCCTCCTATCCCTCAACCCCGATATTATCACCGGGTTCACCTCCTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGATAACAGAGGCTCA-CAACCCCTTATTTACCGAGAAAGCT-CGTAAGAGCTGCTAACTCATACCCCCGTGCTTGACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGACCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACTATGTACGCTACCATAACCACCTTAGCCCTAACTTCCTTAATTCCCCCTATCCTTACCACCTTCATCAATCCTAACAAAAAAAGCTCATACCCCCATTACGTAAAATCTATCGTCGCATCCACCTTTATCATCAGCCTCTTCCCCACAACAATATTTCTATGCCTAGACCAAGAAGCTATTATCTCAAGCTGACACTGAGCAACAACCCAAACAATTCAACTCTCCCTAAGCTT
Pongo     		AAGCTTCACCGGCGCAACCACCCTCATGATTGCCCATGGACTCACATCCTCCCTACTGTTCTGCCTAGCAAACTCAAACTACGAACGAACCCACAGCCGCATCATAATCCTCTCTCAAGGCCTTCAAACTCTACTCCCCCTAATAGCCCTCTGATGACTTCTAGCAAGCCTCACTAACCTTGCCCTACCACCCACCATCAACCTTCTAGGAGAACTCTCCGTACTAATAGCCATATTCTCTTGATCTAACATCACCATCCTACTAACAGGACTCAACATACTAATCACAACCCTATACTCTCTCTATATATTCACCACAACACAACGAGGTACACCCACACACCACATCAACAACATAAAACCTTCTTTCACACGCGAAAATACCCTCATGCTCATACACCTATCCCCCATCCTCCTCTTATCCCTCAACCCCAGCATCATCGCTGGGTTCGCCTACTGTAAATATAGTTTAACCAAAACATTAGATTGTGAATCTAATAATAGGGCCCCA-CAACCCCTTATTTACCGAGAAAGCT-CACAAGAACTGCTAACTCTCACT-CCATGTGTGACAACATGGCTTTCTCAGCTTTTAAAGGATAACAGCTATCCCTTGGTCTTAGGATCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAACAGCCATGTTTACCACCATAACTGCCCTCACCTTAACTTCCCTAATCCCCCCCATTACCGCTACCCTCATTAACCCCAACAAAAAAAACCCATACCCCCACTATGTAAAAACGGCCATCGCATCCGCCTTTACTATCAGCCTTATCCCAACAACAATATTTATCTGCCTAGGACAAGAAACCATCGTCACAAACTGATGCTGAACAACCACCCAGACACTACAACTCTCACTAAGCTT
Hylobates 		AAGCTTTACAGGTGCAACCGTCCTCATAATCGCCCACGGACTAACCTCTTCCCTGCTATTCTGCCTTGCAAACTCAAACTACGAACGAACTCACAGCCGCATCATAATCCTATCTCGAGGGCTCCAAGCCTTACTCCCACTGATAGCCTTCTGATGACTCGCAGCAAGCCTCGCTAACCTCGCCCTACCCCCCACTATTAACCTCCTAGGTGAACTCTTCGTACTAATGGCCTCCTTCTCCTGGGCAAACACTACTATTACACTCACCGGGCTCAACGTACTAATCACGGCCCTATACTCCCTTTACATATTTATCATAACACAACGAGGCACACTTACACACCACATTAAAAACATAAAACCCTCACTCACACGAGAAAACATATTAATACTTATGCACCTCTTCCCCCTCCTCCTCCTAACCCTCAACCCTAACATCATTACTGGCTTTACTCCCTGTAAACATAGTTTAATCAAAACATTAGATTGTGAATCTAACAATAGAGGCTCG-AAACCTCTTGCTTACCGAGAAAGCC-CACAAGAACTGCTAACTCACTATCCCATGTATGACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGACCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAGCAATGTACACCACCATAGCCATTCTAACGCTAACCTCCCTAATTCCCCCCATTACAGCCACCCTTATTAACCCCAATAAAAAGAACTTATACCCGCACTACGTAAAAATGACCATTGCCTCTACCTTTATAATCAGCCTATTTCCCACAATAATATTCATGTGCACAGACCAAGAAACCATTATTTCAAACTGACACTGAACTGCAACCCAAACGCTAGAACTCTCCCTAAGCTT
Macaca_fuscata		AAGCTTTTCCGGCGCAACCATCCTTATGATCGCTCACGGACTCACCTCTTCCATATATTTCTGCCTAGCCAATTCAAACTATGAACGCACTCACAACCGTACCATACTACTGTCCCGAGGACTTCAAATCCTACTTCCACTAACAGCCTTTTGATGATTAACAGCAAGCCTTACTAACCTTGCCCTACCCCCCACTATCAATCTACTAGGTGAACTCTTTGTAATCGCAACCTCATTCTCCTGATCCCATATCACCATTATGCTAACAGGACTTAACATATTAATTACGGCCCTCTACTCTCTCCACATATTCACTACAACACAACGAGGAACACTCACACATCACATAATCAACATAAAGCCCCCCTTCACACGAGAAAACACATTAATATTCATACACCTCGCTCCAATTATCCTTCTATCCCTCAACCCCAACATCATCCTGGGGTTTACCTCCTGTAGATATAGTTTAACTAAAACACTAGATTGTGAATCTAACCATAGAGACTCA-CCACCTCTTATTTACCGAGAAAACT-CGCAAGGACTGCTAACCCATGTACCCGTACCTAAAATTACGGTTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGACCTTAGGAGTCAAAAACATTGGTGCAACTCCAAATAAAAGTAATAATCATGCACACCCCCATCATTATAACAACCCTTATCTCCCTAACTCTCCCAATTTTTGCCACCCTCATCAACCCTTACAAAAAACGTCCATACCCAGATTACGTAAAAACAACCGTAATATATGCTTTCATCATCAGCCTCCCCTCAACAACTTTATTCATCTTCTCAAACCAAGAAACAACCATTTGGAGCTGACATTGAATAATGACCCAAACACTAGACCTAACGCTAAGCTT
M_mulatta		AAGCTTTTCTGGCGCAACCATCCTCATGATTGCTCACGGACTCACCTCTTCCATATATTTCTGCCTAGCCAATTCAAACTATGAACGCACTCACAACCGTACCATACTACTGTCCCGGGGACTTCAAATCCTACTTCCACTAACAGCTTTCTGATGATTAACAGCAAGCCTTACTAACCTTGCCCTACCCCCCACTATCAACCTACTAGGTGAACTCTTTGTAATCGCGACCTCATTCTCCTGGTCCCATATCACCATTATATTAACAGGATTTAACATACTAATTACGGCCCTCTACTCCCTCCACATATTCACCACAACACAACGAGGAGCACTCACACATCACATAATCAACATAAAACCCCCCTTCACACGAGAAAACATATTAATATTCATACACCTCGCTCCAATCATCCTCCTATCTCTCAACCCCAACATCATCCTGGGGTTTACTTCCTGTAGATATAGTTTAACTAAAACATTAGATTGTGAATCTAACCATAGAGACTTA-CCACCTCTTATTTACCGAGAAAACT-CGCGAGGACTGCTAACCCATGTATCCGTACCTAAAATTACGGTTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGACCTTAGGAGTCAAAAATATTGGTGCAACTCCAAATAAAAGTAATAATCATGCACACCCCTATCATAATAACAACCCTTATCTCCCTAACTCTCCCAATTTTTGCCACCCTCATCAACCCTTACAAAAAACGTCCATACCCAGATTACGTAAAAACAACCGTAATATATGCTTTCATCATCAGCCTCCCCTCAACAACTTTATTCATCTTCTCAAACCAAGAAACAACCATTTGAAGCTGACATTGAATAATAACCCAAACACTAGACCTAACACTAAGCTT
M_fascicularis		AAGCTTCTCCGGCGCAACCACCCTTATAATCGCCCACGGGCTCACCTCTTCCATGTATTTCTGCTTGGCCAATTCAAACTATGAGCGCACTCATAACCGTACCATACTACTATCCCGAGGACTTCAAATTCTACTTCCATTGACAGCCTTCTGATGACTCACAGCAAGCCTTACTAACCTTGCCCTACCCCCCACTATTAATCTACTAGGCGAACTCTTTGTAATCACAACTTCATTTTCCTGATCCCATATCACCATTGTGTTAACGGGCCTTAATATACTAATCACAGCCCTCTACTCTCTCCACATGTTCATTACAGTACAACGAGGAACACTCACACACCACATAATCAATATAAAACCCCCCTTCACACGAGAAAACATATTAATATTCATACACCTCGCTCCAATTATCCTTCTATCTCTCAACCCCAACATCATCCTGGGGTTTACCTCCTGTAAATATAGTTTAACTAAAACATTAGATTGTGAATCTAACTATAGAGGCCTA-CCACTTCTTATTTACCGAGAAAACT-CGCAAGGACTGCTAATCCATGCCTCCGTACTTAAAACTACGGTTTCCTCAACTTTTAAAGGATAACAGCTATCCATTGACCTTAGGAGTCAAAAACATTGGTGCAACTCCAAATAAAAGTAATAATCATGCACACCCCCATCATAATAACAACCCTCATCTCCCTGACCCTTCCAATTTTTGCCACCCTCACCAACCCCTATAAAAAACGTTCATACCCAGACTACGTAAAAACAACCGTAATATATGCTTTTATTACCAGTCTCCCCTCAACAACCCTATTCATCCTCTCAAACCAAGAAACAACCATTTGGAGTTGACATTGAATAACAACCCAAACATTAGACCTAACACTAAGCTT
M_sylvanus		AAGCTTCTCCGGTGCAACTATCCTTATAGTTGCCCATGGACTCACCTCTTCCATATACTTCTGCTTGGCCAACTCAAACTACGAACGCACCCACAGCCGCATCATACTACTATCCCGAGGACTCCAAATCCTACTCCCACTAACAGCCTTCTGATGATTCACAGCAAGCCTTACTAATCTTGCTCTACCCTCCACTATTAATCTACTGGGCGAACTCTTCGTAATCGCAACCTCATTTTCCTGATCCCACATCACCATCATACTAACAGGACTGAACATACTAATTACAGCCCTCTACTCTCTTCACATATTCACCACAACACAACGAGGAGCGCTCACACACCACATAATTAACATAAAACCACCTTTCACACGAGAAAACATATTAATACTCATACACCTCGCTCCAATTATTCTTCTATCTCTTAACCCCAACATCATTCTAGGATTTACTTCCTGTAAATATAGTTTAATTAAAACATTAGACTGTGAATCTAACTATAGAAGCTTA-CCACTTCTTATTTACCGAGAAAACT-TGCAAGGACCGCTAATCCACACCTCCGTACTTAAAACTACGGTTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGCCTTAGGAGTCAAAAATATTGGTGCAACTCCAAATAAAAGTAATAATCATGTATACCCCCATCATAATAACAACTCTCATCTCCCTAACTCTTCCAATTTTCGCTACCCTTATCAACCCCAACAAAAAACACCTATATCCAAACTACGTAAAAACAGCCGTAATATATGCTTTCATTACCAGCCTCTCTTCAACAACTTTATATATATTCTTAAACCAAGAAACAATCATCTGAAGCTGGCACTGAATAATAACCCAAACACTAAGCCTAACATTAAGCTT
Saimiri_sciureus	AAGCTTCACCGGCGCAATGATCCTAATAATCGCTCACGGGTTTACTTCGTCTATGCTATTCTGCCTAGCAAACTCAAATTACGAACGAATTCACAGCCGAACAATAACATTTACTCGAGGGCTCCAAACACTATTCCCGCTTATAGGCCTCTGATGACTCCTAGCAAATCTCGCTAACCTCGCCCTACCCACAGCTATTAATCTAGTAGGAGAATTACTCACAATCGTATCTTCCTTCTCTTGATCCAACTTTACTATTATATTCACAGGACTTAATATACTAATTACAGCACTCTACTCACTTCATATGTATGCCTCTACACAGCGAGGTCCACTTACATACAGCACCAGCAATATAAAACCAATATTTACACGAGAAAATACGCTAATATTTATACATATAACACCAATCCTCCTCCTTACCTTGAGCCCCAAGGTAATTATAGGACCCTCACCTTGTAATTATAGTTTAGCTAAAACATTAGATTGTGAATCTAATAATAGAAGAATA-TAACTTCTTAATTACCGAGAAAGTG-CGCAAGAACTGCTAATTCATGCTCCCAAGACTAACAACTTGGCTTCCTCAACTTTTAAAGGATAGTAGTTATCCATTGGTCTTAGGAGCCAAAAACATTGGTGCAACTCCAAATAAAAGTAATA---ATACACTTCTCCATCACTCTAATAACACTAATTAGCCTACTAGCGCCAATCCTAGCTACCCTCATTAACCCTAACAAAAGCACACTATACCCGTACTACGTAAAACTAGCCATCATCTACGCCCTCATTACCAGTACCTTATCTATAATATTCTTTATCCTTACAGGCCAAGAATCAATAATTTCAAACTGACACTGAATAACTATCCAAACCATCAAACTATCCCTAAGCTT
;
end;

begin mrbayes; 
    set autoclose=yes nowarn=yes; 
    lset nst=6 rates=gamma; 
    mcmc nruns=1 ngen=10000 samplefreq=10; 
end;
```

A SLURM Pro batch script must be created to run your job. The first script below shows a MPI parallel run of the above '.nex' input file. This script selects 4 processors (cores) and allows SLURM to put them on any compute node. Note, that when running any parallel program one must be cognizant of the scaling properties of its parallel algorithm; in other words, how much does a given job's running time drop as one doubles the number of processors used. All parallel programs arrive at point of diminishing returns that depend on the algorithm, size of the problem being solved, and the performance features of the system that it is being run on. We might have chosen to run this job on 8, 16, or 32 processors (cores), but would only do so if the improvement in performance scales. Improvements of less than 25% after a doubling are an indication of a reasonable maximum number of processors under those particular set of circumstances

Here is the 4 processor MPI parallel SLURM batch script:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name MRBAYES_mpi
#SBATCH --nodes=4
#SBATCH --ntasks=1
#SBATCH --mem=1920

# Find out name of master execution host (compute node)
echo -n ">>>> SBATCH Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin MRBAYES MPI Run ..."
echo ""
mpirun -np 4 /share/apps/mrbayes/default/bin/mb ./primates.nex > primates.out 2>&1
echo ""
echo ">>>> End   MRBAYES MPI Run ..."
```

This script can be dropped into a file (say 'mrbayes\_mpi.job) on ANDY and run with:

```
qsub mrbayes_mpi.job
```

This test case should take no more than a couple of minutes to run and will produce SLURM output and error files beginning with the job name 'MRBAYES\_mpi'. Other MrBayes specific outputs will also be produced. Details on the meaning of the SLURM script are covered above in this Wiki's SLURM section. The most important lines are '#SBATCH --nodes=4 ntasks=1 mem=1920'. The first instructs SLURM to select 4 resource 'chunks' each with 1 processor (core) and 1,920 MBs of memory in it for the job (on ANDY as much as 2,880 MBs might have been selected, on PENZIAS this number is 3860mb). The second line instructs SLURM to place this job wherever the least used resources are found (i.e. freely). The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command. As this is a parallel job, other compute nodes may also be called into service to complete this job.

The CUNY HPCC also provides a serial version of MrBayes. A SLURM batch script for running the serial version is easy to prepare from the above by making a few changes. Here is a listing of the differences between the above MPI script and the serial script:

```
3,4c3,4
< #SBATCH --job-name MRBAYES_mpi
< #SBATCH --nodes=4
  #SBATCH --ntasks=1
  #SBATCH --mem=2880
---
> #SBATCH --job-name MRBAYES_serial
> #SBATCH --nodes=1
  #SBATCH --ntasks=1
16c16
< echo ">>>> Begin MRBAYES MPI Run ..."
---
> echo ">>>> Begin MRBAYES Serial Run ..."
18c18
< mpirun -np 4 /share/apps/mrbayes/default/bin/mb ./primates.nex
---
> /share/apps/mrbayes/default/bin/mb-serial ./primates.nex
20c20
< echo ">>>> End   MRBAYES MPI Run ..."
---
> echo ">>>> End   MRBAYES Serial Run ..."
```

Finally, it is possible to run MrBayes in GPU-accelerated mode on PENZIAS (only). This is an experimental version of the code and users are cautioned to check their results and note their performance to be sure they are getting accurate answers in shorter time periods. Nothing is worse in HPC than going in the wrong direction, more slowly (this principle applies to NYC Taxi rides as well). Here is yet another script that will run the GPU-accelerated version of MrBayes (again, on PENZIAS only).

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name MRBAYES_gpu
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --gres=gpu:1 
#SBATCH --accel=kepler

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the GPU parallel executable to run
echo ">>>> Begin MRBAYES GPU Run ..."
echo ""
/share/apps/mrbayes/default/bin/mb-gpu ./primates.nex
echo ""
echo ">>>> End   MRBAYES GPU Run ..."
```

There are several differences worth pointing out. First, he resource request line '-l select' request more that just a processor and some memory, but also a GPU (ntasks=1) and a particular flavor of GPU (accel=kepler). Second the the name of the executable, is now 'mb-gpu', which selects the GPU-accelerated version of the code.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# NWCHEM (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-nwchem-has-been-deve">NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. On both servers the module for NWChem must be loaded "prior" to run a job with the command:

```
module load nwchem
```

The above command will load the "default" version of NWChem.

#### **<span class="mw-headline" id="bkmrk-performance-consider-1">Performance Considerations</span>**

The NWChem is GPU enabled meaning it supports GPU so the package can be used both in CPU or in "hybrid" CPU-GPU mode. ANDY lacks GPU so the CPU only mode is possible there. On PENZIAS however, NWChem can be used on both CPU or CPU-GPU mode. On other hand, because ANDY has slower interconnect is recommend to use **1** core per chunk when run NWChem jobs on ANDY. The interconnect at PENZIAS allows the full utilization of the nodes i.e. the maximum number of cores per chunk is **12**. However users must consult the wiki pages [http://wiki.csi.cuny.edu/cunyhpc/index.php/Running\_jobs](/bookstack/books/slurm-job-scheduling/page/job-management-and-troubleshooting) for discussion about how to run a job on a cluster. Keeping in mind the differences in interconnect and lack of GPU on ANDY it is **strongly** recommend that users utilize NWChem on PENZIAS in CPU-GPU mode.

#### **<span class="mw-headline" id="bkmrk-nwchem-input-files-1">NWChem input files</span>**

The ability to run and performance of a run depends very much on a proper settings of start up directives in NWChem input files. For instance one particular directive - **memory** - allows the user to specify the amount of memory **PER PROCESSOR CORE** that NWChem can use for the job in. If this directive is omitted in input file, the NWChem will use the default setting which currently is only **400MB**. In NWChem there are three distinct regions of memory: **stack, heap, and global**. On PENZIAS (and on all distributed memory systems) all 3 types of memory compete for the same pool i.e. the memory has total size of **stack+heap+global.** The default partition is 25% heap, 25% stack, and 50% global, thus 4096mb will be partitioned as 1024 MB for stack, 1024 MB for heap and 2048 MB for global. In the following example first 2 lines are equivalent and they will allocate **total available** per core memory on PENZIAS node and will use default partitioning. The third line does the same but it will change the partition by allocating 75% of the total memory as a global one.

```
memory 3686 mb
memory total 3686 mb
memory total 3686 global 2764 mb
```

NWChem recognizes the following memory units:

```
real 
double
integer
byte
kb (kilobyte)
mb (megabyte)
mw (megawords - 8 bytes)
```

For details on the content and structure of each section of the NWChem input deck users should consult the NWChem Users Manual at [http://www.emsl.pnl.gov/capabilities/computing/nwchem/docs/usermanual.pdf](http://www.emsl.pnl.gov/capabilities/computing/nwchem/docs/usermanual.pdf). A sample NWChem input file which does SCF calculation on water with 6-31g\* basis set is shown here:

```
echo
start water2
title "an example simple water calculation"

# The memory options are system specific see below 

memory total   .... mb global .... mb

geometry units au
 O 0       0              0
 H 0       1.430    -1.107
 H 0     -1.430    -1.107
end

basis
  O library 6-31g*
  H library 6-31g*
end

task scf gradient

```

If the run has to be done on parallel and on PENZIAS, the standard (and maximum) per-core quantity of memory available on a node along with a portion of it used by NWChem Global Arrays computing model should not exceed 3686mb per core. Thus the memory line for parallel runs on PENZIAS should look like:

```
memory total 3686 mb global 2764 mb
```

on ANDY it would be 'memory total 2880 mb global 2160 mb'. <a class="new" title="Single core runs (page does not exist)">Single core runs</a> on PENZIAS require different settings.

#### **<span class="mw-headline" id="bkmrk-using-nwchem-in-cpu--1">Using NWChem in CPU only mode</span>**

A SLURM batch submit script to run above example on **16 processors** (cores) on PENZIAS. Note that on PENZIAS the main que is called production. In this script the maximal values for memory (total and global) are added to above example automatically. However these values may not be optimal for a particular molecular system, thus users should compare the obtained performance among several memory set ups in order to find the optimal values for a particular molecular system.

```
 
#!/bin/csh
#SBATCH --partition production
#SBATCH --job-name watertest
#SBATCH --nodes=16
#SBATCH --ntasks=1

echo "This job's process 0 host is: " `hostname`; echo ""

# Must explicitly change to your working directory under SLURM

cd $SLURM_SUBMIT_DIR

# Set up NWCHEM environment, permanent, and scratch directory
# Do not delete/modify the following 4 lines.

setenv NWCHEM_ROOT /share/apps/nwchem/6.5
setenv PERMANENT_DIR $SLURM_SUBMIT_DIR
setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

#Edit following 2 lines to match your input and output file.

set INPUT_FILE="h2o.nw"
set  OUTPUT_FILE="h2o.out"

# Edit following 2 lines in order to adjust the optimal memory for your system
set MEMORY_GLBL = 2764
set MEMORY_TTL = 3686

# Do not edit the following 7 lines
set RUN_FILE = "runner.nw"
cp ${INPUT_FILE} ${RUN_FILE}
setenv SCRATCH_DIR /state/partition1/nw6.3_scr/${MY_SCRDIR}_$$
mkdir -p $SCRATCH_DIR
printf '%s\t%s\n' 'scratch_dir'   $SCRATCH_DIR >> runner.nw
printf '%s\t%s\n' 'permanent_dir' $PERMANENT_DIR >> runner.nw
printf '%s%s%s%s%s%s\n' 'memory   ' 'total   ' $MEMORY_TTL '  global   ' $MEMORY_GLBL '  mb' >> runner.nw

# Starts NWCHEM job. Adjust '''only''' the number of CPU requested. 
# Do not remove/modify $RUN_FILE or $OUTPUT_FILE

mpirun -np 16 nwchem ${RUN_FILE} > ${OUTPUT_FILE}

# Clean up scratch and temporary files. Do  not remove following 2 lines. 

/bin/rm -r $SCRATCH_DIR
/bin/rm -r $RUN_FILE

echo 'Job is done!'
```

**Please consult the sections on the SLURM Pro Batch scheduling system for information on how to modify this** sample deck for different processor counts and about the meaning of each of the SLURM script lines.

On PENZIAS in order to utilize all available memory and depend on concrete studied system sometimes is better to use the below SLURM construction.

```
#SBATCH --nodes=8
#SBATCH --ntasks=2
#SBATCH --mem=3686
```

In order to run on 128 cores on PENZIAS the line should look like:

```
#SBATCH --nodes=16
#SBATCH --ntasks=8
#SBATCH --mem=3686
```

Please do not forget to adjust memory requirements in above SLURM script file according to your particular molecular system requirements. In particular that means to adjust values of MEMORY\_TTL and MEMORY\_GLBL variables. Remember that performance depends on how memory is allocated as well so try few allocation schemes before pick the best one for your job. For instance for some small molecular systems sometimes it is possible to gain performance by reducing memory and keep job in a single node.

The optimal number of cores also depend on studied molecular system. There is no such thing like "one fits all". Users can find the optimal number of processor cores by starting with some small number i.e. 4 or 8 and double the number of cores for each consecutive run. Repeat the process till no significant improvement in performance is recorded in 2 follow up runs. Further increase of cpu cores should be avoided.

#### **<span class="mw-headline" id="bkmrk-final-remarks-1">Final Remarks</span>**

To get their NWChem jobs to run each user will need to **copy or create a symbolic link**to a ".nwchemrc" file in their $HOME directory to the site specific "default.nwchemrc" file located in:

```
/share/apps/nwchem/default/data/
```

Symbolic link can be created with a command:

```
ln -s /share/apps/nwchem/default/data/default.nwchemrc $HOME/.nwchemrc
```

Users may also check the [Q/A](/bookstack/books/frequently-asked-questions/page/accounts-and-projects "Q/A") section of this document for common mistakes and their solution.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [NWChem and Gaussian](https://wiki.csi.cuny.edu/books/software-applications/page/nwchem-and-gaussian)

# PARGAP (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-since-knowledge-of-m">Since knowledge of MPI is not required for use of this software, we now refer to the package as simply ParGAP. For more information visit the author's ParGAP home page at: [http://www.ccs.neu.edu/home/gene/pargap.html](http://www.ccs.neu.edu/home/gene/pargap.html). The package is installed on **penzias** cluster. Users must load module **pargap**.

```


module load pargap

```

The example below named **parlist.g** is a parallelization of a list.

```


#WARNING:  Read this with Read(), _not_ ParRead()

#Environment: None
#TaskInput:   elt, where elt is an element of argument, list
#TaskOutput:  fnc(elt), where fnc is argument
#Task:        Compute fnc(elt) from elt [ Hence, DoTask = fnc ]
#UpdateEnvironment:  None

ParInstallTOPCGlobalFunction( "MyParList",
function( list, fnc )
  local result, iter;
  result := [];
  iter := Iterator(list);
  MasterSlave( function() if IsDoneIterator(iter) then return NOTASK;
                          else return NextIterator(iter); fi; end,
               fnc,
               function(input,output) result[input] := output;
                                      return NO_ACTION; end,
               Error
             );
  return result;
end );

ParInstallTOPCGlobalFunction( "MyParListWithAglom",
function( list, fnc, aglomCount )
  local result, iter;
  result := [];
  iter := Iterator(list);
  MasterSlave( function() if IsDoneIterator(iter) then return NOTASK;
                          else return NextIterator(iter); fi; end,
               fnc,
               function(input,output)
                 local i;
                 for i in [1..Length(input)] do
                   result[input[i]] := output[i];
                 od;
                 return NO_ACTION;
               end,
               Error,  # Never called, can specify anything
               aglomCount
             );
  return result;
end );
```

The SLURM script to run this program on penzias is as follows:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name par_list 
#SBATCH --nodes=1
#SBATCH --ntasks=4

cd $SLURM_SUBMIT_DIR

mpirun -np 4  pargap ./parlist.g >> parlist_out

 
```

This will create a master and 3 slave processes . Further information and detailed manual how to program with parallel GAP can be found in [http://www.gap-system.org/Manuals/pkg/pargap/doc/manual.pdf](http://www.gap-system.org/Manuals/pkg/pargap/doc/manual.pdf)

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# PHRAP-PHRED (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-phrap-is-a-program-f">PHRAP is a program for shotgun sequence assembly, but it can also be used for small sequence assemblies. Its key features include its use of data quality information, both direct (from phred trace analysis) and indirect (from pairwise read comparisons), to delineate the likely accurate base calls in each read. This helps discriminate repeats. It permits the use of the full reads in assembly, and allows a highly accurate consensus sequence to be generated. A probability of error is computed for each consensus sequence position, which can be used to focus human editing on particular regions. This helps to automate decision-making about where additional data are needed provides users of the final sequence with information about local variations in quality. The PHRAP documentation is available here [\[1\]](http://www.phrap.org/phredphrap/general.html)

PHRED reads DNA sequencer trace data, calls bases, assigns quality values to the bases, and writes the base calls and quality values to output files. Phred can read trace data from chromatogram files in the SCF, ABI, and ESD formats. It automatically determines the file format, and whether the chromatogram file was compressed using gzip, bzip2, or UNIX compress. After calling bases, phred writes the sequences to files in either FASTA format, the format suitable for XBAP, PHD format, or the SCF format. Quality values for the bases are written to FASTA format files or PHD files, which can be used by the phrap sequence assembly program in order to increase the accuracy of the assembled sequence. The PHRED documentation is available here [\[2\]](http://www.phrap.org/phredphrap/phred.html)

All the tools referenced above are installed at the CUNY HPCC on both KARLE and ANDY. They may be run directly on KARLE, in either command-line interactive mode, in the background (Unix batch), or within the CONSED GUI framework using the 'phredPhrap' scripting tool. The run times are generally short. On ANDY, they should be run from the within the CUNY HPCC SLURM batch processing frame work if the jobs will take more than a minute or two of wall-clock time. On both KARLE and ANDY.

Below is a sample SLURM batch script for ANDY that reproduces each step the CONSED 'phredPhrap' script completes when it is run on KARLE. This script is meant to give you an idea of how any of these tools can be run in batch mode on ANDY. Not all these steps are always required. SLURM scripts-jobs that run only one or two of the tools present in this example can also be constructed. Details on the command-line options for each tools can be found the the manuals pointed to above.

Prior to running this example, a directory with example starting input data and the environment for each tool must be set up. One can obtain the standard test case from the PHRED installation tree on ANDY as follows:

```
$mkdir mytest
$
$cd mytest
$
$tar -xvf /share/apps/phred/default/data/STD.tar
$
```

This will created a collection of directories, some with input files, that will be referenced by the SLURM batch script. These directories are list here:

```
[richard.walsh@andy standard]$ls -l 
total 28
drwx------ 2 richard.walsh hpcadmin 4096 2012-12-28 17:37 chromat_dir
drwx------ 2 richard.walsh hpcadmin 4096 2012-12-28 17:37 chromats_to_add
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-02 12:56 edit_dir
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-25 13:51 phdball_dir
drwx------ 3 richard.walsh hpcadmin 4096 2013-02-27 12:38 phd_dir
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-25 13:51 sff_dir
drwx------ 2 richard.walsh hpcadmin 4096 2013-01-25 13:51 solexa_dir
[richard.walsh@andy standard]$
```

Next, the environment for each of the required tools must be loaded using the modules command.

```
$
$module load phred
$module load phrap
$module load consed
$
```

Although CONSED is not used directly in this SLURM script, files in its installation tree are referenced and its module must therefore be loaded. With the above steps completed, the following SLURM batch script can be run on ANDY:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name PHRED_PHRAP.job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUMBIT_DIR

# Echoing the location of the phred_phrap parameter file
echo ""
echo "Using parameter file: $PHRED_PARAMETER_FILE"
echo ""

# Define the location of the consed screen files for cross_match
export SCREEN_PATH=${CONSED_HOME}/lib/screenLibs

# Just point to the serial executable to run
echo ">>>> Begin PHRED-PHRAP Batch Serial Run ..."
echo ""
echo ">>>> Running phred ... "
phred -id chromat_dir -pd phd_dir > phred.out 2>&1
echo "Done ..."
echo ">>>> Running phd2fasta ... "
phd2fasta -id phd_dir -os seqs_fasta -oq seqs_fasta.screen.qual > phd2fasta.out 2>&1
echo "Done ..."
echo ">>>> Running cross_match ... "
cross_match seqs_fasta ${SCREEN_PATH}/vector.seq -minmatch 12 -minscore 20 -screen > cross_match.out 2>&1
echo "Done ..."
echo ">>>> Running phrap ... "
phrap seqs_fasta.screen -new_ace > phrap.out 2>&1
echo "Done ..."
echo ""
echo ">>>> End   PHRED-PHRAP Batch Serial Run ..."
```

This script should be copied into a file in the same directory that you 'untar-ed' the files in above (here the name is 'mytest'). This would be typically be done in a editor like 'vi' or 'emacs'. Assuming that the name given to this SLURM script file is 'phred\_phrap.job', the SLURM job can be submitted with the following command:

```
qsub phred_phrap.job
```

This script walks the original sequence found in the 'chromat\_dir' through all of the steps that the 'predPhrap' script would complete interactively on KARLE. Notice that four distinct programs are run, each with their own set of options. They produce all the required 'seqs\_fasta' files required for viewing in CONSED. Users may wish to run only one of the tools in which case only one execution line for perhaps 'phred' or 'phd2fasta' would be required in the script.

It should take less than minutes to run and will produce SLURM output and error files beginning with the job name 'PHRED\_PHRAP' along with a number of tool-specific files output files. The primary application results will be written into the user-specified file at the end of each command line after the greater-than sign. Here, four executables are run and write named 'XXX.out' output files. The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script options are covered above in the SLURM section. The most important lines are the '#SLURMnodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processors (cores) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this chunk on any compute node with the required resources available. All the jobs run with this script are assume by SLURM to be serial jobs.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# R (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-in-order-to-use-r-on">In order to use R on Penzias, Appel, Andy or Karle please load the corresponding module:

```
   module load r
```

Complete R documentation may be found at [http://www.r-project.org/](http://www.r-project.org/)

#### **<span class="mw-headline" id="bkmrk-running-r-on-karle-1">Running R on Karle</span>**

The following is the "Hello World" program written in R:

```
# Hello World example
a <- c("Hello, world!")
print(a)
```

To run R job on Karle server, save your R script into the file (for example "hello.R") and use the following command to launch it:

```
R --vanilla --slave < helloworld.R
```

Note that you need to load R module first (see [ previous section](/bookstack/books/software-applications/page/applications-environment-reference-guide "Applications Environment")).

#### **<span class="mw-headline" id="bkmrk-running-r-on-cluster-1">Running R on cluster machines</span>**

<div class="toccolours mw-collapsible mw-collapsed">In order to run R job on any of HPCC's cluster machines (Penzias, Appel or Andy) users should use SLURM manager. Submitting serial R job to the SLURM queue is exactly the same as [ submitting any other serial job](#Submitting_Serial_.28Scalar.29_Jobs).

<div class="mw-collapsible-content">More information about our installation can be found here <a class="new" title="R on Cluster Machines (page does not exist)">R on Cluster Machines</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-r-packages-1">R packages</span>**

In order to install R package start R and run the following command:

```
install.packages("package.name")
```

You will be prompted to install package into home directory. Agree and pick a **non-https** mirror from the list. Then, pick a mirror from new list. After package is installed use it starting with

```
library(package.name)
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [Python and R](https://wiki.csi.cuny.edu/books/software-applications/page/python-and-r)

# NAMD (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-main-server-for-">The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY.

In order to use the code please always load the NAMD module first. The following line will load application environment for NAMD on PENZIAS. GPU is not requested in below SLURM script.

```
module load namd
```

A batch submit script for NAMD that runs the CPU-only version on ANDY and PENZIAS using 'mpirun' on 16 processors, 4 to a compute node, follows. Please note that on PENZIAS the que is called production.

```
#!/bin/bash
#SBATCH --partition production_qdr
#SBATCH --job-name NAMD_MPI
#SBATCH --nodes=4
#SBATCH --ntasks=4
#SBATCH --mpiprocs=4


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to MPI parallel executable to run 

mpirun -np 16 namd2  ./hivrt.conf > hivrt_mpi.out

echo ">>>> End   Non-Threaded NAMD MPI Parall Run ...
```

In order to use **GPU enabled** NAMD versions users must use PENZIAS. First load the proper module file:

```
module load namd/2.10
```

The similar as above job, but one that uses 4 CPUs for the bonded interactions and an additional 4 GPUs for the non-bonded interactions, the following script could be used. Please note that this set up is valid **only** on PENZIAS since it is the only server which has GPU.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name NAMD_GPU
#SBATCH --nodes=2
#SBATCH --ntasks=2
#SBATCH --gres=gpu:1
#SBATCH --accel=kepler
#SBATCH --mpiprocs=2

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the Non-Threaded MPI parallel executable to run
echo ">>>> Begin Non-Threaded NAMD MPI-GPU Parall Run ..."
mpirun -np 4 namd2  +idlepoll +devices 0,1,0,1   ./hivrt.conf > hivrt_gpu.out
echo ">>>> End    Non-Threaded NAMD MPI-GPU Parall Run ..."
```

Job submission on SALK via SLURM is somewhat different. First there is **no module file.** The script below shows how to run 16 processor (core) job on SALK:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name NAMD_MPI
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2048
#SBATCH --j oe
#SBATCH --o NAMD_MPI.out


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR


# Use 'aprun' and point to the Non-Threaded MPI parallel executable to run
echo ">>>> Begin NAMD Non-Threaded MPI Run ..."
aprun -n 16 -N 16 -cc cpu /share/apps/namd/default/CRAY-XT-g++/namd2  ./hivrt.conf > hivrt.out
echo ">>>> End   NAMD Non-Threaded MPI Run ..."
```

The most important difference to note is that on SALK is that the 'mpirun' command is replaced with the Cray's 'aprun' command. The 'aprun' command is used to start all jobs on SALK's compute nodes and mediates the interaction between the SLURM script's resource requests and the ALPS resource manager on the Cray. SALK users should familiarize themselves with 'aprun' and its options by reading 'man aprun' on SALK. Users cannot request more resources on their 'aprun' command-lines than are defined by the SLURM script's resource request lines. There is useful discussion elsewhere on the Wiki about the interaction between SLURM and ALPS as mediated by the 'aprun' command and the error message generated when there is a mismatch.

For any of these jobs to run, all the required auxiliary files must be present in the directory from which the job is run.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# NS2 (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-running-ns2-is-a-fou">Running NS2 is a four step process.

Prepare a Tcl script for NS2 like the example (***ex.tcl***) shown below. This example has 2 nodes with 1 link and uses UDP agent with the CBR traffic generator.

```
set ns [new Simulator]
set tr [open trace.out w]
$ns trace-all $tr

proc finish {} {
        global ns tr
        $ns flush-trace
        close $tr
        exit 0
}

set n0 [$ns node]
set n1 [$ns node]

$ns duplex-link $n0 $n1 1Mb 10ms DropTail

set udp0 [new Agent/UDP]
$ns attach-agent $n0 $udp0
set cbr0 [new Application/Traffic/CBR]
$cbr0 set packetSize_ 500
$cbr0 set interval_ 0.005
$cbr0 attach-agent $udp0
set null0 [new Agent/Null]
$ns attach-agent $n1 $null0
$ns connect $udp0 $null0  

$ns at 0.5 "$cbr0 start"
$ns at 4.5 "$cbr0 stop"
$ns at 5.0 "finish"

$ns run
```

Create a SLURM batch submit script like the one shown here:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name NS2-job
#SBATCH --nodes=1
#SBATCH --ntasks=1


# You must explictly change to your working
# directory in SLURM

cd $HOME/my_NS2_wrk

/share/apps/ns2/ns-allinone-2.31/ns-2.31/ns ./ex.tcl
```

Submit the job with:

```
qsub submit
```

Graph the result. At the HPC Center, 'nam' files can be produced, but cannot be run because they require a graphical environment for execution. Trace Graph is a free network trace file analyzer developed for NS2 trace processing. Trace Graph can support any trace format if converted to its own or NS2 trace format. Supported NS2 trace file formats include:

```
wired,satellite,wireless,new trace,wired-wireless. 
```

For more information on Trace Graph look here [\[1\]](http://www.tracegraph.com).

Users graphing results in Trace Graph must use Linux with X window system and allow X11 forwarding.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# OCTOPUS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-selecting-the-right-">Selecting the right queue based on system activity will ensure that your job starts as soon as possible. Complete information about the octopus package can be found at its homepage, [http://www.tddft.org/programs/octopus](http://www.tddft.org/programs/octopus). The on-line user manual is available at [http://www.tddft.org/programs/octopus/wiki/index.php/Manual](http://www.tddft.org/programs/octopus/wiki/index.php/Manual).

The MPI parallel version Octopus has been installed on PENZIAS and ANDY (the older release is also installed on ANDY) with all its associated libraries (metis, netcdf, sparsekit, etsfio, etc.). It was built with an Intel compiled version of the OpenMPI 1.6.4 and has passed all its internal test cases.

A sample Octopus input file (required to have the name 'inp') is provided here:

```
# Sample data file:
#
# This is a simple data file. It will complete a gas phase ground-state
# calculation for a neon atom. Please consult the Octopus manual for a
# brief explanation of each section and the variables.
#
FromScratch = yes

CalculationMode = gs

ParallelizationStrategy = par_domains

Dimensions = 1
Spacing = 0.2
Radius = 50.0
ExtraStates = 1

TheoryLevel = independent_particles

%Species
  "Neon1D" | 1 | spec_user_defined | 10 | "-10/sqrt(0.25 + x^2)"
%

%Coordinates
  "Neon1D" | 0
%

ConvRelDens = 1e-7
```

Octopus offers its users two distinct and combinable strategies to parallelize its runs. The first and default is to parallelize by domain decomposition of the mesh (METIS is used). In the input deck above, this method is chosen explicitly (ParallelizationStrategy = par\_domains). The second is to compute the entire doman on each processor, but to do so for some number of distinct temporal states (ParallelizationStrategy = par\_states). Users wishing to control the details of Octopus when run in parallel are advised to consult the advanced options section of the manual at [http://www.tddft.org/programs/octopus/wiki/index.php/Manual:Advanced\_ways\_of\_running\_Octopus](http://www.tddft.org/programs/octopus/wiki/index.php/Manual:Advanced_ways_of_running_Octopus).

A sample SLURM Pro batch job submission script that will run on PENZIAS for the above input file is show here:

```
#!/bin/csh
#SBATCH --partition production
#SBATCH --job-name neon_gstate
# The next statements select 8 chunks of 1 core and
# 3840mb of memory each (the pro-rated limit per
# core on PENZIAS), and allow SLURM to freely place
# those resource chunks on the least loaded nodes.
#SBATCH --nodes=8
#SBATCH --ntasks=1
#SBATCH --mem=3840

# Check to see if the Octopus module is loaded.
(which octopus_mpi > /dev/null) >& /dev/null
if ($status) then
echo ""
echo "Please run: 'module load octopus'"
echo "before submitting this script. Exiting ... "
echo ""
exit
else
echo ""
endif

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname
echo ""

# Must explicitly change to your working directory under SLURM
cd $SLURM_SUBMIT_DIR

# Set up OCTOPUS environment, working, and temporary directory

setenv OCTOPUS_ROOT /share/apps/octopus/default

setenv OCT_WorkDir \'$SLURM_SUBMIT_DIR\'

setenv MY_SCRDIR `whoami;date '+%m.%d.%y_%H:%M:%S'`
setenv MY_SCRDIR `echo $MY_SCRDIR | sed -e 's; ;_;'`

setenv SCRATCH_DIR  /state/partition1/oct4.1_scr/${MY_SCRDIR}_$$
mkdir -p $SCRATCH_DIR
setenv OCT_TmpDir \'/state/partition1/oct4.1_scr/${MY_SCRDIR}_$$\'

echo "The scratch directory for this run is: $OCT_TmpDir"

# Start OCTOPUS job

echo ""
echo ">>>> Begin OCTOPUS MPI Parallel Run ..."
mpirun -np 8 octopus_mpi > neon_gstate.out
echo ">>>> End   OCTOPUS MPI Parallel Run ..."
echo ""

# Clean up scratch files by default

/bin/rm -r $SCRATCH_DIR

echo 'Your Octopus job is done!'
```

  
This script requests 8 resource 'chunks' each with 1 processor. The memory selected on the '-l select' line is sized to PENZIAS's pro-rated maximum memory per core. Please consult the sections on the SLURM Pro Batch scheduling system below for information on how to modify this sample deck for different processor counts. The rest of the script describes its action in comments. Before this script will run the user must load the Octopus module with:

```
module load Octopus
```

which by default default loads Octopus version 4.1.1. This script would need to be modified as follows to run on ANDY:

```
< # 3840mb of memory each (the pro-rated limit per
---
> # 2880mb of memory each (the pro-rated limit per
8c8
< #SBATCH --nodes=8
  #SBATCH --ntasks=1
  #SBATCH --mem=3840
---
> #SBATCH --nodes=8 
  #SBATCH --ntasks=1
  #SBATCH --mem=2880
41c41
< setenv SCRATCH_DIR  /state/partition1/oct4.1_scr/${MY_SCRDIR}_$$
---
> setenv SCRATCH_DIR  /scratch/<user_id>/octopus/oct4.1_scr/${MY_SCRDIR}_$$
43c43
< setenv OCT_TmpDir \'/state/partition1/oct4.1_scr/${MY_SCRDIR}_$$\'
---
> setenv OCT_TmpDir \'/scratch/<user_id>/octopus/oct4.1_scr/${MY_SCRDIR}_$$\'
```

Users should become aware of the scaling properties of their work by taking note of the run times at various processor counts. When doubling processor count improves SCF cycle time only by a modest percentage then further increases in processor counts should be avoided. The ANDY system has two distinct interconnects. One is a DDR InfiniBand network that delivers 20 Gbits per second of performance and the other is a QDR InfiniBand network that delviers 40 Gbits per second. Either will serve Octopus users well, but the QDR network should provide somewhat better scaling. PENZIAS has a still faster FDR InfiniBand network and should provide the best scaling. The HPC is interested in the scaling you observe on its systems and reports are welcome.

In the example above, the 'production' queue has been requested which works on both ANDY (DDR InfiniBand) and PENZIAS (FDR InfiniBand), but by adding a terminating '\_qdr' one can select the QDR interconnect on ANDY.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# OPENFOAM (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-first-step-in-using-">First step in using the program is to load module file which will set up the environment. To do so please run the command

```
module load openfoam/2.3.0
```

The script will ask you to load the bashrc file. Run the command:

```
source /share/apps/openfoam/2.3.0/OpenFOAM-2.3.0/etc/bashrc
```

Make directory for the project and put all your project files there. Change to this directory.

Create a SLURM script for the type of job you want to use:

For sequential job

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name <name of your run> 
#SBATCH --nodes=1
#SBATCH --ntasks=1

# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin serial run ..."
echo ""
 
<name of open foam program> log.<open_foam_program>  2>&1

echo ""
echo ">>>> End   serial  Run ..."

```

For MPI run on 4 cores:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name <name of your run> 
#SBATCH --nodes=1
#SBATCH --ntasks=1

# Find out name of master execution host (compute node)
echo ""
echo -n ">>>> SLURM Master compute node is: "
hostname

# Change to working directory
cd $SLURM_SUBMIT_DIR

echo ">>>> Begin parallel run ..."
echo ""
 
mpirun -np 4 <name of open foam program> -parallel log.<open_foam_program>  2>&1

echo ""
echo ">>>> End parallel run ..."

```

More information about openFOAM plus some examples can me found on OpenFoam documentation web page:

[http://www.openfoam.org/docs/](http://www.openfoam.org/docs/)

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# ORCA (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-in-particular-implem">In particular implemented methods are: **Semi-empirical:** INDO/S, MNDO, AM1, PM3, NDDO/1; **Hartee Fock theory** (RHF, UHF, ROHF and CASSCF) all in direct, semidirect, or conventional mode, different RI approximations; **DFT** including a reasonably large number of exchange and correlation functionals including hybrid DFT and the most recent double hybrid functionals; High level single reference correlation models: CCSD(T), QCISD(T), CEPA, CPF (with and without RI, Local); **High level ab-initio** individual selecting multireference methods (MRCI, MRMP2, MRMP3, MRMP4, MRACPF, MRAQCC, SORCI, DDCI) for ground- and excited-states; **Geometry optimization** in redundant internal coordinates using analytical gradient techniques for all **SCF** methods as well as MP2; **Excited state calculations via TD-DFT** and CI-singles (CIS); **Scalar relativistic** ZORA, IORA and **Douglas-Kroll-Hess** (DKH) approaches, picture change effects, all-electron basis sets, effective core potentials; QM/MM interface to GROMACS and Double hybrid functionals including a fraction of nonlocal correlation.

When results obtained with ORCA are published the following citattion is required as minimum.

Neese, F. (2012) The ORCA program system, Wiley Interdiscip. Rev.: Comput. Mol. Sci., 2, 73–78.

However the users are required also to cite in addition the original papers that report the development and ORCA implementation of the methods used in users' research. The full list of papers is given in users manual, available online via following link:

[https://orcaforum.cec.mpg.de/OrcaManual.pdf](https://orcaforum.cec.mpg.de/OrcaManual.pdf)

The package is installed on PENZIAS. Users must load module for orca before use. Type

```
module load orca
```

Below is an example input file for water.

```


! B3LYP def2-SVP Opt
# My first ORCA calculation
*xyz 0 1
O        0.000000000      0.000000000      0.000000000
H        0.000000000      0.759337000      0.596043000
H        0.000000000     -0.759337000      0.596043000
*
%PAL nprocs 4 end

```

ORCA can run applications in thread parallel mode (OpenMP). Thus the line %PAL nprocs 4 end in above input file. The line instructs the ORCA wrapper to run different parts of ORCA modules on 4 cores. At HPC hyper treating is not supported. Consequently the number of cores requested in SLURM script (*ntasks*), must match the number of cores requested in input file. Below is the simple SLURM script which run the above calculation on 4 core on a single node.

```
#!/usr/bin/bash 
#SBATCH -J orca_OMP 
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH -o output.%j
#SBATCH --mem 16GB

export OMP_NUM_THREADS=4

export OMP_STACKSIZE=1G
export KMP_AFFINITY=scatter

cd $SLURM_SUBMIT_DIR

/share/usr/apps/orca/5.0.3/bin/orca water.inp > output_water.out
 
```

In order to use cross node parallelism (MPI) users must use mpi parallel versions of the ORCA routines accessible from **orca wrapper.** It is very important to submit correct numbers on nodes, cores-per-node and ntasks. Otherwise orca wrapper will not start OpenMPI job. The list is given below. Consequently the *ntasks* and *nodes* must be adjusted accordingly. Note that penzias has 2 types of nodes 16 core/64GB and 32 core/192GB.

```
 orca_anoint_mpi
 orca_autoci_mpi
 orca_casscf_mpi
 orca_cipsi_mpi
 orca_cis_mpi
 orca_cpscf_mpi
 orca_eprnmr_mpi
 orca_grad_mpi
 orca_gtoint_mpi
 orca_mcrpa_mpi
 orca_mdci_mpi
 orca_mm_mpi
 orca_mp2_mpi
 orca_mrci_mpi
 orca_pc_mpi
 orca_plot_mpi
 orca_pnmr_mpi
 orca_pop_mpi
 orca_rel_mpi
 orca_rocis_mpi
 orca_scfgrad_mpi
 orca_scfhess_mpi
 orca_scf_mpi
 orca_soc_mpi
 orca_util_mpi
 orca_vpot_mpi

```

 More information about orca use including some examples can be found on ORCA portal at: [https://orcaforum.cec.mpg.de/portal.php](https://orcaforum.cec.mpg.de/portal.php)

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# PHOENICS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-as-suggested%2C-the-en">As suggested, the entire PHOENICS 2011 package is installed on ANDY and users can run the X11 version of the PHOENICS Commander display tool from ANDY's head node if they have connected using 'ssh -X andy.csi.cuny.edu' where the '-X' option ensures that X11 images are passed back to the original client. Doing this from outside the College of Staten Island campus where the CUNY HPCC is located may produce poor results because the X11 traffic will have to be forwarded through the HPC Center gateway system. CUNY has also licensed a number of seats for office-local desktop installations of PHOENICS (for either Windows or Linux) so that this should not be necessary. Job preparation and post-processing work is generally most efficiently accomplished on the local desktop using the Windows version of PHOENICS VR, which can be run directly or from PHOENICS Commander.

A rough general outline of the PHOENICS work cycle is:

```
1.  The user runs VR Editor (preprocessor) on their workstation (or on ANDY) and
    perhaps selects a library case (e.g. 274) making changes to this case to match
    his/her specific requirements.
 
2.  The user leaves the VR editor where input files 'q1' and 'eardat' are created.  
    If the user is preprocessing from their desktop, these files would then be 
    transferred to ANDY using the 'scp' command or via the 'PuTTy' utility for 
    Windows.
 
3.  The user runs the solver on ANDY (typically the parallel version, 'parexe') from
    their working directory using the SLURM batch submit script presented below.  This
    script reads the files 'q1' and 'eardat' (and potentially some other input files)
    and writes the key output files 'phi' and 'result'. 
 
4.  The user copies these output files back to their desktop (or not) and runs VR
    Viewer (postprocessor) which reads the graphics output file 'phi', or the user
    views tabular results manually in the 'result' file.
```

POLIS, available in Linux and Windows, has further useful information on running PHOENICS including tutorials, viewing documentation, and on all PHOENICS commands and topics here [\[1\]](http://www.cham.co.uk/phoenics/d_polis/polis.htm). Graphical monitoring should be deactivated during parallel runs in ANDY's batch queue. To do this users should place two leading spaces in front of the command TSTSWP in the 'q1' file. The TSTSWP command is present in most library cases, including case 274 which is a useful test case. Graphical monitoring can be left turned on when running sequential 'earexe' on the desktop. This gives useful realtime information on sweeps, values, and the convergence progress.

Details on the use of the display and non-parallel PHOENICS tools can be found at the CHAM website and in the CHAM Encyclopaedia here [\[2\]](http://www.cham.co.uk/phoenics/d_polis/polis.htm).

The process of setting up a PHOENICS working directory and running the parallel version of 'earth' (parexe) on ANDY is described below. As a first step, users would typically create a directory called 'phoenics' in their $HOME directory as follows:

```
cd; mkdir phoenics
```

Next, the default PHOENICS installation root directory (version 2011 is the current default) named above should be symbolically linked to the 'lp36' subdirectory:

```
cd phoenics
ln -s /share/apps/phoenics/default ./lp36
```

The user must then generate the required input files for the 'earth' module which, as mentioned above in the PHOENICS work cycle section, are the 'q1' and 'eardat' files created by the VR Editor. These can be generated on ANDY, but it is generally easier to do this from the user's desktop installation of PHOENICS.

Because the current default version of PHOENICS, version 2011, was built with an earlier, older and now no longer default version of MPI, users must use the modules command to unload the current defaults and load the previous set before submitting the PHOENICS SLURM script below. This is a fairly simple procedure:

```
$module list
Currently Loaded Modulefiles:
  1) SLURM/11.3.0.121723     2) cuda/5.0              3) intel/13.0.1.117      4) openmpi/1.6.3_intel
$
$module unload intel/13.0.1.117
$module unload openmpi/1.6.3_intel
$
$module load intel/12.1.3.293
$
$module load openmpi/1.5.5_intel
Note: Intel compilers will be set to version 12.1.3.293
$
$module list
Currently Loaded Modulefiles:
  1) SLURM/11.3.0.121723     2) cuda/5.0              3) intel/12.1.3.293      4) openmpi/1.5.5_intel
```

Once the input files are created and placed (transferred to) into the working directory and the older modules have been loaded on ANDY, the following SLURM Pro batch script can be used run the job on ANDY. The progress of the job can be tracked with the SLURM 'qstat' command.

```
#!/bin/bash
#SBATCH --partition production_gdr
#SBATCH --job-name phx_test
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# Take a look at the set of compute nodes that SLURM gave you
echo $SLURM_NODEFILE
cat  $SLURM_NODEFILE

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the parallel executable to run
echo ">>>> Begin PHOENICS MPI Parallel Run ..."
echo ""
echo "mpirun -np 8 -machinefile $SLURM_NODEFILE ./lp36/d_earth/parexe"
mpirun -np 8 ./lp36/d_earth/parexe
echo ""
echo ">>>> End   PHOENICS MPI Parallel Run ..."
```

The job can be submitted with:

```
qsub 8Proc.job
```

Constructing a SLURM batch script is described in detail elsewhere in this Wiki document, but in short this script requests the QDR Infiniband production queue ('production\_qdr') which runs the job on the side of ANDY with the fastest interconnect. It asks for 8 processors (cores) each with 2880 Mbytes of memory and allows SLURM to select those processors based on least loaded criteria. Because this is just an 8 processor job, it could be packed onto a single physical node on ANDY for better scaling using '-l place=pack' but this would delay its start by SLURM as SLURM would have to locate a completely free node.

During the run, 'parexe' creates (N-1) directories (named Proc00#) where N is the number of processors requested (note: if the Proc00# directories do not exist already they will be created, but there will be an error message in the SLURM error log, which can be ignored). The output from process zero is written into the working directory from which the script was submitted. The output from each of the other MPI processes is written into its associated 'Proc00#' directory. Upon successful completion, the 'result' file should show that the requested number of iterations (sweeps) was completed and print the starting and ending wall-clock time. At this point, the results (the 'phi' and 'results' files) from the SLURM parallel job can be copied back to the users desk top for post processing.

NOTE: A bug is present in the non-graphical, batch version of PHOENICS that is used on the CUNY HPCC Clusters. This problem does not occur in Windows runs. To avoid the problem a go-around modification to the 'q1' input file is required. The problem occurs only in jobs that require SWEEP counts that are greater than 10,000 (i.e. SWEEP=20000). Users requesting larger SWEEP counts must include the following in their 'q1' input files to avoid having their jobs terminated at 10,000 SWEEPS.

```
USTEER=F
```

This addition forces a bypass of the graphical IO monitoring capability in PHOENICS and prevents that section of code from capping the SWEEP count at 10,000 SWEEPs.

Finally, PHOENICS has been licensed broadly by the CUNY HPCC, and it can provide activation keys for any desktop copies whose annual activation keys expire.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# PYRAD (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-start-up-tutorials-o">Start up tutorials of the program can be found on following links

[http://nbviewer.ipython.org/gist/dereneaton/1f661bfb205b644086cc/tutorial\_RAD\_3.0.ipynb](http://nbviewer.ipython.org/gist/dereneaton/1f661bfb205b644086cc/tutorial_RAD_3.0.ipynb)

and on:

[http://nbviewer.ipython.org/gist/dereneaton/af9548ea0e94bff99aa0/pyRAD\_v.3.0.ipynb](http://nbviewer.ipython.org/gist/dereneaton/af9548ea0e94bff99aa0/pyRAD_v.3.0.ipynb)

Every user has to prepare the parameter file (in below example params.txt), which will hold parameters of PyRAD run. The full description of content of this file is given into manual (see above). To run PyRAD job first load module for pyRAD with the command

```
module load pyrad
```

Then submit a job with SLURM script. The simple SLURM script which an be used as template for user's job submission script is as follows:

```
#!/bin/bash
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name my_job
#SBATCH --nodes=1
#SBATCH --ntasks=1


# change to the working directory 
cd $SLURM_SUBMIT_DIR
echo ">>>> Begin  my_job"

pyRAD -p params.txt

echo">>>> End of a job"

```

Please check the manual for the command line options (and their meaning) of the pyRAD. .

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# PYTHON (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-on-penzias-python-is">On Penzias Python is provided as a part of development package Anaconda/Miniconda. Anaconda distribution includes libraries (i.e. numpy) while miniconda is empty shell which can accommodate various packages. In general there are 2 supported versions of Python installed on Penzias system:

- Python 2.7.13 which can be accessed by loading module python/2.7.13\_anaconda
- Python 3.6 which can be accessed by loading module python/3.6.0\_anaconda

The same versions of Python can be accessed via miniconda builds but no extra modules will be automatically available (i.e. numpy, pandas etc.)

- Python 2.7.13 only can be accessed by loading module python/miniconda2
- Python 2.7.13 only can be accessed by loading module python/miniconda3

When using miniconda builds users have to have all needed python modules installed in their own space (see below).

In order to make Python binaries available user needs to load corresponding module:

```
module load python/2.7.13_anaconda
```

(for version 2.7.13) or for version 3.6.0

```
module load python/3.6.0_anaconda 
```

After the module is loaded Python interpreter can be simply called by "python" command.

Versions 2.7.3-2.7.11 are installed as Enthought Python Distribution [\[1\]](http://www.enthought.com/products/epd.php). EPD contains over 100 libraries such as SciPy, NumPy, matplotlib, IPython, PyTables, PIL, wxPython, etc... The Version 2.7.13 is installed as ANACONDA build and also supports more than 100 Python libraries. In addition the ANACONDA distribution is compiled with OpenMPI support (**module for openmpi/1.8.4\_intel must be loaded**).

Installing Python packages

<div class="toccolours mw-collapsible mw-collapsed">Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

<div class="mw-collapsible-content">Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

```
module load python/2.7.13_anaconda
pip install guppy --user
```

For Python 3.6.0 in Anaconda build

```
module load python/3.6.0_anaconda
pip install guppy --user
```

For Python 2.7.13 in Miniconda

```
module load python/miniconda2
pip install guppy --user
```

For Python 3.6.0 in Miniconda 3

```
module load python/miniconda3
pip install guppy --user
```

To check if the package is properly installed type:

```
pip list | grep guppy
```

</div></div></div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [Python and R](https://wiki.csi.cuny.edu/books/software-applications/page/python-and-r)

# QIIME (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-qiime-is-installed-i">Qiime is installed in Python/anaconda environment. There are 2 builds of Python/Anaconda - the one with python interpreter 2.7.13 and one with python interpreter 3.6.0. The text below refers to python 2.7.13. In order to use qiime the users must load module for qiime and activate the environment. The following 2 lines will do the job:

```
module load qiime/1.9.1_FULL_P2.7
source activate qiime1
```

The P2.7 above indicates that the used python interpreter is python 2.7.X. Because QIIME is a **pipeline** that relies heavily upon external applications, it has a variety of ways in which is "parallelizes" tasks for multiprocessor computation. These include:

```
1. Multi-threading on a single node 
2. Auto-generating serial jobs to the cluster, each working on a separate subtask ("Workers")
3. Actual MPI
```

Depending upon which subset of QIMME's functionality is needed, the user may use one or more of the above forms of parallelization. During the initial start up QIIME is concentrated on "de noising" which can take significant resources. Passing this phase the QIIME auto generates user specified number of threads (single node use) or node thread jobs. QIIME subdivides the denoising tasks into tasks that are handled at various stages by individual threads or worker jobs (depending upon setup). However the documentation on QIIME parallelization is not very explanatory, but is clear that the user can utilize EITHER auto-job generation OR node threading but NEVER BOTH in the same time. QIIME supplies few scripts for determining how subtasks are to be processed - *worker jobs (cluster) or threads (single node)*. The relevant scripts are as follows:

```
start_parallel_jobs.py             - used for threading on a single node
start_parallel_jobs_torque.py - used for '''auto-generating''' single node, single core cluster worker jobs. 
                                                Please note that the utilization of the node is 1 node by 1 core. 
```

If the user invokes the qiime for the first time is good idea to check if all modules are properly connected. Thus on a first run users should run the command:

```
print_qiime_config.py -t
```

The above command will print initial set-up of qiime and will pass/fail internal tests.

```
(qiime1) [user_id@penzias ~]$ print_qiime_config.py -t

System information
==================
         Platform:	linux2
   Python version:	2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:09:15)  [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
Python executable:	/share/usr/compilers/python/miniconda2/envs/qiime1/bin/python

QIIME default reference information
===================================
For details on what files are used as QIIME's default references, see here:
 https://github.com/biocore/qiime-default-reference/releases/tag/0.1.3

Dependency versions
===================
          QIIME library version:	1.9.1
           QIIME script version:	1.9.1
qiime-default-reference version:	0.1.3
                  NumPy version:	1.10.4
                  SciPy version:	0.17.1
                 pandas version:	0.18.1
             matplotlib version:	1.4.3
            biom-format version:	2.1.5
                   h5py version:	2.6.0 (HDF5 version: 1.8.16)
                   qcli version:	0.1.1
                   pyqi version:	0.3.2
             scikit-bio version:	0.2.3
                 PyNAST version:	1.2.2
                Emperor version:	0.9.51
                burrito version:	0.9.1
       burrito-fillings version:	0.1.1
              sortmerna version:	SortMeRNA version 2.0, 29/11/2014
              sumaclust version:	SUMACLUST Version 1.0.00
                  swarm version:	Swarm 1.2.19 [Mar  5 2016 16:56:02]
                          gdata:	Installed.

QIIME config values
===================
For definitions of these settings and to learn how to configure QIIME, see here:
 http://qiime.org/install/qiime_config.html
 http://qiime.org/tutorials/parallel_qiime.html

                     blastmat_dir:	None
      pick_otus_reference_seqs_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set/97_otus.fasta
                         sc_queue:	all.q
      topiaryexplorer_project_dir:	None
     pynast_template_alignment_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set_aligned/85_otus.pynast.fasta
                  cluster_jobs_fp:	start_parallel_jobs.py
pynast_template_alignment_blastdb:	None
assign_taxonomy_reference_seqs_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set/97_otus.fasta
                     torque_queue:	production
                    jobs_to_start:	4
                       slurm_time:	None
            denoiser_min_per_core:	50
assign_taxonomy_id_to_taxonomy_fp:	/share/usr/compilers/python/miniconda2/envs/qiime1/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/taxonomy/97_otu_taxonomy.txt
                         temp_dir:	/tmp/
                     slurm_memory:	None
                      slurm_queue:	None
                      blastall_fp:	blastall
                 seconds_to_sleep:	1

QIIME base install test results
===============================
.........
----------------------------------------------------------------------
Ran 9 tests in 0.021s

OK
```

Each user must create the following **qiime.config** in his/her own home directory. The file (for cluster environment) is provided below, so the users must copy and paste the file.

```
cluster_jobs_fp /share/usr/compilers/python/miniconda2/envs/qiime1/bin/start_parallel_jobs_torque.py
python_exe_fp /share/usr/compilers/python/miniconda2/envs/qiime1/bin/python
working_dir  $HOME
blastmat_dir $HOME
blastall_fp blastall
pynast_template_alignment_fp
pynast_template_alignment_blastdb
template_alignment_lanemask_fp
jobs_to_start 4
seconds_to_sleep 60
qiime_scripts_dir /share/usr/compilers/python/miniconda2/envs/qiime1/bin
temp_dir /tmp/
denoiser_min_per_core 50
cloud_environment False
topiaryexplorer_project_dir
torque_queue main
assign_taxonomy_reference_seqs_fp
assign_taxonomy_id_to_taxonomy_fp
```

Lines which may be altered by the user are:

```
cluster_jobs_fp
   - Set to "start_parallel_jobs_torque.py" for cluster jobs
   - Set to "start_parallel_jobs.py" for single node threading
working_dir   
blastmat_dir  (blast matrices location)
jobs_to_start  (the MAXIMUM number of jobs to auto-spawn)
seconds_to_sleep (change is NOT recommended)
```

Lines which user must look carefully during:

```
qiime_scripts_dir - must be sure to always point to /share/usr/compilers/python/miniconda2/envs/qiime1/bin 
torque_queue      - must be set to "production"  which is main queue to PENZIAS.  
```

The meaning of each of the lines of qiime.config is:

```
cluster_jobs_fp : path to your cluster jobs file.  

python_exe_fp : path to python executable. Just use python. 
working_dir : a directory where work should be performed when running in parallel. USUALLY $HOME

blastmat_dir : directory where BLAST substitution matrices are stored

blastall_fp : path to blastall executable

pynast_template_alignment_fp : default template alignment to use with PyNAST as a fasta file

pynast_template_alignment_blastdb : default template alignment to use with PyNAST as a pre-formatted BLAST database

template_alignment_lanemask_fp : default alignment lanemask to use with filter_alignment.py

jobs_to_start : default number of jobs to start when running QIIME in parallel. 
                      don’t make this more than the available cores/processors on your system

seconds_to_sleep : number of seconds to wait when checking whether parallel jobs have completed

qiime_scripts_dir : directory where QIIME scripts can be found

temp_dir : directory for storing temporary files created by QIIME scripts. when a script completes successfully, any 
                 temporary files that it created are cleaned up.

denoiser_min_per_core : minimum number of flowgrams to denoise per core in parallel denoiser runs

cloud_environment : used only by the n3phele system. you should not need to modify this value

topiaryexplorer_project_dir : directory where TopiaryExplorer is installed

torque_queue : default queue to submit jobs to when using parallel QIIME with torque or SLURM. DEFAULT is production

assign_taxonomy_reference_seqs_fp : default reference database to use with assign_taxonomy.py (and parallel versions)

assign_taxonomy_id_to_taxonomy_fp : default id-to-taxonomy map to use with assign_taxonomy.py (and parallel versions)

sc_queue : default queue to submit jobs to when running parallel QIIME on StarCluster
```

In above script the jobs\_to\_start value must match number of cores requested in SLURM script. For example #SLURM -l select=1:ncpus=4 will require jobs\_to\_start also to have value 4. By default, QIIME is configured to run parallel jobs on systems without a queueing system (e.g., your laptop, desktop, or single AWS instance), where user tells a parallel QIIME script how many jobs should be submitted. On HPC systems however the QIIME should be submitted via SLURM batch script. In this case there are 2 scenarios:

```
     1. Jobs submitted for multithread on a single node
     2. Jobs submitted as single thread on single core across several nodes.

```

To make QIIME parallelization scheme useful the users may have to consider to make a separate script which holds the list of "tasks" that have to be started on cluster. The file is usual text file so it must be created with text editor - vi or edit in Linux environment. Please do not use word processor to create this file.

```
pick_otus.py -i inseqs_file1.fasta
pick_otus.py -i inseqs_file2.fasta
pick_otus.py -i inseqs_file3.fasta
```

The file is named **test\_jobs.txt**. In order to be used it has to be called by one of the cluster job scripts described above. If passed to a cluster jobs script, above 3 lines should start three separate jobs corresponding to each of the commands. The name of cluster job script is defined in **cluster\_jobs\_fp** variable in **qiime.config** file. Remember that every user must have the qiime.conf file in his/her directory and the later file must be properly edited. The general syntax of passing the test\_jobs.txt to cluster job script is:

```
CLUSTER_JOBS_FP -ms job_list.txt JOB_ID
```

Here CLUSTER\_JOBS\_FP is PATH to cluster job file (start\_parallel\_jobs.py OR start\_parallel\_jobs\_torque.py). Then SLURM script to start multithread job on node on PENZIAS looks like:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

/share/usr/compilers/python/miniconda2/envs/qiime1/bin/start_parallel_jobs.py -ms test_jobs.txt  JOB_ID  -q production
echo "QIIME  job is done."
```

Please note that maximum number of threads is auto generated but limited from above from the value in qiime.conf. In above script JOB\_ID is prefix which will be added to each of the jobs. -ms are options for start\_parallel\_jobs.py. The first one means "make" the second "submit". The same JOB\_ID is also used by the QIIME parallel scripts when creating names for temporary files and directories, but user script does not necessarily need to do anything with this information. The parallel variants of the scripts use the same parameters as the serial versions of the scripts, with some additional options in the parallel scripts.

Next option is to use 1 core on 1 node parallelization. To do so the other script start\_parallel\_jobs\_torque.py must me used. This files takes the following parameters/options:

Syntax: start\_parallel\_jobs\_torque.py \[options\]

Input Arguments: \[OPTIONAL\]

-m, --make\_jobs Make the job files \[default: None\] -s, --submit\_jobs Submit the job files \[default: None\] -q, --queue Name of queue to submit to \[default: friendlyq\] -j, --job\_dir Directory to store the jobs \[default: jobs/\] -w, --max\_walltime Maximum time in hours the job will run for \[default: 72\] -c, --cpus Number of CPUs to use \[default:1\] -n, --nodes Number of nodes to use \[default:1\]

Let's say the user want to submit the parallel job on PENZIAS. First the user must create a cluster job script similar to test\_jobs.txt which should hold programs to be executed - one per command line just as it was shown above. Then the following script can be used to run on 4 nodes :

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


start_parallel_jobs_torque.py -ms test_jobs.txt -c 1 -n 4 -q production
echo "QIIME  job is done."
```

Finally below is an example how to run the QIIME script for SERIAL align\_seqs.py on penzias:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

align_seqs.py -i input.fasta -m muscle
echo "QIIME  job is done."
```

And in PARALLEL:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name qime_test_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

start_parallel_jobs_torque.py -ms test_jobs.txt -c 4 -n 4 -q production
echo "QIIME  job is done."
```

The users are strongly encouraged to familiarize themselves with QIIME tutorials available at : [http://qiime.org/tutorials/index.html](http://qiime.org/tutorials/index.html)

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# RAXML (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-examples-of-running-">Examples of running both parallel and serial jobs are presented below. More information can be found here [\[1\]](http://www.exelixis-lab.org)

To run RAxML first a PHYLIP file of aligned DNA or amino-acid sequences similar to the one shown here must be created. This file, 'alg.phy', is in interleaved format:

```
5 60
Tax1        CCATCTCACGGTCGGTACGATACACCTGCTTTTGGCAG
Tax2        CCATCTCACGGTCAGTAAGATACACCTGCTTTTGGCGG
Tax3        CCATCTCCCGCTCAGTAAGATACCCCTGCTGTTGGCGG
Tax4        TCATCTCATGGTCAATAAGATACTCCTGCTTTTGGCGG
Tax5        CCATCTCACGGTCGGTAAGATACACCTGCTTTTGGCGG

GAAATGGTCAATATTACAAGGT
GAAATGGTCAACATTAAAAGAT
GAAATCGTCAATATTAAAAGGT
GAAATGGTCAATCTTAAAAGGT
GAAATGGTCAATATTAAAAGGT
```

For more detail about PHYLIP formatted files, please check look at the RAxML manual here [\[2\]](http://sco.h-its.org/exelixis/oldPage/RAxML-Manual.7.0.4.pdf) at the web site referenced above. There is also a tutorial here [\[3\]](http://sco.h-its.org/exelixis/hands-On.html)

To include all required environmental variables and the path to the RAXML executable run the modules load command (the modules utility is discussed in detail above):

```
module load raxml
```

Next create a SLURM batch script. Below is an example script that will run the serial version of RAxML. The program options **-m**,**-n**,**-s** are all required. In order, they specify the substitution model (-m), the output file name (-n), and the sequence file name (-s). Additional options are discussed in the manual.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name RAXML_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the serial executable to run
echo ">>>> Begin RAXML Serial Run ..."
raxmlHPC -y -m GTRCAT -n TEST1 -p 12345 -s alg.phy > raxml_ser.out 2>&1
echo ">>>> End   RAXML Serial Run ..."
```

This script can be dropped into a file (say raxml\_serial.job) and submitted to SLURM with the following command:

```
qsub raxml_serial.job
```

RAxML produces the following output files

<dl><dd>1. Parsimony starting tree is written to **RAxML\_parsimonyTree.TEST1**.
2. Final tree is written to **RAxML\_result.TEST1**.
3. Execution Log File is written to **RAxML\_log.TEST1**.
4. Execution information file is written to **RAxML\_info.TEST1**.

</dd></dl>RAxML also is available in a MPI-parallel version called raxmlHPC-MPI. The MPI-parallelized version can be run on all types of clusters to perform rapid parallel bootstraps, or multiple inferences on the original alignment. The MPI-version is for executing large production runs (i.e. 100 or 1,000 bootstraps). You can also perform multiple inferences on larger datasets in parallel to find a best-known ML tree for your dataset. Finally, the novel rapid BS algorithm and the associated ML search have also been parallelized with MPI.

The following MPI script script selects 4 processors (cores) and allows SLURM to put them on any compute node. Note, that when running any parallel program one must be cognizant of the scaling properties of its parallel algorithm; in other words, how much does a given job's run time drop as one doubles the number of processors used. All parallel programs arrive at point of diminishing returns that depend on the algorithm, size of the problem being solved, and the performance features of the system that it is being run on. We might have chosen to run this job on 8, 16, or 32 processors (cores), but would only do so if the improvement in performance scales. Improvements of less than 25% after a doubling are an indication of a reasonable maximum number of processors under those particular set of circumstances.

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name RAXML_mpi
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Use 'mpirun' and point to the MPI parallel executable to run
echo ">>>> Begin RAXML MPI Run ..."
mpirun -np 4 -machinefile $SLURM_NODEFILE raxmlHPC-MPI -m GTRCAT -n TEST2 -s alg.phy -N 4 > raxml_mpi.out 2>&1
echo ">>>> End   RAXML MPI Run ..."
```

This test case should take no more than a minute to run and will produce SLURM output and error files beginning with the job name 'RAXML\_mpi'. Other RAxML-specific outputs will also be produced Details on the meaning of the SLURM script are covered above in this Wiki's SLURM section. The most important lines are '#SBATCH --nodes=4 ntasks=1 mem=2880'. The first instructs SLURM to select 4 resource 'chunks' each with 1 processor (core) and 2,880 MBs of memory in it for the job (on ANDY as much as 2,880 MBs might have been selected). The second line instructs SLURM to place this job wherever the least used resources are found (i.e. freely).

The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command. As this is a parallel job, other compute nodes may also be called into service to complete this job. Note that the name of the parallel executable is 'raxmlHPC-MPI' and the in the parallel run we are complete four simulations (-N 4). The expression '2&gt;&amp;1' combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# STRUCTURAMA (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-importantly%2C-the-pro">Importantly, the program can estimate the number of populations under the Dirichlet process prior. Markov chain Monte Carlo (MCMC) is used to approximate the posterior probability that individuals are assigned to specific populations. Structurama also allows the individuals to be admixed. Structurama implements a number of methods for summarizing the results of a Bayesian MCMC analysis of population structure. Perhaps most interestingly, the program finds the mean partition, a partitioning of individuals among populations that minimizes the squared distance to the sampled partitions. More detailed information about Structurama can be found at the web site here [\[1\]](http://cteg.berkeley.edu/~structurama/index.html) and in the manual here [\[2\]](http://cteg.berkeley.edu/~structurama/manual.html).

The February 2014 version of the Structurama is installed on ANDY and PENZIAS. Structurama is a serial program with only an interactive command-line interface; therefore, making SLURM batch serial runs requires that the user to supply the exact and complete list of commands that an interactive use of the program would have required within the SLURM batch script. In addition to referencng the executable 'st2', a Structurama data file must be present in the SLURM working directory. The following SLURM batch script shows how this is done using the Unix 'here-document' construction (i.e &lt;&lt;):

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name STRAMA_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin STRUCTURE RAMA Serial Run ..."
echo ""

st2 << EOF
execute test.inp
yes
quit
EOF

echo ""
echo ">>>> End   STRUCTURE RAMA Serial Run ..."
```

After the Structurama module is loaded, this script can be dropped into a file (say 'strama\_serial.job') and submitted for execution, as follows:

```


module avail structurama
----------------------------------- /share/apps/modules/default/modulefiles_UserApplications ------------------------------------
structurama/10.30.11        structurama/2.2.14(default)

module load structurama

qsub strama_serial.job
```

A basic test input file should take less than a minute to run and will produce SLURM output and error files beginning with the job name 'STRAMA\_serial'. Additional, Structurama specific output files can also be requested. This job will write an Structurama output file call 'strout.p.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' each with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that it finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The lines following the reference to the Structurama executable 'str2' show what is required to deliver input to an interactive program in a batch script. The input-equivalent sequence of commands should be placed, one per line, between the first and last 'EOF' which demarcates the entire pseudo-interactive session. NOTE: If you forget to include the final command 'quit', your SLURM job will never complete, as it will be waiting for its final termination instructions and will never receive them. Such, a job should be deleted with the SLURM command 'qdel JID', where JID is the numerical SLURM job identification number. If you would like a print out of all the Structurama options include the line 'help' in your command stream.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# THRUST (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-thrust-provides-a-ri">Thrust provides a rich collection of data parallel primitives such as scan, sort, and reduce, which can be combined together to implement complex algorithms with concise, readable source code. By describing your computation in terms of these high-level abstractions you provide Thrust with the freedom to select the most efficient implementation automatically. As a result, Thrust can be utilized in rapid prototyping of CUDA applications, where programmer productivity matters most, as well as in production, where robustness and absolute performance are crucial.

More detail on the Thrust library is available here [\[1\]](https://code.google.com/p/thrust/wiki/QuickStartGuide). There are a collection of example codes here [\[2\]](https://code.google.com/p/thrust/downloads/list). The Thrust Manual is available here [\[3\]](https://code.google.com/p/thrust/downloads/detail?name=Thrust%20-%20A%20Productivity-Oriented%20Library%20for%20CUDA.pdf)

Here is a basic C++ example code, which creates and fills a vector on the Host, resizes it, copies it to the Device, modifies it there, and prints out the modified values.

```
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>

#include <iostream>

int main(void)
{
    // H has storage for 4 integers
    thrust::host_vector<int> H(4);

    // initialize individual elements
    H[0] = 14;
    H[1] = 20;
    H[2] = 38;
    H[3] = 46;
    
    // H.size() returns the size of vector H
    std::cout << "H has size " << H.size() << std::endl;

    // print contents of H
    for(int i = 0; i < H.size(); i++)
        std::cout << "H[" << i << "] = " << H[i] << std::endl;

    // resize H
    H.resize(2);
    
    std::cout << "H now has size " << H.size() << std::endl;

    // Copy host_vector H to device_vector D
    thrust::device_vector<int> D = H;
    
    // elements of D can be modified
    D[0] = 99;
    D[1] = 88;
    
    // print contents of D
    for(int i = 0; i < D.size(); i++)
        std::cout << "D[" << i << "] = " << D[i] << std::endl;

    // H and D are automatically deleted when the function returns
    return 0;
}
```

Assuming this source file were called 'vectcopy.cu', it can be compiled on PENZIAS:

```
nvcc -o vectcopy.exe vectcopy.cu
```

Once compiled, the 'vectorcopy.exe' executable can be run using the following SLURM script:

```
#!/bin/bash
#SLURM -q production_gpu
#SLURM -N THRUST_vcopy
#SLURM -l select=1:ncpus=1:ngpus=1 
#SLURM -l place=free
#SLURM -V

# Find out which compute node the job is using
echo ""
echo -n "Running job on compute node ... " 
hostname

echo ""
echo "SLURM node file is located here ... "  $SLURM_NODEFILE
echo -n "SLURM node file contains ... "
cat  $SLURM_NODEFILE
echo ""

# Change to working directory
cd $SLURM_O_WORKDIR

# Running executable on a single, gpu-enabled
# compute node using 1 CPU and 1 GPU.
echo "CUDA job is starting ... "
echo ""

./vectcopy.exe

echo ""
echo "CUDA job is done!"
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# TRINITY (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-briefly%2C-the-process">Briefly, the process works like so:

Inchworm assembles the RNA-seq data into the unique sequences of transcripts, often generating full-length transcripts for a dominant isoform, but then reports just the unique portions of alternatively spliced transcripts.

Chrysalis clusters the Inchworm contigs into clusters and constructs complete de Bruijn graphs for each cluster. Each cluster represents the full transcriptonal complexity for a given gene (or sets of genes that share sequences in common). Chrysalis then partitions the full read set among these disjoint graphs.

Butterfly then processes the individual graphs in parallel, tracing the paths that reads and pairs of reads take within the graph, ultimately reporting full-length transcripts for alternatively spliced isoforms, and teasing apart transcripts that corresponds to paralogous genes.

Additional Trinity documentation can be found at the [Trinity website](https://github.com/trinityrnaseq/trinityrnaseq/wiki).

Trinity is installed on Penzias cluster. In order to run it load Trinity environment module with

```
module load trinity
```

Note that this will also load the module for BOWTIE which is required by Trinity. Once your environment set you can submit a job into SLURM queue. Here is a typical SLURM script that submits a 4-core Trinity job:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name trinity
#SBATCH --nodes=1
#SBATCH --ntasks=4

# set unlimited stack size
ulimit -s unlimited

# set number of cores and memory requirements
NCORES=4
JMEM=8G
export OMP_NUM_THREADS=$NCORES

# set output directory
MY_OUT_DIR=myOutDir_trinity

echo "----------------Starting-----------------------"
cd $SLURM_SUBMIT_DIR
# run trinity
Trinity --CPU $NCORES --bflyCPU $NCORES --bflyGCThreads $NCORES \
    --max_memory $JMEM \
    --seqType fq --SS_lib_type RF \
    --left reads.left.fq  --right reads.right.fq \
    --output myOutDir_trinity >& log_trinity
echo "-----------------Done--------------------------"
```

- Note that Trinity only runs in SMP mode. Therefore in the "-l select" statement you can request max of 1 chunk with up to 12 ntasks.

- Name of the output directory needs to contain string "trinity". Otherwise Trinity run will immediately fail.

You can find example of SLURM script and sample input files (reads.left.fq/ reads.right.fq) under "/share/apps/trinity/default/example" directory.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# SAGE (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-sage-is-built-out-of">Sage is built out of nearly 100 open-source packages and features a unified interface that integrates their functionality into a common experience. It is well-suited for education and research. Details on SAGE, including tutorials on its use are available at [\[1\]](http://www.sagemath.org).

The CUNY HPCC has installed SAGE on KARLE, a 24 processor gateway server system that supports a number of interactive and GUI oriented applications such as MATLAB, SAS, R, and Mathematica. SAGE is not currently installed on our cluster systems and is there for not available for SLURM batch use. If there is an interest in this and submitted large numbers of serial jobs to the batch queues, users should make a request through the HPC Center email address 'hpchelp@csi.cuny.edu'.

Users with accounts on KARLE can simply start SAGE with:

```
$sage
----------------------------------------------------------------------
| SageMath Version 7.0, Release Date: 2016-01-19                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.

----------------------------------------------------------------------
sage: 
sage: 
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# SAMTOOLS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-samtools-is-part-of-">SAMTOOLS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, CUFFLINKS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the SAMTOOLS home page here [\[1\]](http://samtools.sourceforge.net/index.shtml).

At the CUNY HPCC SAMTOOLS is installed on ANDY. SAMTOOLS is a collection of utilities for extracting, reformatting, and displaying nucleotide sequences. The primary tool is called 'samtools' and offers a large number of command-line options. For smaller tasks, SAMTOOLS can be run interactively, but should be run in SLURM batch mode when larger, longer tasks are anticipated. NOTE: that display tasks cannot be run in pure SLURM batch mode because the output is displayed. Larger display tasks should be run in SLURM interactive mode as described in the SLURM section elsewhere in this document.

Below is an example SLURM script that will convert the 'toy.sam' file provided with the distribution from SAM to BAM format. This and all the example files can be copied from the local installation directory to your current location as follows:

```
cp /share/apps/samtools/default/examples/* .
```

To include all required environmental variables and the path to the SAMTOOLS executables run the modules load command (the modules utility is discussed in detail above):

```
module load samtools
```

Running 'samtools' from the interactive prompt without any options will provide a brief description of the form of the command-line argument and options. Here is SLURM batch script that does a short format conversion in batch mode:

```
#!/bin/bash
#SLURM -q production
#SLURM -N SAMTLS_serial
#SLURM -l select=1:ncpus=1:mem=2880mb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# Point to the execution directory to run
echo ">>>> Begin SAMTLS Serial Run ..."
samtools view -bS toy.sam > toy.bam 2 > toy.err
echo ">>>> End   SAMTLS Serial Run ..."
```

This script can be dropped in to a file (say samtools\_ser.job) and started with the command:

```
qsub samtools_ser.job
```

Running this conversion test case should take less than 1 minutes and will produce SLURM output and error files beginning with the job name 'SAMTLS\_serial'. The primary SAMTOOLS application results will be written into the user-specified file at the end of the TOPHAT command line after the greater-than sign. Here it is named 'toy.bam' The expression '2 &gt; toy.err' at the end of the command-line directs Unix standard error to the file 'toy.err'. Users should always explicitly specify the name of the application's output files to ensure that they are written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SLURM -l select=1:ncpus=1:mem=2880mb' and the '#SLURM -l pack=free' lines. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job on the least buy node where the requested resources can be found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# STRUCTURE (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-following-slurm-">The following SLURM batch script shows how to run a single, basic Structure serial job:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name STRUCT_simple
#SBATCH --nodes=1
#SBATCH --ntasks=1


# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Set the root directory for the 'structure' binary
STROOT=/share/apps/structure/default/bin

# Point to the execution directory to run
echo ">>>> Begin STRUCTURE Serial Run ..."
echo ""
${STROOT}/structure -K 1 -m mainparams -i ./sim.str -o ./sim_k1_run1.out
echo ""
echo ">>>> End   STRUCTURE Serial Run ..."
```

This script can be dropped into a file (say 'struct\_serial.job') and submitted for execution using the following SLURM command:

```
qsub struct_serial.job
```

This test input file should take less than 5 minutes to run and will produce SLURM output and error files beginning with the job name 'STRUCT\_simple'. Additional, Structure-specific output files will also be created, including an output file called 'sim\_k1\_run1.out\_f'. Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1 ntasks=1'. The first instructs SLURM to select 1 resource 'chunk' each with 1 processor (core). The second instructs SLURM to place this job wherever the least used resources are found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

The Structure program requires its own input and data files, properly configured, to run successfully. For the example above these include the input file ('sim.str' above), the 'mainparams' file ('mainparams.10mil.k1' above), and the 'extraparams' file (the default name, 'extraparams' is used in the example above). The user is responsible for configuring these files correctly for each run, but the data files for this example and others can be found in the directory:

```
/share/apps/structure/default/examples
```

on ANDY.

Often, Structure users are interested in making multiple runs over a large simulation regime-space. This requires appropriately configured input and parameter files for each individual run. Data file configuration can be done manually or with the help of the Python-based tool StrAuto. The HPC Center has installed StrAuto to support running multiple Structure runs. StrAuto is documented at its download site here [\[1\]](http://www.crypticlineage.net/download/python/strauto/userguide.pdf)and all the files, including the primary Python-based tool, 'strauto-0.3.1.py' are available in:

```
/share/apps/strauto/default
```

In this process, the StrAuto script, 'strauto-0.3.1.py', (found in '/share/apps/strauto/default/bin') is run in the presence of a user-created, regime-space configuration file called 'input.py'. This produces a Unix script file called 'runstructure' that can then be used to run the user-defined spectrum of cases, one after another. NOTE: the 'strauto-0.3.1.py' script requires Python 2.7.2 to run correctly. This version is NOT the default version of Python installed on BOB; and therefore, users of StrAuto must invoke the 'strauto-0.3.1.py' script using a specially installed version of Python, as follows:

```
/share/apps/epd/7.3-2/bin/python ./strauto-0.3.1.py
```

The above command assumes that 'strauto-0.3.1.py' has been copied into the user's directory and that the required 'input.py' file is also present there. The contents of the 'runstructure' file produced can then be integrated into a SLURM batch script similar to the simple, single-run script shown above, but designed to run each case in the simulation regime-space in succession. Here is an example of just such a runstructure-adapted SLURM script:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name STRUCT_cmplx
#SBATCH --nodes=1
#SBATCH --ntasks=1


#-----------------------------------------------------------------------------------
# This SLURM batch script is based on the 'runstructure' script generated by 
# Vikram Chhatre's setup and pre-processing program 'strauto-0.3.1.py' written
# in Python at Texas A&M University to be used with the 'structure' application.
#
# Each 'runstructure' script is custom-generated by the 'strauto-0.3.0.py' python 
# based on a custom input file.  It completes a series of runs over a regime defined 
# by the 'structure' user for that custom input file only.  This means it will only 
# work for that input data file. 
#                   Email: crypticlineage (at) tamu.edu                        
#-----------------------------------------------------------------------------------

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Setup a directory structure for the multiple 'structure' runs
mkdir results_f log harvester
mkdir k1
mkdir k2
mkdir k3
mkdir k4
mkdir k5

cd log
mkdir k1
mkdir k2
mkdir k3
mkdir k4
mkdir k5

cd ..

# Set the root directory for the 'structure' binary
STROOT=/share/apps/structure/default/bin

# Point to the execution directory to run
echo ">>>> Begin Multiple STRUCTURE Serial Runs ..."
echo ""

${STROOT}/structure -K 1 -m mainparams -o k1/sim_k1_run1 2>&1 | tee log/k1/sim_k1_run1.log
${STROOT}/structure -K 1 -m mainparams -o k1/sim_k1_run2 2>&1 | tee log/k1/sim_k1_run2.log
${STROOT}/structure -K 1 -m mainparams -o k1/sim_k1_run3 2>&1 | tee log/k1/sim_k1_run3.log
${STROOT}/structure -K 2 -m mainparams -o k2/sim_k2_run1 2>&1 | tee log/k2/sim_k2_run1.log
${STROOT}/structure -K 2 -m mainparams -o k2/sim_k2_run2 2>&1 | tee log/k2/sim_k2_run2.log
${STROOT}/structure -K 2 -m mainparams -o k2/sim_k2_run3 2>&1 | tee log/k2/sim_k2_run3.log
${STROOT}/structure -K 3 -m mainparams -o k3/sim_k3_run1 2>&1 | tee log/k3/sim_k3_run1.log
${STROOT}/structure -K 3 -m mainparams -o k3/sim_k3_run2 2>&1 | tee log/k3/sim_k3_run2.log
${STROOT}/structure -K 3 -m mainparams -o k3/sim_k3_run3 2>&1 | tee log/k3/sim_k3_run3.log
${STROOT}/structure -K 4 -m mainparams -o k4/sim_k4_run1 2>&1 | tee log/k4/sim_k4_run1.log
${STROOT}/structure -K 4 -m mainparams -o k4/sim_k4_run2 2>&1 | tee log/k4/sim_k4_run2.log
${STROOT}/structure -K 4 -m mainparams -o k4/sim_k4_run3 2>&1 | tee log/k4/sim_k4_run3.log
${STROOT}/structure -K 5 -m mainparams -o k5/sim_k5_run1 2>&1 | tee log/k5/sim_k5_run1.log
${STROOT}/structure -K 5 -m mainparams -o k5/sim_k5_run2 2>&1 | tee log/k5/sim_k5_run2.log
${STROOT}/structure -K 5 -m mainparams -o k5/sim_k5_run3 2>&1 | tee log/k5/sim_k5_run3.log

# Consolidate all results in a single 'zip' file
mv k1 k2 k3 k4 k5  results_f/
cd results_f/
cp k*/*_f . && zip sim_Harvester-Upload.zip *_f && rm *_f
mv sim_Harvester-Upload.zip ../harvester/
cd ..

echo ""
echo ">>>> Zip Archive: sim_Harvester-Upload.zip is Ready ... "
echo ">>>> End  Multiple  STRUCTURE Serial Runs ..."
```

This script can be dropped into a file (say 'struct\_cmplx.job') and submitted for execution using the following SLURM command:

```
qsub struct_cmplx.job
```

The 'struct\_cmplx.job' script runs one Structure job after another each with a slightly different set of input parameters. All the associated files and directories from a successful StrAuto-supported run of Structure using this script can be found on ANDY in:

```
/share/apps/strauto/default/examples
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# TOPHAT (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-other-tools-in-t">The other tools in this collection, BOWTIE, CUFFLINKS, and SAMTOOLS are also installed at the CUNY HPCC. Additional information can be found at the TOPHAT home page here [\[1\]](http://tophat.cbcb.umd.edu/index.html).

At the CUNY HPCC TOPHAT is installed on ANDY. TOPHAT is a parallel threaded code (pthreads) that takes its input from a simple text file provided on the command line. Below is an example SLURM script that will run the mRNA test case provided with the distribution and which can be copied from the local installation directory to your current location as follows:

```
cp /share/apps/tophat/default/examples/* .
```

To include all required environmental variables and the path to the TOPHAT executable run the modules load command (the modules utility is discussed in detail above):

```
module load tophat
```

Running 'tophat' from the interactive prompt without any options will provide a brief description of the form of the command-line argument and options. Here is SLURM batch script that builds the index and aligns the sequences in serial mode:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name TOPHAT_serial
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUMBIT_DIR

# Point to the execution directory to run
echo ">>>> Begin TOPHAT Serial Run ..."
tophat -r 20 test_ref reads_1.fq reads_2.fq > tophat_mrna.out 2>&1
echo ">>>> End   TOPHAT Serial Run ..."
```

This script can be dropped in to a file (say tophat\_ser.job) and started with the command:

```
qsub tophat_ser.job
```

Running the mRNA test case should take less than 2 minutes and will produce SLURM output and error files beginning with the job name 'TOPHAT\_serial'. The primary TOPHAT application results will be written into the user-specified file at the end of the TOPHAT command line after the greater-than sign. Here it is named 'tophat\_mrna.out.' The expression '2&gt;&amp;1' at the end of the command-line combines Unix standard output from the program with Unix standard error. Users should always explicitly specify the name of the application's output file in this way to ensure that it is written directly into the user's working directory which has much more disk space than the SLURM spool directory on /var.

Details on the meaning of the SLURM script are covered below in the SLURM section. The most important lines are the '#SBATCH --nodes=1:ntasks=1 mem=2880'. The first instructs SLURM to select 1 resource 'chunk' with 1 processor (core) and 2,880 MBs of memory in it for the job. The second instructs SLURM to place this job wherever the least used resources can be found (freely). The master compute node that SLURM finally selects to run your job will be printed in the SLURM output file by the 'hostname' command.

To run TOPHAT in parallel-threads mode several changes to the script are required. Here is a modified script that shows how to run TOPHAT using two threads. ANDY has as many as 8 physical compute cores per compute node, and therefore as many as 8 cores-threads might be chosen. Once a parallel job starts it will generally (not always) complete in less time, but jobs requesting a larger the number of cores-threads or memory per node may wait longer to start on a busy system as SLURM looks for a compute node with all the resources requested.

```
#!/bin/bash
#SLURM --partition production
#SBATCH --job-name TOPHAT_threads
#SBATCH --nodes=1
#SBATCH --ntasks=2
#SBATCH --mem=5760

# Find out name of master execution host (compute node)
echo -n ">>>> SBATCH Master compute node is: "
hostname

# You must explicitly change to the working directory in SBATCH
cd $SBATCH_SUBMIT_DIR

# Point to the execution directory to run
echo ">>>> Begin TOPHAT Threaded Run ..."
tophat -p 2 -r 20 test_ref reads_1.fq reads_2.fq > tophat_thrds.out 2>&1
echo ">>>> End   TOPHAT Threaded Run ..."
```

Notice the difference in the '-l select' line where the resource 'chunk' now includes 2 cores (ntasks=2) and requests twice as much memory as before. Also, notice that the TOPHAT command-line now includes the '-p 2' option to run the code with 2 threads working in parallel. Perfectly or 'embarrassingly' parallel workloads can run close to 2, 4, or more times as fast as the same workload in serial mode depending on the number of threads requested, but workloads cannot be counted on to be perfectly parallel.

The speed ups that you observe will typically be less than perfect and diminish as you ask for more cores-threads. Large data jobs will typically scale more efficiently as you add cores-threads, but users should take note of the performance gains that they see as cores-threads are added and select a core-thread count the provides efficient scaling and avoids diminishing returns.

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# USEARCH (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-usearch-%2864-bit-vers">USEARCH (64 bit version) is installed on Penzias HPC cluster. To start using USEARCH load corresponding module first:

```
module load usearch  
```

  
Example SLURM script that can be used to submit a job with a typical USEARCH workflow is shown below:

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name usearch_x
#SBATCH --nodes=1
#SBATCH --ntasks=1


cd $SLURM_SUBMIT_DIR
echo "Starting..."
cp /share/apps/usearch/8.0.1623/sample/reads.fq ./
usearch8.0.1623 -fastq_filter reads.fq  -fastaout reads.fa
usearch8.0.1623 -derep_fulllength reads.fa -fastaout derep.fa -sizeout
usearch8.0.1623 -sortbysize derep.fa -fastaout sorted.fa -minsize 1
usearch8.0.1623 -cluster_otus sorted.fa -otus otus1.fa -relabel OTU_ -sizeout -uparseout results.txt
echo "Done!"
```

Additional USEARCH documentation may be found on [USEARCH web site](http://www.drive5.com/usearch/manual).

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)

# WRF (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-there-are-two-distin">There are two distinct WRF development trees and versions, one for production forecasting and another for research and development. NCAR's experimental, advanced research version, called ARW (Advanced Research WRF) features very high resolution and is being used to explore ways of improving the accuracy of hurricane tracking, hurricane intensity, and rainfall forecasts, among a host of other meteorological questions. It is ARW along with its pre- and post- processing modules (WPS and WPP), and the MET and GRaDS display tools that are supported here at the CUNY HPCC. ARW is supported on both the the CUNY HPCC SGI (ANDY) and Cray (SALK). The CUNY HPCC build includes the NCAR Command Language (NCL) tools on both SALK and ANDY.

A complete start-to-finished use of ARW requires a significant number of steps in pre-processing, parallel production modeling, and post-processing and display. There are several alternative paths that can be taken through each stage. In particular, ARW itself offers users the ability to process either real or idealized weather data. Completing one type of simulation or the other requires different steps and even different user-compiled versions of the ARW executable. To help our users familiarize themselves with running ARW at the CUNY HPCC, the steps required to complete a start-to-finish, real-case forecast are presented below. For more complete coverage, the CUNY HPCC recommends that new users study the detailed description of the ARW package and how to use it at the University Corporation for Atmospheric Research (UCAR) website here [\[1\]](http://www.mmm.ucar.edu/wrf/OnLineTutorial/Basics/index.html).

#### **<span class="mw-headline" id="bkmrk-wrf-pre-processing-w-1">WRF Pre-Processing with WPS</span>**

The WPS part of the WRF package is responsible for mapping time-equals-zero simulation input data onto the simulation domain's terrain. This process involves the execution of the preprocessing applications geogrid.exe, ungrib.exe, and metgrid.exe. Each of these applications reads its input parameters from the 'namelist.wps' input specifications file.

NOTE: In general, these steps do not take much processing time; however, in some cases they may. When users discover that pre-processing steps are running longer than five minutes as interactive jobs on the head node of either ANDY or SALK they should be instead run as batch jobs. HPC Center staff may decide to kill such long-running interactive pre-processing steps if they are slowing head node performance.

In the example presented here, we will run a weather simulation based on input data provided from January of 2000 for the eastern United States. These steps should work both on ANDY and SALK with minor differences as noted. To begin this example, create a working WPS directory and copy the test case namelist file into it.

```
mkdir -p $HOME/wrftest/wps
cd $HOME/wrftest/wps
cp /share/apps/wrf/default/WPS/namelist.wps .
```

Next, you should edit the 'namelist.wps' to point to the sample data made available in the WRF installation tree. This involves making sure that the 'geog\_data\_path' assignment in the geogrid section of the namelist file points to the sample data tree. From an editor make the following assignment:

```
geog_data_path = '/share/apps/wrf/default/WPS_DATA/geog'
```

Once this is completed, you must symbolically link or copy the geogrid data table directory to your working directory ($HOME/wrftest/wps here).

```
ln -sf /share/apps/wrf/default/WPS/geogrid ./geogrid
```

Now, you can run 'geogrid.exe', the geogrid executable, which defines the simulation domains and interpolates the various terrestrial data sets between the model's grid lines. The global environment on ANDY has been set to include the path to all the WRF-related executables including 'geogrid.exe'. On SALK, you must load the WRF module ('module load wrf') first to set the environment. The geogrid executable is an MPI parallel program which could be run in parallel as part of a SLURM batch script to complete the combined WRF preprocessing and execution steps, but often it runs only a short while and can be run interactively on ANDY's head node before submitting a full WRF batch job.

First you will first have to load the WRF module with:

```
module load wrf
```

Once this is done from the $HOME/wrftest/wps working directory run:

```
geogrid.exe > geogrid.out
```

On Salk (Cray system) you will have to run:

```
 aprun -n 1 geogrid.exe > geogrid.out
```

Note that 'geogrid.exe' is an MPI program and can be run in parallel. Long running WRF pre-processing jobs should be run either with more cores per node interactively as above (with -n 8, or -n 16) or as complete SLURM batch jobs, so that SALK's interactive nodes are not held by long running jobs.

Two domain files should be produced (geo\_em.d01.nc geo\_em.d02.nc) for this basic test case, as well as a log and output file which indicates success at the end with:

```
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  Successful completion of geogrid.        !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
```

The next required preprocessing step is to run 'ungrib.exe', the ungrib executable. The purpose of ungrib is to unpack 'GRIB' ('GRIB1' and 'GRIB2') meteorological data and pack it into an intermediate file format usable by 'metgrid.exe' in the final preprocessing step.

The data for the January 2000 simulation being documented here has already been downloaded and placed in the WRF installation tree in /share/apps/wrf/default/WPS\_DATA. Before running 'ungrib.exe', the WRF installation 'Vtable' file must first be symbolically linked into the working directory with:

```
$ln -sf /share/apps/wrf/default/WPS/ungrib/Variable_Tables/Vtable.AWIP Vtable
$ls
geo_em.d01.nc  geo_em.d02.nc  geogrid  geogrid.log  namelist.wps  Vtable
```

The Vtable file specifies which fields to unpack from the GRIB files. The Vtables list the fields and their GRIB codes that must be unpacked. For this test case the required Vtable file has already been defined, but users may have to construct a custom Vtable file for their data.

Next, the GRIB files themselves must also be symbolically linked into the working directory. WRF provides a script to do this.

```
$link_grib.csh /share/apps/wrf/default/WPS_DATA/JAN00/2000012
$ls
geo_em.d01.nc  geogrid      GRIBFILE.AAA  GRIBFILE.AAC  GRIBFILE.AAE  GRIBFILE.AAG  GRIBFILE.AAI  GRIBFILE.AAK  GRIBFILE.AAM  namelist.wps
geo_em.d02.nc  geogrid.log  GRIBFILE.AAB  GRIBFILE.AAD  GRIBFILE.AAF  GRIBFILE.AAH  GRIBFILE.AAJ  GRIBFILE.AAL  GRIBFILE.AAN  Vtable
```

Note 'ls' shows that the 'GRIB' files are now present.

Next, more edits to the 'namelist.wps' file are required--one to set the start and end dates for the simulation to our January 2000 time frame, and the second to set the number of simulation seconds to complete (21600 / 3600 = 6.0 hours in this case). Edit the 'namelist.wps' file by setting the following in the shared section of the file:

```
 start_date = '2000-01-24_12:00:00','2000-01-24_12:00:00',
 end_date   = '2000-01-25_12:00:00','2000-01-25_12:00:00',
interval_seconds = 21600
```

Now you can run 'ungrib.exe' to create the intermediate files required by 'metgrid.exe':

```
$ungrib.exe > ungrib.out
$ls
FILE:2000-01-24_12  FILE:2000-01-25_06  geo_em.d02.nc  GRIBFILE.AAA  GRIBFILE.AAD  GRIBFILE.AAG  GRIBFILE.AAJ  GRIBFILE.AAM  ungrib.log
FILE:2000-01-24_18  FILE:2000-01-25_12  geogrid        GRIBFILE.AAB  GRIBFILE.AAE  GRIBFILE.AAH  GRIBFILE.AAK  GRIBFILE.AAN  ungrib.out
FILE:2000-01-25_00  geo_em.d01.nc       geogrid.log    GRIBFILE.AAC  GRIBFILE.AAF  GRIBFILE.AAI  GRIBFILE.AAL  namelist.wps  Vtable
```

Note that 'ungrib.exe', unlike the other pre-processing tools mentioned here, is NOT an MPI parallel program and for larger WRF jobs can run for a fairly long time. Long running 'ungrib.exe' pre-processing jobs should be run as complete SLURM batch jobs, so that SALK's interactive nodes are not held for hours at a time.

After a successful 'ungrib.exe' run you should get the familiar message at the end of the output file:

```
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Successful completion of ungrib.!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
```

Like geogrid, the metgrid executable, 'metgrid.exe' needs to be able to find its table directory in the preprocessing working directory. The metgrid table directory may either be copied or symbolically linked into the working directory location.

```
ln -sf /share/apps/wrf/default/WPS/metgrid ./metgrid
```

Finally, all the files required for a successful run of 'metgrid.exe' have been provided. Like 'geogrid.exe', 'metgrid.exe' is an MPI parallel program that could be run in SLURM batch mode, but often runs for only a short time and can be run on ANDY's head node, as follows:

```
$metgrid.exe > metgrid.out 
$ls
FILE:2000-01-24_12  geogrid       GRIBFILE.AAF  GRIBFILE.AAM                       met_em.d02.2000-01-24_12:00:00.nc  metgrid.out
FILE:2000-01-24_18  geogrid.log   GRIBFILE.AAG  GRIBFILE.AAN                       met_em.d02.2000-01-24_18:00:00.nc  namelist.wps
FILE:2000-01-25_00  GRIBFILE.AAA  GRIBFILE.AAH  met_em.d01.2000-01-24_12:00:00.nc  met_em.d02.2000-01-25_00:00:00.nc  ungrib.log
FILE:2000-01-25_06  GRIBFILE.AAB  GRIBFILE.AAI  met_em.d01.2000-01-24_18:00:00.nc  met_em.d02.2000-01-25_06:00:00.nc  ungrib.out
FILE:2000-01-25_12  GRIBFILE.AAC  GRIBFILE.AAJ  met_em.d01.2000-01-25_00:00:00.nc  met_em.d02.2000-01-25_12:00:00.nc  Vtable
geo_em.d01.nc       GRIBFILE.AAD  GRIBFILE.AAK  met_em.d01.2000-01-25_06:00:00.nc  metgrid
geo_em.d02.nc       GRIBFILE.AAE  GRIBFILE.AAL  met_em.d01.2000-01-25_12:00:00.nc  metgrid.log
```

If you are on SALK (Cray XE6), you will have to run:

```
 aprun -n 1 metgrid.exe > metgrid.out
```

Note that 'metgrid.exe' is an MPI program and can be run in parallel. Long running WRF pre-processing jobs should be run either with more cores per node interactively as above (with -n 8, or -n 16) or as complete SLURM batch jobs, so that SALK's interactive nodes are not held by long running jobs.

Successful runs will produce an output file that includes:

```
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  Successful completion of metgrid.  !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
```

Note that the met files required by WRF are now present (see the 'ls' output above). At this point, the preprocessing phase of this WRF sample run is complete. We can move on to actually running this real (not ideal) WRF test case using the SLURM Pro batch scheduler in MPI parallel mode.

#### **<span class="mw-headline" id="bkmrk-running-a-wrf-real-c-1">Running a WRF Real Case in Parallel Using SLURM</span>**

Our frame of reference now turns to running 'real.exe' and 'wrf.exe' in parallel on ANDY or SALK via SLURM Pro. As you perhaps noticed in walking through the preprocessing steps above, the preprocessing files are all installed in their own subdirectory (WPS) under the WRF installation tree root (/share/apps/wrf/default). The same is true for the files to run WRF. They reside under the WRF install root in the 'WRFV3' subdirectory.

Within this 'WRFV3' directory, the 'run' subdirectory contains the all common files needed for a 'wrf.exe' run except the 'met' files that were just created in the preprocessing section above and those that are produced by 'real.exe' which is run before 'wrf.exe' in real-data weather forecasts.

Note that the ARW version of WRF allows one to produce a number of different executables depending on the type of run that is needed. Here, we are relying on the fact that the 'em\_real' version of the code has already been built. Currently, the CUNY HPCC has only compiled this version of WRF. Other versions can be compiled upon request. The subdirectory 'test' underneath the 'WRFV3' directory contains additional subdirectories for each type of WRF build (em\_real, em\_fire, em\_hill2d\_x, etc.).

To complete an MPI parallel run of this WRF real data case, a 'wrfv3/run' working directory for your run should be created, and it must be filled with the required files from the installation root's 'run' directory, as follows:

```
$cd $HOME/wrftest
$mkdir -p wrfv3/run
$cd wrfv3/run
$cp /share/apps/wrf/default/WRFV3/run/* .
$rm *.exe
$
$ls
CAM_ABS_DATA       ETAMPNEW_DATA.expanded_rain      LANDUSE.TBL            ozone_lat.formatted   RRTM_DATA_DBL      SOILPARM.TBL  URBPARM_UZE.TBL
CAM_AEROPT_DATA    ETAMPNEW_DATA.expanded_rain_DBL  MPTABLE.TBL            ozone_plev.formatted  RRTMG_LW_DATA      tr49t67       VEGPARM.TBL
co2_trans          GENPARM.TBL                      namelist.input         README.namelist       RRTMG_LW_DATA_DBL  tr49t85
ETAMPNEW_DATA      grib2map.tbl                     namelist.input.backup  README.tslist         RRTMG_SW_DATA      tr67t85
ETAMPNEW_DATA_DBL  gribmap.txt                      ozone.formatted        RRTM_DATA             RRTMG_SW_DATA_DBL  URBPARM.TBL
$
```

Note that the '\*.exe' files were removed in the sequence above after the copy because they are already pointed to by ANDY's and SALK's system PATH variable.

Next, the 'met' files produced during the preprocessing phase above need to be copied or symbolically linked into the 'wrv3/run' directory.

```
$
$pwd
/home/guest/wrftest/wrfv3/run
$
$cp ../../wps/met_em* .
$ls
CAM_ABS_DATA                     grib2map.tbl                       namelist.input         RRTM_DATA_DBL      tr67t85
CAM_AEROPT_DATA                  gribmap.txt                        namelist.input.backup  RRTMG_LW_DATA      URBPARM.TBL
co2_trans                        LANDUSE.TBL                        ozone.formatted        RRTMG_LW_DATA_DBL  URBPARM_UZE.TBL
ETAMPNEW_DATA                    met_em.d01.2000-01-24_12:00:00.nc  ozone_lat.formatted    RRTMG_SW_DATA      VEGPARM.TBL
ETAMPNEW_DATA_DBL                met_em.d01.2000-01-25_12:00:00.nc  ozone_plev.formatted   RRTMG_SW_DATA_DBL
ETAMPNEW_DATA.expanded_rain      met_em.d02.2000-01-24_12:00:00.nc  README.namelist        SOILPARM.TBL
ETAMPNEW_DATA.expanded_rain_DBL  met_em.d02.2000-01-25_12:00:00.nc  README.tslist          tr49t67
GENPARM.TBL                      MPTABLE.TBL                        RRTM_DATA              tr49t85
$
```

The user may have edits to complete on the WRF 'namelist.input' file listed to craft the exact job they wish to run. The default namelist file copied into our working directory is in large part what is needed for this test run, but we will reduce the total simulation time (for the weather model, not the job) from from 12 to 1 hour by setting the 'run\_hours' variable to 1.

At this point we are ready to submit a SLURM job. The SLURM Pro batch script below first runs 'real.exe' which creates the WRF input files 'wrfbdy\_d01' and 'wrfinput\_d01', and then runs 'wrf.exe' itself. Both executables are MPI parallel programs, and here they are both run on 16 processors. Here is the 'wrftest.job' SLURM script that will run on ANDY:

```
#!/bin/bash
#SBATCH --partition production_gdr
#SBATCH --job-name wrf_realem 
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --mem=2880

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
echo ""
hostname
echo ""

# Find out the contents of the SLURM node file which names the node
# allocated by SLURM
echo -n ">>>> SLURM Node file contains: "
echo ""
cat $SLURM_NODEFILE
echo ""

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Just point to the pre-processing executable to run
echo ">>>> Runnning REAL.exe executable ..."
mpirun -np 16 /share/apps/wrf/default/WRFV3/run/real.exe
echo ">>>> Running WRF.exe executable ..."
mpirun -np 16 /share/apps/wrf/default/WRFV3/run/wrf.exe
echo ">>>> Finished WRF test run ..."
```

The full path to each executable is used for illustrative purposes, but both binaries (real.exe and wrf.exe) are in the WRF install tree run directory and would be picked up from the system PATH environmental variable without the full path. This job requests 16 resource chunks, each with 1 processor and 2880 MBytes of memory. This job asks to be run on the QDR InfiniBand (faster interconnect) side of the ANDY system. Details on the use and meaning of the SLURM option section of the job are available elsewhere in the CUNY HPCC Wiki.

To submit the job type:

```
qsub wrftest.job
```

A slightly difference version of the script is required to run the same job on SALK (the Cray):

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --job-name wrf_realem 
#SBATCH --nodes=16
#SBATCH --ntasks=1
#SBATCH --o wrf_test16_O1.out




# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
echo ""
hostname
echo ""

# Find out the contents of the SLURM node file which names the node
# allocated by SLURM
echo -n ">>>> SLURM Node file contains: "
echo ""
cat $SLURM_NODEFILE
echo ""

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

# Tune some MPICH parameters on the Cray
export MALLOC_MMAP_MAX=0
export MALLOC_TRIM_THRESHOLD=536870912
export MPICH_RANK_ORDER 3

# Just point to the pre-processing executable to run
echo ">>>> Runnning REAL.exe executable ..."
aprun -n 16  /share/apps/wrf/default/WRFV3/run/real.exe
echo ">>>> Running WRF.exe executable ..."
aprun -n 16  /share/apps/wrf/default/WRFV3/run/wrf.exe
echo ">>>> Finished WRF test run ..."
```

A successful run on either ANDY or SALK will produce an 'rsl.out' and 'rsl.error' file for each processor on which the job ran. So for this test case there will be 16 of each such files. The 'rsl.out' files reflect the run settings requested in the namelist file and then time-stamp the progress the job is making until the total simulation time is completed. The tail end of an 'rsl.out' file for a successful run should look like this:

```
:
:
v
Timing for main: time 2000-01-24_12:45:00 on domain   1:    0.06060 elapsed seconds.
Timing for main: time 2000-01-24_12:48:00 on domain   1:    0.06300 elapsed seconds.
Timing for main: time 2000-01-24_12:51:00 on domain   1:    0.06090 elapsed seconds.
Timing for main: time 2000-01-24_12:54:00 on domain   1:    0.06340 elapsed seconds.
Timing for main: time 2000-01-24_12:57:00 on domain   1:    0.06120 elapsed seconds.
Timing for main: time 2000-01-24_13:00:00 on domain   1:    0.06330 elapsed seconds.
 d01 2000-01-24_13:00:00 wrf: SUCCESS COMPLETE WRF
taskid: 0 hostname: gpute-2
taskid: 0 hostname: gpute-2
```

#### **<span class="mw-headline" id="bkmrk-post-processing-and--1">Post-Processing and Displaying WRF Results</span>**

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)
- [WRF and ADCIRC](https://wiki.csi.cuny.edu/books/software-applications/page/wrf-and-adcirc)

# APPLICATIONS (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-application-installe"><div class="noautonum"><table class="wikitable"><caption></caption><tbody><tr><th>Application </th><th>Installed Version </th><th>Current Version </th><th>Dependencies </th></tr><tr><td>ABINIT </td><td>8.2.2 </td><td>9.6.2 </td><td></td></tr><tr><td>ASE </td><td>3.18.0 </td><td>Git commit f785806 </td><td>Python 3.6+, NumPy, SciPy Optional: Matplotlib, tkinter, Flask

</td></tr><tr><td>G-PhoCS </td><td>1.3 </td><td>1.3 </td><td></td></tr><tr><td>GMP </td><td>6.1.2 </td><td>6.1.2 </td><td></td></tr><tr><td>GPAW </td><td>19.8.1 </td><td>22.8 </td><td></td></tr><tr><td>Gerris </td><td>20131206 </td><td>20131206 </td><td></td></tr><tr><td>HDF5 </td><td>1.8.17/1.10.1 </td><td>1.13.3 </td><td></td></tr><tr><td>LAME </td><td>3.100 </td><td>3.100 </td><td></td></tr><tr><td>XML-Parser </td><td>2.44\_01 </td><td></td><td></td></tr><tr><td>abyss </td><td>1.3.7 / 1.5.7 </td><td>2.3.5 </td><td></td></tr><tr><td>adcirc </td><td>50\_99\_07 </td><td>167f586 </td><td></td></tr><tr><td>adda </td><td>1.2.0 </td><td></td><td></td></tr><tr><td>anvio </td><td>2.0.2 </td><td>7.1 </td><td></td></tr><tr><td>armadillo </td><td>9.2.7 / 9.200.7 </td><td>11.4.x </td><td></td></tr><tr><td>arpack </td><td>3.1.5 </td><td>Now maintained at arpack-ng </td><td></td></tr><tr><td>augustus </td><td>3.2.2 </td><td>3.5.0 </td><td></td></tr><tr><td>autodock </td><td>4.2.6 </td><td></td><td></td></tr><tr><td>autodock\_vina </td><td>1.1.2 </td><td>1.2.0 </td><td></td></tr><tr><td>bamm </td><td>2.3.0 </td><td></td><td></td></tr><tr><td>bamova </td><td>1.02 </td><td></td><td></td></tr><tr><td>bamtools </td><td>2.30 / 2.5.2 </td><td></td><td></td></tr><tr><td>basilisk </td><td>v2019 </td><td></td><td></td></tr><tr><td>bayescan </td><td>2.1 </td><td></td><td></td></tr><tr><td>beast </td><td>1.8.4 / 2.4.6 </td><td></td><td></td></tr><tr><td>beast2 </td><td>2.6.0 </td><td></td><td></td></tr><tr><td>bedops </td><td>2.4.40 </td><td></td><td></td></tr><tr><td>bedtools </td><td>2.30.0 </td><td></td><td></td></tr><tr><td>bigwig </td><td>011921 </td><td></td><td></td></tr><tr><td>biobwa </td><td>0.7.17 </td><td></td><td></td></tr><tr><td>bioperl </td><td>1.6.923 </td><td></td><td></td></tr><tr><td>blast </td><td>2.3.0 </td><td></td><td></td></tr><tr><td>bowtie2 </td><td>2.2.6 </td><td></td><td></td></tr><tr><td>bpp </td><td>4.4.0 / 4.4.1 </td><td></td><td></td></tr><tr><td>cblas </td><td>1.20.11 </td><td></td><td></td></tr><tr><td>cmaq </td><td>5.3.2 </td><td></td><td></td></tr><tr><td>cmdstan </td><td>2.21.0 </td><td></td><td></td></tr><tr><td>cp2k </td><td>2.5.1 / 3.0 </td><td></td><td></td></tr><tr><td>cryoSPARC </td><td>2.11 </td><td></td><td></td></tr><tr><td>diamond </td><td>0.7.9 </td><td></td><td></td></tr><tr><td>doxygen </td><td>2014 </td><td></td><td></td></tr><tr><td>dualSP </td><td>4.2 / 4.3\_beta </td><td></td><td></td></tr><tr><td>eautils </td><td>02072017 </td><td></td><td></td></tr><tr><td>eclipse\_ptp </td><td>8.1.2 / 9.0 </td><td></td><td></td></tr><tr><td>eigen </td><td>3.2.8 </td><td></td><td></td></tr><tr><td>emacs </td><td>25.1 </td><td></td><td></td></tr><tr><td>exabayes </td><td>1.5 </td><td></td><td></td></tr><tr><td>examl </td><td>3.0.17 </td><td></td><td></td></tr><tr><td>fdppdiv </td><td>20140728 </td><td></td><td></td></tr><tr><td>fds\_smv </td><td>6.1.11 </td><td></td><td></td></tr><tr><td>ferret </td><td>6.96 </td><td></td><td></td></tr><tr><td>freetype </td><td>2.5.2 </td><td></td><td></td></tr><tr><td>fsplit </td><td>092214 </td><td></td><td></td></tr><tr><td>ga </td><td>5.3 </td><td></td><td></td></tr><tr><td>gamess-us </td><td>4.14.14 </td><td></td><td></td></tr><tr><td>gamma </td><td>20111212 </td><td></td><td></td></tr><tr><td>gap </td><td>4.6.5 / 4.7.5 </td><td></td><td></td></tr><tr><td>gatk </td><td>3.6 </td><td></td><td></td></tr><tr><td>gdc </td><td>1.0.1 </td><td></td><td></td></tr><tr><td>gerris </td><td>09.30.16\_EPYC / 12.06.13\_BM / 12.06.13\_EPYC / 12.06.13\_PNZ </td><td></td><td></td></tr><tr><td>ghc </td><td>7.8.2 </td><td></td><td></td></tr><tr><td>glog </td><td>0.3.3 </td><td></td><td></td></tr><tr><td>gnuplot </td><td>4.6.3 </td><td></td><td></td></tr><tr><td>gpaw </td><td>1.2.0 </td><td></td><td></td></tr><tr><td>gperf </td><td>3.0.4 </td><td></td><td></td></tr><tr><td>gpu-blast </td><td>2.2.28 </td><td></td><td></td></tr><tr><td>gromacs </td><td>5.1.4 / 5.1.5 / 2020.1\_mpi </td><td></td><td></td></tr><tr><td>help2man </td><td>1.47.3 </td><td></td><td></td></tr><tr><td>hoomd </td><td>1.3.3 </td><td></td><td></td></tr><tr><td>hpl </td><td>2.1 </td><td></td><td></td></tr><tr><td>humann </td><td>0.7.0 </td><td></td><td></td></tr><tr><td>ima2p </td><td>071717 </td><td></td><td></td></tr><tr><td>ipyrad </td><td>0.7.13 </td><td></td><td></td></tr><tr><td>itasser </td><td>4.2 / 5.0 </td><td></td><td></td></tr><tr><td>kokkos </td><td>2.9.00 </td><td></td><td></td></tr><tr><td>lammps </td><td>03.03.20 </td><td>06.02.22 </td><td></td></tr><tr><td>lmdb </td><td>20160810 </td><td></td><td></td></tr><tr><td>ls-dyna </td><td>6.0.0 / 7.1.2 / 8.0.0 / 8.1.0 / 9.1.0 / 10.0.0 </td><td></td><td></td></tr><tr><td>maker </td><td>2.31.8 </td><td></td><td></td></tr><tr><td>mathematica </td><td>10.0 </td><td></td><td></td></tr><tr><td>matlab </td><td>R2022a </td><td></td><td></td></tr><tr><td>meme </td><td>4.11.2 </td><td></td><td></td></tr><tr><td>mercurial </td><td>2.8 </td><td></td><td></td></tr><tr><td>metaphlan2 </td><td>2.0 </td><td></td><td></td></tr><tr><td>migrate </td><td>4.2.14 </td><td></td><td></td></tr><tr><td>minpath </td><td>1.2 </td><td></td><td></td></tr><tr><td>mpest </td><td>1.4 </td><td></td><td></td></tr><tr><td>mpfr </td><td>3.1.2 / 3.1.4 </td><td></td><td></td></tr><tr><td>mrbayes </td><td>3.2.7a </td><td></td><td></td></tr><tr><td>msbayes </td><td>20140305 </td><td></td><td></td></tr><tr><td>mumps </td><td>5.1.1 </td><td></td><td></td></tr><tr><td>muscle </td><td>3.8.31 </td><td></td><td></td></tr><tr><td>mutect </td><td>1.1.7 </td><td></td><td></td></tr><tr><td>namd </td><td>2.9 / 2.12 / 2.13 / 2.14 </td><td></td><td></td></tr><tr><td>nciplot </td><td>4.0 </td><td></td><td></td></tr><tr><td>ncview </td><td>2.1.7 </td><td></td><td></td></tr><tr><td>nek5000 </td><td>19.0\_epyc </td><td></td><td></td></tr><tr><td>netCDF </td><td>4.2 / 4.3.2 / 4.4.1 / 4.4.3 / 4.5.0 </td><td></td><td></td></tr><tr><td>nmrpipe </td><td>20170909 </td><td></td><td></td></tr><tr><td>nrlmol </td><td>10.0.4 </td><td></td><td></td></tr><tr><td>nvtop </td><td>1.0.0\_git </td><td></td><td></td></tr><tr><td>nwchem </td><td>6.6 / 6.8.1 </td><td></td><td></td></tr><tr><td>octopus </td><td>4.1.1 / 4.1.2 </td><td></td><td></td></tr><tr><td>openblas </td><td>2.8 </td><td></td><td></td></tr><tr><td>opencv </td><td>3.1.2 </td><td></td><td></td></tr><tr><td>openeye </td><td>latest </td><td></td><td></td></tr><tr><td>openfoam </td><td>2.3.0 / 5.0 </td><td></td><td></td></tr><tr><td>openmm </td><td>5.1 </td><td></td><td></td></tr><tr><td>opensees </td><td>5921 / 5955 </td><td></td><td></td></tr><tr><td>openshmem </td><td>1.0h </td><td></td><td></td></tr><tr><td>openwatcom </td><td>1.9 </td><td></td><td></td></tr><tr><td>orca </td><td>5.0.3 </td><td></td><td></td></tr><tr><td>pargap </td><td>1.3.5 </td><td></td><td></td></tr><tr><td>perl </td><td>5.24.0 </td><td></td><td></td></tr><tr><td>pfft </td><td>040415 </td><td></td><td></td></tr><tr><td>phase </td><td>2.1.1 </td><td></td><td></td></tr><tr><td>plasma </td><td>2.5 / 2.8 </td><td></td><td></td></tr><tr><td>plumed </td><td>2.4 </td><td></td><td></td></tr><tr><td>pyYAML </td><td>3.10 </td><td></td><td></td></tr><tr><td>pyrad </td><td>3.0.66 </td><td></td><td></td></tr><tr><td>qespresso </td><td>6.1 </td><td></td><td></td></tr><tr><td>qiime </td><td>1.9.1\_FULL\_P2.7 / 1.9.1\_FULL\_P3.6 / 1.9.1 / 2.0 </td><td></td><td></td></tr><tr><td>qiime2 </td><td>2020.2 </td><td></td><td></td></tr><tr><td>quantumEspresso </td><td>6.6\_cpu </td><td></td><td></td></tr><tr><td>qvina </td><td></td><td></td><td></td></tr><tr><td>raxml </td><td>0.1.0\_ng / 8.2.4 </td><td></td><td></td></tr><tr><td>relion </td><td>1.3\_gcc / 3.0 / 3.6\_apollo\_gnu / 3.6\_apollo\_intel\_i7 </td><td></td><td></td></tr><tr><td>repast </td><td>2.1.0 </td><td></td><td></td></tr><tr><td>rtfbsDB </td><td>012021 </td><td></td><td></td></tr><tr><td>sage </td><td>6.2 / 7.5.1 / 8.1 </td><td></td><td></td></tr><tr><td>samtools </td><td>1.3.1 / 1.14 </td><td></td><td></td></tr><tr><td>scons </td><td>2.3.0 </td><td></td><td></td></tr><tr><td>singularity </td><td>2.4.6 / 3.1.1 </td><td></td><td></td></tr><tr><td>snap </td><td>11.29.13 / 1.18\_beta </td><td></td><td></td></tr><tr><td>sparskit </td><td>030515 </td><td></td><td></td></tr><tr><td>splatche </td><td>2.1 </td><td></td><td></td></tr><tr><td>sprint </td><td>1.0 </td><td></td><td></td></tr><tr><td>sqlite </td><td>3.12.1 </td><td></td><td></td></tr><tr><td>sra </td><td>2.5.2 </td><td></td><td></td></tr><tr><td>stacks </td><td>1.23 </td><td></td><td></td></tr><tr><td>stan </td><td>2.22.0 </td><td></td><td></td></tr><tr><td>stata </td><td>12 </td><td></td><td></td></tr><tr><td>stem </td><td>2.0 </td><td></td><td></td></tr><tr><td>structurama </td><td>2.2.14 </td><td></td><td></td></tr><tr><td>swig </td><td>4.0.1 </td><td></td><td></td></tr><tr><td>tau </td><td>2.30 </td><td></td><td></td></tr><tr><td>tcl </td><td>8.6.1 </td><td></td><td></td></tr><tr><td>tensorflow </td><td>r0.11 </td><td></td><td></td></tr><tr><td>texinfo </td><td>6.1 </td><td></td><td></td></tr><tr><td>tinker </td><td>6.2 / 8.8.3 </td><td></td><td></td></tr><tr><td>tmux </td><td>2.5 </td><td></td><td></td></tr><tr><td>trinity </td><td>2.1.0 </td><td></td><td></td></tr><tr><td>usearch </td><td>5.2.236 / 6.0.307 / 6.1.544 / 7.0.1090 / 8.0.1517 / 8.0.1623 / 9.0.2124 </td><td></td><td></td></tr><tr><td>util-linux </td><td>2.29 </td><td></td><td></td></tr><tr><td>valgrind </td><td>3.10.1 </td><td></td><td></td></tr><tr><td>vmd </td><td>1.9.2 </td><td></td><td></td></tr><tr><td>vsearch </td><td>1.0.5 / 1.10.2 / 1.11.1 </td><td></td><td></td></tr><tr><td>wrf </td><td>3.5.0 / 4.3.0 </td><td></td><td></td></tr><tr><td>xmgrace </td><td>5.1.23 / 5.1.25 </td><td></td><td></td></tr><tr><td>xplor </td><td>2.38 / 2.39 </td><td></td><td></td></tr></tbody></table>

</div>**This is an index of available applications sorted by their academic relevance, as well as alphabetically.**

For information about using modules to run your applications go to [Using Modules To Run Your Applications](/bookstack/books/getting-started/page/software-modules-with-lmod "Using Modules To Run Your Applications (page does not exist)").

<div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-computational-physic-1">Computational Physics and Computational Chemistry</span>**

Applications in this section use classical mechanics, quantum mechanics and thermodynamics and are applied in simulation studies of fundamental properties of atoms, molecules, and chemical reactions.

<div class="mw-collapsible-content">AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/amber](/bookstack/books/software-applications/page/applications-environment-reference-guide)

AUTODOCK

<div class="toccolours mw-collapsible mw-collapsed">AutoDock is a suite of automated docking tools.

<div class="mw-collapsible-content"> It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: *autodock* itself performs the docking of the ligand to a set of grids describing the target protein; *autogrid* pre-calculates these grids. More information about the software may be found at the autodock web-page [\[1\]](http://autodock.scripps.edu/). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/autodock](/bookstack/books/software-applications/page/autodock-reference-guide)</div></div>CP2K

<div class="toccolours mw-collapsible mw-collapsed">CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

<div class="mw-collapsible-content">It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here [CP2K](/bookstack/books/software-applications/page/cp2k-reference-guide "CP2K").

</div></div>DL\_POLY

<div class="toccolours mw-collapsible mw-collapsed">DL\_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

<div class="mw-collapsible-content">Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here [DL\_POLY](/bookstack/books/software-applications/page/dl-poly-reference-guide "DL POLY").

</div></div>GAMESS-US

<div class="toccolours mw-collapsible mw-collapsed">GAMESS is a program for ab initio molecular quantum chemistry.

<div class="mw-collapsible-content">Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here [GAMESS-US](/bookstack/books/software-applications/page/gamess-us-reference-guide "GAMESS-US").

</div></div>Gaussian09

<div class="toccolours mw-collapsible mw-collapsed">Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

<div class="mw-collapsible-content">Gaussian09 is available for general use only on ANDY. The Gaussian User Guide can be found here at \[[\[2\]](http://www.gaussian.com)\]. More information about our installation can be found here [GAUSSIAN09](/bookstack/books/software-applications/page/gaussian09-reference-guide "GAUSSIAN09").

</div></div>GPAW

<div class="toccolours mw-collapsible mw-collapsed">GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

<div class="mw-collapsible-content">It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here [GPAW](/bookstack/books/software-applications/page/gpaw-reference-guide "GPAW").

</div></div>GROMACS

<div class="toccolours mw-collapsible mw-collapsed">GROMACS (Groningen Machine for Chemical Simulations)

<div class="mw-collapsible-content">GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/gromacs](/bookstack/books/software-applications/page/gromacs-reference-guide)Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

</div></div>HONDO PLUS

<div class="toccolours mw-collapsible mw-collapsed">Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

<div class="mw-collapsible-content">It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

[http://comp.chem.umn.edu/hondoplus/HONDOPLUS\_Manual\_v5.1.2007.2.17.pdf](http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf)

More information about our installation can be found here <a class="new" title="HONDO PLUS (page does not exist)">HONDO PLUS</a>.

</div></div>HOOMD

<div class="toccolours mw-collapsible mw-collapsed">Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

<div class="mw-collapsible-content">Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

</div></div>LAMMPS

<div class="toccolours mw-collapsible mw-collapsed">LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

<div class="mw-collapsible-content">It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [\[3\]](http://lammps.sandia.gov/doc/Manual.html) or from the full PDF manual here [\[4\]](http://lammps.sandia.gov/doc/Manual.pdf). Information about our installation can be found here [LAMMPS](/bookstack/books/software-applications/page/lammps-reference-guide "LAMMPS").

</div></div>NAMD

<div class="toccolours mw-collapsible mw-collapsed">NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [\[5\]](http://www.ks.uiuc.edu/Research/namd).

<div class="mw-collapsible-content">The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here [NAMD](/bookstack/books/software-applications/page/namd-reference-guide "NAMD")

</div></div>NWChem

<div class="toccolours mw-collapsible mw-collapsed">NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

<div class="mw-collapsible-content">NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here [NWChem](/bookstack/books/software-applications/page/nwchem-reference-guide "NWChem")

</div></div>Octopus

<div class="toccolours mw-collapsible mw-collapsed">Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional ﬁnite systems subject to time-dependent electromagnetic ﬁelds.

<div class="mw-collapsible-content">The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here [OCTOPUS](/bookstack/books/software-applications/page/octopus-reference-guide "OCTOPUS")

</div></div>OpenMM

<div class="toccolours mw-collapsible mw-collapsed">OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

<div class="mw-collapsible-content">Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

</div></div>ORCA

<div class="toccolours mw-collapsible mw-collapsed">The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

<div class="mw-collapsible-content">Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here [ORCA](/bookstack/books/software-applications/page/orca-reference-guide "ORCA")

</div></div>VMD

<div class="toccolours mw-collapsible mw-collapsed">VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

<div class="mw-collapsible-content">It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the [TCB's homepage](http://www.ks.uiuc.edu/Research/vmd/).

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start VMD as described above.

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-computational-biolog-1">Computational Biology</span>**

<div class="mw-collapsible-content">ANVIO

Anvio is a tool for an analysis and visualization platform for ‘omics data. Anvio allows various types of workflows to be established. <a class="new" title="ANVIO (page does not exist)">ANVIO</a>

BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [\[6\]](http://www.uwyo.edu/buerkle/software/bamova) and manual here [\[7\]](http://www.uwyo.edu/buerkle/software/bamova/bamova_manual_1.0.pdf). Further information can also be found here <a class="new" title="BAMOVA (page does not exist)">BAMOVA</a>.

BAYESCAN

<div class="toccolours mw-collapsible mw-collapsed">BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

<div class="mw-collapsible-content">This program, BayeScan aims at identifying candidate loci under natural selection from genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation- specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations.

More detailed information on Bayescan can be found at the web site here [\[8\]](http://cmpg.unibe.ch/software/bayescan/index.html)and in the manual here [\[9\]](http://cmpg.unibe.ch/software/bayescan/files/BayeScan2.1_manual.pdf). More information about our installation can be found here <a class="new" title="BAYESCAN (page does not exist)">BAYESCAN</a>.

</div></div>BEST

<div class="toccolours mw-collapsible mw-collapsed">BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

<div class="mw-collapsible-content">The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [\[10\]](http://www.stat.osu.edu/~dkp/BEST/introduction). More information about our installation is available here [BEST](/bookstack/books/software-applications/page/best-reference-guide "BEST").

</div></div>BEAST

<div class="toccolours mw-collapsible mw-collapsed">BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

<div class="mw-collapsible-content">The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [\[11\]](http://beast.bio.ed.ac.uk/Main_Page). More information about our installation can be found here [BEAST](/bookstack/books/software-applications/page/beast-reference-guide).

</div></div>BOWTIE2

<div class="toccolours mw-collapsible mw-collapsed">BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

<div class="mw-collapsible-content">BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [\[12\]](http://bowtie-bio.sourceforge.net/bowtie2/index.shtml). Information about our installation can be found here [BOWTIE2](/bookstack/books/software-applications/page/bowtie2-reference-guide "BOWTIE2").

</div></div>BPP2

<div class="toccolours mw-collapsible mw-collapsed">BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

<div class="mw-collapsible-content">Additional information can be found at the download site here [\[13\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [BPP2](/bookstack/books/software-applications/page/bpp2-reference-guide "BPP2").</div></div>BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here [BROWNIE](/bookstack/books/software-applications/page/brownie-reference-guide "BROWNIE").

CUFFLINKS

<div class="toccolours mw-collapsible mw-collapsed">CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

<div class="mw-collapsible-content">It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [\[14\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [CUFFLINKS](/bookstack/books/software-applications/page/cufflinks-reference-guide "CUFFLINKS").

</div></div>GARLI

<div class="toccolours mw-collapsible mw-collapsed">GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

<div class="mw-collapsible-content">Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [\[15\]](https://www.nescent.org/wg_garli/Main_Page). More information about our installation can be found here [GARLI](/bookstack/books/software-applications/page/garli-reference-guide "GARLI").

</div></div>MPFR

<div class="toccolours mw-collapsible mw-collapsed">The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

<div class="mw-collapsible-content">MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

</div></div>MRBAYES

<div class="toccolours mw-collapsible mw-collapsed">MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

<div class="mw-collapsible-content">The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here [MRBAYES](/bookstack/books/software-applications/page/mrbayes-reference-guide "MRBAYES")

</div></div>msABC

<div class="toccolours mw-collapsible mw-collapsed">msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

<div class="mw-collapsible-content">Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here <a class="new" title="MsABC (page does not exist)">msABC</a>

</div></div>MSMS

<div class="toccolours mw-collapsible mw-collapsed">MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

<div class="mw-collapsible-content">In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here <a class="new" title="MSMS (page does not exist)">MSMS</a>

</div></div>POPABC

<div class="toccolours mw-collapsible mw-collapsed">PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

<div class="mw-collapsible-content">The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [\[16\]](https://code.google.com/p/popabc)More information about our installation can be found here <a class="new" title="POPABC (page does not exist)">POPABC</a>

</div></div>PHOENICS

<div class="toccolours mw-collapsible mw-collapsed">PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here [http://www.cham.co.uk](http://www.cham.co.uk).

<div class="mw-collapsible-content">Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the *entire* PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d\_allpro, d\_earth, d\_enviro, d\_photo, d\_priv1, d\_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at [http://www.cham.co.uk/products/parallel.php](http://www.cham.co.uk/products/parallel.php). Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here [PHOENICS](/bookstack/books/software-applications/page/phoenics-reference-guide "PHOENICS")

</div></div>PHRAP-PHRED

<div class="toccolours mw-collapsible mw-collapsed">PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [\[17\]](http://www.phrap.org/phredphrapconsed.html), but a brief description of both, extracted from their manuals, follows.

<div class="mw-collapsible-content">PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here [PHRAP-PHRED](/bookstack/books/software-applications/page/phrap-phred-reference-guide "PHRAP-PHRED")

</div></div>PyRAD

<div class="toccolours mw-collapsible mw-collapsed">Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

<div class="mw-collapsible-content">Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here [PyRAD](/bookstack/books/software-applications/page/pyrad-reference-guide "PyRAD")

</div></div>RAXML

<div class="toccolours mw-collapsible mw-collapsed">Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

<div class="mw-collapsible-content">RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here [RAXML](/bookstack/books/software-applications/page/raxml-reference-guide "RAXML")

</div></div>Structurama

<div class="toccolours mw-collapsible mw-collapsed">Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

<div class="mw-collapsible-content">First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here [STRUCTURAMA](/bookstack/books/software-applications/page/structurama-reference-guide "STRUCTURAMA")

</div></div>Structure

<div class="toccolours mw-collapsible mw-collapsed">The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

<div class="mw-collapsible-content">It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [\[18\]](http://pritch.bsd.uchicago.edu/structure.html). Structure is installed on ANDY at the CUNY HPCC. Structure is a serial program. More information about our installation can be found here [STRUCTURE](/bookstack/books/software-applications/page/structure-reference-guide "STRUCTURE")

</div></div>TOPHAT

<div class="toccolours mw-collapsible mw-collapsed">TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

<div class="mw-collapsible-content">TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here [TOPHAT](/bookstack/books/software-applications/page/tophat-reference-guide "TOPHAT")

</div></div>Trinity

<div class="toccolours mw-collapsible mw-collapsed">Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

<div class="mw-collapsible-content">Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here [TRINITY](/bookstack/books/software-applications/page/trinity-reference-guide "TRINITY")

</div></div>VELVET

<div class="toccolours mw-collapsible mw-collapsed">Velvet is a set of algorithms for *de novo* short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK.   
More information about our installation can be found here <a class="new" title="VELVET (page does not exist)">VELVET</a>

<div class="mw-collapsible-content"></div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-computational-genomi-1">Computational Genomics, Proteonics, Microbiomics, Genetics</span>**

<div class="mw-collapsible-content">AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: [AUGUSTUS](/bookstack/books/software-applications/page/augustus-reference-guide "AUGUSTUS")

CONSED

<div class="toccolours mw-collapsible mw-collapsed">CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

<div class="mw-collapsible-content">It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [\[19\]](http://bozeman.mbt.washington.edu/consed/consed.html)CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [\[20\]](http://bozeman.mbt.washington.edu/consed/distributions/README.23.0.txt) and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

```
/share/apps/consed/default
```

All the files in the distribution can be found there.

</div></div>ExaML

<div class="toccolours mw-collapsible mw-collapsed">ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

<div class="mw-collapsible-content">The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light \[1\].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

\[1\] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

</div></div>ExaBayes

<div class="toccolours mw-collapsible mw-collapsed">ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

<div class="mw-collapsible-content">*Availability:'* PENZIAS **Module file:**exabayes

**Citation**:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

**Use:** The example SLURM script to run the FDPPDIV on PENZIAS is given below

```
#!/bin/bash
#SBATCH --partition production
#SBATCH --<name_of_job>
#SBATCH --nodes=1
#SBATCH --ntasks=2

# You must explicitly change to the working directory in SLURM
cd $SLURM_SUBMIT_DIR

mpirun -np 2 exabayes <input_file> > output_file
```

More information about application along with sample workflows are available on ExaBayes web site:

```
http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11
```

</div></div>GENOMEPOP2

<div class="toccolours mw-collapsible mw-collapsed">GenomePop2 is a newer and specialized version of the older program GenomePop.

<div class="mw-collapsible-content">GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s \* h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [\[21\]](http://webs.uvigo.es/acraaj/GenomePop2.htm). More information about our installation can be found here [GENOMEPOP2](/bookstack/books/software-applications/page/genomepop2-reference-guide "GENOMEPOP2").

</div></div>HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/humann2](/bookstack/books/software-applications/page/applications-environment-reference-guide)

IMa2

<div class="toccolours mw-collapsible mw-collapsed">The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

<div class="mw-collapsible-content">The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [\[22\]](http://lifesci.rutgers.edu/%7Eheylab/ProgramsandData/Programs/IMa2/Using_IMa2_8_24_2011.pdf). Information about our installation can be found here [IMA2](/bookstack/books/software-applications/page/ima2-reference-guide "IMA2").

</div></div>I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/itasser](/bookstack/books/software-applications/page/itasser-reference-guide)

LAMARC

<div class="toccolours mw-collapsible mw-collapsed">LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

<div class="mw-collapsible-content">It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [\[23\]](http://evolution.genetics.washington.edu/lamarc/index.html), read this paper [\[24\]](http://evolution.genetics.washington.edu/lamarc/download/bioinformatics2006-lamarc2.0.pdf), and look at the documentation here [\[25\]](http://evolution.genetics.washington.edu/lamarc/documentation/index.html). More information about our installation can be found here <a class="new" title="LAMARC (page does not exist)">LAMARC</a>.

</div></div>QIIME

<div class="toccolours mw-collapsible mw-collapsed">QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

<div class="mw-collapsible-content">QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here [QIIME](/bookstack/books/software-applications/page/qiime-reference-guide "QIIME")

</div></div>USEARCH

<div class="toccolours mw-collapsible mw-collapsed">USEARCH is a unique sequence analysis tool with thousands of users world-wide.

<div class="mw-collapsible-content">USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here [USEARCH](/bookstack/books/software-applications/page/usearch-reference-guide "USEARCH")

</div></div>VELVET

Velvet is a set of algorithms for *de novo* short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK. More information about our installation can be found here <a class="new" title="VELVET (page does not exist)">VELVET</a>.

VSEARCH

<div class="toccolours mw-collapsible mw-collapsed">VSEARCH is a open source alternative to USEARCH.

<div class="mw-collapsible-content">VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.

  
Additional details on VSEARCH can be found at: [this link](https://github.com/torognes/vsearch)

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

```
module load vsearch  
```

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-math%2C-engineering%2C-c-1">Math, Engineering, Computer Science</span>**

<div class="mw-collapsible-content">ADCIRC

<div class="toccolours mw-collapsible mw-collapsed">ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

<div class="mw-collapsible-content"> These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [\[26\]](http://adcirc.org/index.html) and read the ADCIRC manual [\[27\]](http://adcirc.org/documentv49/ADCIRC_title_page.html). Details on using SWAN with ADCIRC can be found here [\[28\]](http://www.caseydietrich.com/swanadcirc) and at the SWAN web site [\[29\]](http://swanmodel.sourceforge.net). More information about use and set-up can be found here [ADCIRC](/bookstack/books/software-applications/page/adcirc-reference-guide "ADCIRC"). </div></div>FDPPDIV

<div class="toccolours mw-collapsible mw-collapsed">FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

<div class="mw-collapsible-content">FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here <a class="new" title="FDPPDIV (page does not exist)">FDPPDIV</a>.

</div></div>GAUSS

<div class="toccolours mw-collapsible mw-collapsed">An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

<div class="mw-collapsible-content">GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here [GAUSS](/bookstack/books/software-applications/page/gauss-reference-guide "GAUSS").

</div></div>Hapsembler

<div class="toccolours mw-collapsible mw-collapsed">Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

<div class="mw-collapsible-content"> Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with ```
module load hapsembler
```

</div></div>HOPSPACK

<div class="toccolours mw-collapsible mw-collapsed">HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

<div class="mw-collapsible-content">The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th&gt;Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

\- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -&gt; <a class="new" title="HOPSACK (page does not exist)">HOPSACK</a>.

</div></div>LS-DYNA

<div class="toccolours mw-collapsible mw-collapsed">From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

<div class="mw-collapsible-content">In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [\[30\]](http://ftp.lstc.com/user/manuals/ls-dyna_971_manual_k_rev1.pdf). All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:

  
/share/apps/lsdyna/default/\[bin,examples\]

  
More information about our installation can be found here [LSDYNA](/bookstack/books/software-applications/page/lsdyna-reference-guide "LSDYNA").

</div></div>Network Simulator-2 (NS2)

<div class="toccolours mw-collapsible mw-collapsed">NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

<div class="mw-collapsible-content">It is installed on BOB at the CUNY HPCC. For more detailed information look here [here](http://www.isi.edu/nsnam/ns/). More information about our installation can be found here [NS2](/bookstack/books/software-applications/page/ns2-reference-guide "NS2")

</div></div>OpenFOAM

<div class="toccolours mw-collapsible mw-collapsed">OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

<div class="mw-collapsible-content">More information about our installation can be found here [OpenFOAM](/bookstack/books/software-applications/page/openfoam-reference-guide "OpenFOAM")

</div></div>OpenSEES

<div class="toccolours mw-collapsible mw-collapsed">OpenSEES, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

<div class="mw-collapsible-content">It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSEES is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

</div></div>ParGAP

<div class="toccolours mw-collapsible mw-collapsed">ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

<div class="mw-collapsible-content">The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here [ParGAP](/bookstack/books/software-applications/page/pargap-reference-guide "ParGAP")

</div></div>SAGE

<div class="toccolours mw-collapsible mw-collapsed">Sage can be used to study elementary and advanced, pure and applied mathematics.

<div class="mw-collapsible-content">This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here [SAGE](/bookstack/books/software-applications/page/sage-reference-guide "SAGE")

</div></div>WRF

<div class="toccolours mw-collapsible mw-collapsed">The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

<div class="mw-collapsible-content">It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here [WRF](/bookstack/books/software-applications/page/wrf-reference-guide "WRF")

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span id="bkmrk--2"></span><span class="mw-headline" id="bkmrk-economics%2C-business%2C-1">Economics, Business, Statistics, Analytics</span>**

<div class="mw-collapsible-content">R

<div class="toccolours mw-collapsible mw-collapsed">R is a free software environment for statistical computing and graphics.

<div class="mw-collapsible-content">General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here [R](/bookstack/books/software-applications/page/r-reference-guide "R")

</div></div>R-devel

R is a language and environment for statistical computing and graphics. R-devel provides both core R userspace and all R development components.

Stata/MP

<div class="toccolours mw-collapsible mw-collapsed">Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

<div class="mw-collapsible-content">Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here <a class="new" title="STATA (page does not exist)">STATA</a>

</div></div>SAS

<div class="toccolours mw-collapsible mw-collapsed">SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

<div class="mw-collapsible-content">It enables the programmer to perform:

<dl><dd>- data entry, retrieval, management, and mining
- report writing and graphics
- statistical analysis
- business planning, forecasting, and decision support
- operations research and project management
- quality improvement
- applications development
- data warehousing (extract, transform, load)
- platform independent and remote computing

</dd></dl>More information about our installation can be found here <a class="new" title="SAS (page does not exist)">SAS</a>

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-general-development--1">General Development Systems</span>**

<div class="mw-collapsible-content">Coming soon.

</div></div><div class="mw-collapsible mw-collapsed">#### **<span id="bkmrk--3"></span><span class="mw-headline" id="bkmrk-tools%2C-libraries%2C-co-1">Tools, Libraries, Compilers</span>**

<div class="mw-collapsible-content">CGAL

<div class="toccolours mw-collapsible mw-collapsed">The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

<div class="mw-collapsible-content">Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/CGAL](/bookstack/books/software-applications/page/applications-environment-reference-guide).

</div></div>GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

<div class="toccolours mw-collapsible mw-collapsed">Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

<div class="mw-collapsible-content"><dl><dd>- Karle under /usr/bin/gnuplot
- Andy under /share/apps/gnuplot/default/bin/gnuplot

</dd></dl>Extensive documentation of gnuplot is available at the [gnuplot's homepage](http://www.gnuplot.info/).

</div></div>JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. Julia is installed on Penzias.

MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

<div class="toccolours mw-collapsible mw-collapsed">“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities.

<div class="mw-collapsible-content">Mathematica is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at [http://www.wolfram.com/learningcenter/](http://www.wolfram.com/learningcenter/)

More information is available in this wiki, find it here [MATHEMATICA](/bookstack/books/software-applications/page/mathematica-reference-guide "MATHEMATICA").

</div></div>MATLAB

<div class="toccolours mw-collapsible mw-collapsed">The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

<div class="mw-collapsible-content">Typical uses include:

```
Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building
```

More information about our installation can be found here <a class="new" title="MATLAB (page does not exist)">MATLAB</a>

</div></div>MET (Model Evaluation Tools)

<div class="toccolours mw-collapsible mw-collapsed">MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

<div class="mw-collapsible-content">MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well. MET provides a variety of verification techniques, including:

- Standard verification scores comparing gridded model data to point-based observations
- Standard verification scores comparing gridded model data to gridded observations
- Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
- Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here <a class="new" title="MET (page does not exist)">MET</a>

</div></div>Migrate

<div class="toccolours mw-collapsible mw-collapsed">Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

<div class="mw-collapsible-content">The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here <a class="new" title="MIGRATE (page does not exist)">MIGRATE</a>

</div></div>Python

<div class="toccolours mw-collapsible mw-collapsed">Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [\[31\]](https://www.python.org/)

<div class="mw-collapsible-content">There are two supported versions installed on Andy system:

- Python 3.1.3 located under /share/apps/python/3.1.3/bin
- Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here [PYTHON](/bookstack/books/software-applications/page/python-reference-guide "PYTHON")

</div></div>SAMTOOLS

<div class="toccolours mw-collapsible mw-collapsed">SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

<div class="mw-collapsible-content">SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

```
Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.
```

More information about our installation can be found here [SAMTOOLS](/bookstack/books/software-applications/page/samtools-reference-guide "SAMTOOLS")

</div></div>Thrust Library (CUDA)

<div class="toccolours mw-collapsible mw-collapsed">Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

<div class="mw-collapsible-content">As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here [THRUST](/bookstack/books/software-applications/page/thrust-reference-guide "THRUST")

</div></div>Xmgrace

<div class="toccolours mw-collapsible mw-collapsed">Grace is a WYSIWYG 2D plotting tool for the X Window System and M\*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page [http://plasma-gate.weizmann.ac.il/Grace/](http://plasma-gate.weizmann.ac.il/Grace/)

<div class="mw-collapsible-content">Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start Xmgrace as described above.

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-alphabetical-list-1">Alphabetical List</span>**

<div class="mw-collapsible-content"><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-a-1">A</span>**

<div class="mw-collapsible-content">ADCIRC

<div class="toccolours mw-collapsible mw-collapsed">ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

<div class="mw-collapsible-content"> These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [\[32\]](http://adcirc.org/index.html) and read the ADCIRC manual [\[33\]](http://adcirc.org/documentv49/ADCIRC_title_page.html). Details on using SWAN with ADCIRC can be found here [\[34\]](http://www.caseydietrich.com/swanadcirc) and at the SWAN web site [\[35\]](http://swanmodel.sourceforge.net). More information about use and set-up can be found here [ADCIRC](/bookstack/books/software-applications/page/adcirc-reference-guide "ADCIRC"). </div></div>AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/amber](/bookstack/books/software-applications/page/applications-environment-reference-guide)

ANVIO

Anvio is a tool for an analysis and visualization platform for genomics data. Anvio allows various types of workflows to be established. <a class="new" title="ANVIO (page does not exist)">ANVIO</a>

AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: [AUGUSTUS](/bookstack/books/software-applications/page/augustus-reference-guide "AUGUSTUS")

AUTODOCK

<div class="toccolours mw-collapsible mw-collapsed">AutoDock is a suite of automated docking tools.

<div class="mw-collapsible-content"> It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: *autodock* itself performs the docking of the ligand to a set of grids describing the target protein; *autogrid* pre-calculates these grids. More information about the software may be found at the autodock web-page [\[36\]](http://autodock.scripps.edu/). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/autodock](/bookstack/books/software-applications/page/autodock-reference-guide)</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-b-1">B</span>**

<div class="mw-collapsible-content">BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [\[37\]](http://www.uwyo.edu/buerkle/software/bamova) and manual here [\[38\]](http://www.uwyo.edu/buerkle/software/bamova/bamova_manual_1.0.pdf). Further information can also be found here <a class="new" title="BAMOVA (page does not exist)">BAMOVA</a>.

BAYESCAN

<div class="toccolours mw-collapsible mw-collapsed">BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

<div class="mw-collapsible-content">This program, BayeScan aims at identifying candidate loci under natural selection from genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation- specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations. More detailed information on Bayescan can be found at the web site here [\[39\]](http://cmpg.unibe.ch/software/bayescan/index.html) and in the manual here [\[40\]](http://cmpg.unibe.ch/software/bayescan/files/BayeScan2.1_manual.pdf). More information about our installation can be found here <a class="new" title="BAYESCAN (page does not exist)">BAYESCAN</a>.

</div></div>BEAST

<div class="toccolours mw-collapsible mw-collapsed">BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

<div class="mw-collapsible-content">The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [\[41\]](http://beast.bio.ed.ac.uk/Main_Page). More information about our installation can be found here [BEAST](/bookstack/books/software-applications/page/beast-reference-guide).

</div></div>BEST

<div class="toccolours mw-collapsible mw-collapsed">BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

<div class="mw-collapsible-content">The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [\[42\]](http://www.stat.osu.edu/~dkp/BEST/introduction). More information about our installation is available here [BEST](/bookstack/books/software-applications/page/best-reference-guide "BEST").

</div></div>BOWTIE2

<div class="toccolours mw-collapsible mw-collapsed">BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

<div class="mw-collapsible-content">BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [\[43\]](http://bowtie-bio.sourceforge.net/bowtie2/index.shtml). Information about our installation can be found here [BOWTIE2](/bookstack/books/software-applications/page/bowtie2-reference-guide "BOWTIE2").

</div></div>BPP2

<div class="toccolours mw-collapsible mw-collapsed">BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

<div class="mw-collapsible-content">Additional information can be found at the download site here [\[44\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [BPP2](/bookstack/books/software-applications/page/bpp2-reference-guide "BPP2").</div></div>BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here [BROWNIE](/bookstack/books/software-applications/page/brownie-reference-guide "BROWNIE").

</div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-c-1">C</span>**

<div class="mw-collapsible-content">CGAL

<div class="toccolours mw-collapsible mw-collapsed">The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

<div class="mw-collapsible-content">Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/CGAL](/bookstack/books/software-applications/page/applications-environment-reference-guide).

</div></div>CONSED

<div class="toccolours mw-collapsible mw-collapsed">CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

<div class="mw-collapsible-content">It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [\[45\]](http://bozeman.mbt.washington.edu/consed/consed.html)CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [\[46\]](http://bozeman.mbt.washington.edu/consed/distributions/README.23.0.txt) and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

```
/share/apps/consed/default
```

All the files in the distribution can be found there.

</div></div>CP2K

<div class="toccolours mw-collapsible mw-collapsed">CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

<div class="mw-collapsible-content">It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here [CP2K](/bookstack/books/software-applications/page/cp2k-reference-guide "CP2K").

</div></div>CUFFLINKS

<div class="toccolours mw-collapsible mw-collapsed">CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

<div class="mw-collapsible-content">It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [\[47\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [CUFFLINKS](/bookstack/books/software-applications/page/cufflinks-reference-guide "CUFFLINKS").

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-d-1">D</span>**

<div class="mw-collapsible-content">DL\_POLY

<div class="toccolours mw-collapsible mw-collapsed">DL\_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

<div class="mw-collapsible-content">Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here [DL\_POLY](/bookstack/books/software-applications/page/dl-poly-reference-guide "DL POLY").

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-e-1">E</span>**

<div class="mw-collapsible-content">ExaML

<div class="toccolours mw-collapsible mw-collapsed">ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

<div class="mw-collapsible-content">The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light \[1\].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

\[1\] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

</div></div>ExaBayes

<div class="toccolours mw-collapsible mw-collapsed">ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

<div class="mw-collapsible-content">*Availability:'* PENZIAS **Module file:**exabayes

**Citation**:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

**Use:** The example SLURM script to run the FDPPDIV on PENZIAS is given below

```
#!/bin/bash
#SLURM -q production
#SLURM -N <name_of_job>
#SLURM -l select=1:ncpus=2 
#SLURM -l place=free
#SLURM -V

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

mpirun -np 2 exabayes <input_file> > output_file
```

More information about application along with sample workflows are available on ExaBayes web site:

```
http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11
```

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-f-1">F</span>**

<div class="mw-collapsible-content">FDPPDIV

<div class="toccolours mw-collapsible mw-collapsed">FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

<div class="mw-collapsible-content">FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here <a class="new" title="FDPPDIV (page does not exist)">FDPPDIV</a>.

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-g-1">G</span>**

<div class="mw-collapsible-content">GAMESS-US

<div class="toccolours mw-collapsible mw-collapsed">GAMESS is a program for ab initio molecular quantum chemistry.

<div class="mw-collapsible-content">Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here [GAMESS-US](/bookstack/books/software-applications/page/gamess-us-reference-guide "GAMESS-US").

</div></div>GARLI

<div class="toccolours mw-collapsible mw-collapsed">GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

<div class="mw-collapsible-content">Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [\[48\]](https://www.nescent.org/wg_garli/Main_Page). More information about our installation can be found here [GARLI](/bookstack/books/software-applications/page/garli-reference-guide "GARLI").

</div></div>GAUSS

<div class="toccolours mw-collapsible mw-collapsed">An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

<div class="mw-collapsible-content">GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here [GAUSS](/bookstack/books/software-applications/page/gauss-reference-guide "GAUSS").

</div></div>Gaussian09

<div class="toccolours mw-collapsible mw-collapsed">Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

<div class="mw-collapsible-content">Gaussian09 is available for general use only on ANDY. The Gaussian User Guide can be found here at \[[\[49\]](http://www.gaussian.com)\]. More information about our installation can be found here [GAUSSIAN09](/bookstack/books/software-applications/page/gaussian09-reference-guide "GAUSSIAN09").

</div></div>GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

<div class="toccolours mw-collapsible mw-collapsed">Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

<div class="mw-collapsible-content"><dl><dd>- Karle under /usr/bin/gnuplot
- Andy under /share/apps/gnuplot/default/bin/gnuplot

</dd></dl>Extensive documentation of gnuplot is available at the [gnuplot's homepage](http://www.gnuplot.info/).

</div></div>GenomePop2

<div class="toccolours mw-collapsible mw-collapsed">GenomePop2 is a newer and specialized version of the older program GenomePop.

<div class="mw-collapsible-content">GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s \* h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [\[50\]](http://webs.uvigo.es/acraaj/GenomePop2.htm). More information about our installation can be found here [GENOMEPOP2](/bookstack/books/software-applications/page/genomepop2-reference-guide "GENOMEPOP2").

</div></div>GROMACS

<div class="toccolours mw-collapsible mw-collapsed">GROMACS (Groningen Machine for Chemical Simulations)

<div class="mw-collapsible-content">GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/gromacs](/bookstack/books/software-applications/page/gromacs-reference-guide)Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

</div></div>GPAW

<div class="toccolours mw-collapsible mw-collapsed">GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

<div class="mw-collapsible-content">It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here [GPAW](/bookstack/books/software-applications/page/gpaw-reference-guide "GPAW").

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-h-1">H</span>**

<div class="mw-collapsible-content">Hapsembler

<div class="toccolours mw-collapsible mw-collapsed">Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

<div class="mw-collapsible-content"> Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with ```
module load hapsembler
```

</div></div>HOOMD

<div class="toccolours mw-collapsible mw-collapsed">Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

<div class="mw-collapsible-content">Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

HOOMD's object-oriented design patterns make it both versatile and expandable. Various types of potentials, integration methods and file formats are currently supported, and more are added with each release. The code is available and open source, so anyone can write a plugin or change the source to add additional functionality. Simulations are configured and run using simple python scripts, allowing complete control over the force field choice, integrator, all parameters, how many time steps are run, etc. The scripting system is designed to be as simple as possible to the non-programmer.

The HOOMD development effort is led by the Glotzer group at the University of Michigan, but many groups from different universities have contributed code that is now part of the HOOMD main package, see the credits page for the full list. The HOOMD website and documentation are available here [\[51\]](http://codeblue.umich.edu/hoomd-blue/about.html). More information about our installation can be found here <a class="new" title="HOOMD (page does not exist)">HOOMD</a>.

</div></div>HOPSPACK

<div class="toccolours mw-collapsible mw-collapsed">HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

<div class="mw-collapsible-content">The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th&gt;Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

\- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -&gt; <a class="new" title="HOPSACK (page does not exist)">HOPSACK</a>.

</div></div>HONDO PLUS

<div class="toccolours mw-collapsible mw-collapsed">Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

<div class="mw-collapsible-content">It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

[http://comp.chem.umn.edu/hondoplus/HONDOPLUS\_Manual\_v5.1.2007.2.17.pdf](http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf)

More information about our installation can be found here <a class="new" title="HONDO PLUS (page does not exist)">HONDO PLUS</a>.

</div></div>HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/humann2](/bookstack/books/software-applications/page/applications-environment-reference-guide)

</div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-i-1">I</span>**

<div class="mw-collapsible-content">IMa2

<div class="toccolours mw-collapsible mw-collapsed">The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

<div class="mw-collapsible-content">The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [\[52\]](http://lifesci.rutgers.edu/%7Eheylab/ProgramsandData/Programs/IMa2/Using_IMa2_8_24_2011.pdf). Information about our installation can be found here [IMA2](/bookstack/books/software-applications/page/ima2-reference-guide "IMA2").

</div></div>I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/itasser](/bookstack/books/software-applications/page/itasser-reference-guide)

</div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-j-1">J</span>**

<div class="mw-collapsible-content">JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. Julia is installed on Penzias.

</div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-l-1">L</span>**

<div class="mw-collapsible-content">LAMARC

<div class="toccolours mw-collapsible mw-collapsed">LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

<div class="mw-collapsible-content">It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [\[53\]](http://evolution.genetics.washington.edu/lamarc/index.html), read this paper [\[54\]](http://evolution.genetics.washington.edu/lamarc/download/bioinformatics2006-lamarc2.0.pdf), and look at the documentation here [\[55\]](http://evolution.genetics.washington.edu/lamarc/documentation/index.html). More information about our installation can be found here <a class="new" title="LAMARC (page does not exist)">LAMARC</a>.

</div></div>LAMMPS

<div class="toccolours mw-collapsible mw-collapsed">LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

<div class="mw-collapsible-content">It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [\[56\]](http://lammps.sandia.gov/doc/Manual.html) or from the full PDF manual here [\[57\]](http://lammps.sandia.gov/doc/Manual.pdf). Information about our installation can be found here [LAMMPS](/bookstack/books/software-applications/page/lammps-reference-guide "LAMMPS").

</div></div>LS-DYNA

<div class="toccolours mw-collapsible mw-collapsed">From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

<div class="mw-collapsible-content">In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [\[58\]](http://ftp.lstc.com/user/manuals/ls-dyna_971_manual_k_rev1.pdf). All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:

  
/share/apps/lsdyna/default/\[bin,examples\]

  
More information about our installation can be found here [LSDYNA](/bookstack/books/software-applications/page/lsdyna-reference-guide "LSDYNA").

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-m-1">M</span>**

<div class="mw-collapsible-content">MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

<div class="toccolours mw-collapsible mw-collapsed">“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities.

<div class="mw-collapsible-content">Mathematica is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at [http://www.wolfram.com/learningcenter/](http://www.wolfram.com/learningcenter/)

More information is available in this wiki, find it here [MATHEMATICA](/bookstack/books/software-applications/page/mathematica-reference-guide "MATHEMATICA").

</div></div>MATLAB

<div class="toccolours mw-collapsible mw-collapsed">The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

<div class="mw-collapsible-content">Typical uses include:

```
Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building
```

More information about our installation can be found here <a class="new" title="MATLAB (page does not exist)">MATLAB</a>

</div></div>MET (Model Evaluation Tools)

<div class="toccolours mw-collapsible mw-collapsed">MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

<div class="mw-collapsible-content">MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well. MET provides a variety of verification techniques, including:

- Standard verification scores comparing gridded model data to point-based observations
- Standard verification scores comparing gridded model data to gridded observations
- Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
- Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here <a class="new" title="MET (page does not exist)">MET</a>

</div></div>Migrate

<div class="toccolours mw-collapsible mw-collapsed">Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

<div class="mw-collapsible-content">The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here <a class="new" title="MIGRATE (page does not exist)">MIGRATE</a>

</div></div>MPFR

<div class="toccolours mw-collapsible mw-collapsed">The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

<div class="mw-collapsible-content">MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

</div></div>MRBAYES

<div class="toccolours mw-collapsible mw-collapsed">MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

<div class="mw-collapsible-content">The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here [MRBAYES](/bookstack/books/software-applications/page/mrbayes-reference-guide "MRBAYES")

</div></div>msABC

<div class="toccolours mw-collapsible mw-collapsed">msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

<div class="mw-collapsible-content">Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here <a class="new" title="MsABC (page does not exist)">msABC</a>

</div></div>MSMS

<div class="toccolours mw-collapsible mw-collapsed">MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

<div class="mw-collapsible-content">In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here <a class="new" title="MSMS (page does not exist)">MSMS</a>

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-n-1">N</span>**

<div class="mw-collapsible-content">NAMD

<div class="toccolours mw-collapsible mw-collapsed">NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [\[59\]](http://www.ks.uiuc.edu/Research/namd).

<div class="mw-collapsible-content">The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here [NAMD](/bookstack/books/software-applications/page/namd-reference-guide "NAMD")

</div></div>Network Simulator-2 (NS2)

<div class="toccolours mw-collapsible mw-collapsed">NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

<div class="mw-collapsible-content">It is installed on BOB at the CUNY HPCC. For more detailed information look here [here](http://www.isi.edu/nsnam/ns/). More information about our installation can be found here [NS2](/bookstack/books/software-applications/page/ns2-reference-guide "NS2")

</div></div>NWChem

<div class="toccolours mw-collapsible mw-collapsed">NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

<div class="mw-collapsible-content">NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here [NWChem](/bookstack/books/software-applications/page/nwchem-reference-guide "NWChem")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-o-1">O</span>**

<div class="mw-collapsible-content">Octopus

<div class="toccolours mw-collapsible mw-collapsed">Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional ﬁnite systems subject to time-dependent electromagnetic ﬁelds.

<div class="mw-collapsible-content">The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here [OCTOPUS](/bookstack/books/software-applications/page/octopus-reference-guide "OCTOPUS")

</div></div>OpenMM

<div class="toccolours mw-collapsible mw-collapsed">OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

<div class="mw-collapsible-content">Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

</div></div>OpenFOAM

<div class="toccolours mw-collapsible mw-collapsed">OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

<div class="mw-collapsible-content">More information about our installation can be found here [OpenFOAM](/bookstack/books/software-applications/page/openfoam-reference-guide "OpenFOAM")

</div></div>OpenSees

<div class="toccolours mw-collapsible mw-collapsed">OpenSees, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

<div class="mw-collapsible-content">It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

</div></div>ORCA

<div class="toccolours mw-collapsible mw-collapsed">The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

<div class="mw-collapsible-content">Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here [ORCA](/bookstack/books/software-applications/page/orca-reference-guide "ORCA")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-p-1">P</span>**

<div class="mw-collapsible-content">ParGAP

<div class="toccolours mw-collapsible mw-collapsed">ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

<div class="mw-collapsible-content">The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here [ParGAP](/bookstack/books/software-applications/page/pargap-reference-guide "ParGAP")

</div></div>POPABC

<div class="toccolours mw-collapsible mw-collapsed">PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

<div class="mw-collapsible-content">The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [\[60\]](https://code.google.com/p/popabc)More information about our installation can be found here <a class="new" title="POPABC (page does not exist)">POPABC</a>

</div></div>PHOENICS

<div class="toccolours mw-collapsible mw-collapsed">PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here [http://www.cham.co.uk](http://www.cham.co.uk).

<div class="mw-collapsible-content">Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the *entire* PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d\_allpro, d\_earth, d\_enviro, d\_photo, d\_priv1, d\_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at [http://www.cham.co.uk/products/parallel.php](http://www.cham.co.uk/products/parallel.php). Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here [PHOENICS](/bookstack/books/software-applications/page/phoenics-reference-guide "PHOENICS")

</div></div>PHRAP-PHRED

<div class="toccolours mw-collapsible mw-collapsed">PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [\[61\]](http://www.phrap.org/phredphrapconsed.html), but a brief description of both, extracted from their manuals, follows.

<div class="mw-collapsible-content">PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here [PHRAP-PHRED](/bookstack/books/software-applications/page/phrap-phred-reference-guide "PHRAP-PHRED")

</div></div>PyRAD

<div class="toccolours mw-collapsible mw-collapsed">Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

<div class="mw-collapsible-content">Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here [PyRAD](/bookstack/books/software-applications/page/pyrad-reference-guide "PyRAD")

</div></div>Python

<div class="toccolours mw-collapsible mw-collapsed">Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [\[62\]](https://www.python.org/)

<div class="mw-collapsible-content">There are two supported versions installed on Andy system:

- Python 3.1.3 located under /share/apps/python/3.1.3/bin
- Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here [PYTHON](/bookstack/books/software-applications/page/python-reference-guide "PYTHON")

</div></div>Installing Python packages

<div class="toccolours mw-collapsible mw-collapsed">Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

<div class="mw-collapsible-content">Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

```
module load python/2.7.13_anaconda
pip install guppy --user
```

For Python 3.6.0 in Anaconda build

```
module load python/3.6.0_anaconda
pip install guppy --user
```

For Python 2.7.13 in Miniconda

```
module load python/miniconda2
pip install guppy --user
```

For Python 3.6.0 in Miniconda 3

```
module load python/miniconda3
pip install guppy --user
```

To check if the package is properly installed type:

```
pip list | grep guppy
```

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-q-1">Q</span>**

<div class="mw-collapsible-content">QIIME

<div class="toccolours mw-collapsible mw-collapsed">QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

<div class="mw-collapsible-content">QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here [QIIME](/bookstack/books/software-applications/page/qiime-reference-guide "QIIME")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-r-1">R</span>**

<div class="mw-collapsible-content">R

<div class="toccolours mw-collapsible mw-collapsed">R is a free software environment for statistical computing and graphics.

<div class="mw-collapsible-content">General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here [R](/bookstack/books/software-applications/page/r-reference-guide "R")

</div></div>RAXML

<div class="toccolours mw-collapsible mw-collapsed">Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

<div class="mw-collapsible-content">RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here [RAXML](/bookstack/books/software-applications/page/raxml-reference-guide "RAXML")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-s-1">S</span>**

<div class="mw-collapsible-content">SAGE

<div class="toccolours mw-collapsible mw-collapsed">Sage can be used to study elementary and advanced, pure and applied mathematics.

<div class="mw-collapsible-content">This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here [SAGE](/bookstack/books/software-applications/page/sage-reference-guide "SAGE")

</div></div>SAMTOOLS

<div class="toccolours mw-collapsible mw-collapsed">SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

<div class="mw-collapsible-content">SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

```
Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.
```

More information about our installation can be found here [SAMTOOLS](/bookstack/books/software-applications/page/samtools-reference-guide "SAMTOOLS")

</div></div>SAS

<div class="toccolours mw-collapsible mw-collapsed">SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

<div class="mw-collapsible-content">It enables the programmer to perform:

<dl><dd>- data entry, retrieval, management, and mining
- report writing and graphics
- statistical analysis
- business planning, forecasting, and decision support
- operations research and project management
- quality improvement
- applications development
- data warehousing (extract, transform, load)
- platform independent and remote computing

</dd></dl>More information about our installation can be found here <a class="new" title="SAS (page does not exist)">SAS</a>

</div></div>Stata/MP

<div class="toccolours mw-collapsible mw-collapsed">Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

<div class="mw-collapsible-content">Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here <a class="new" title="STATA (page does not exist)">STATA</a>

</div></div>Structurama

<div class="toccolours mw-collapsible mw-collapsed">Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

<div class="mw-collapsible-content">First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here [STRUCTURAMA](/bookstack/books/software-applications/page/structurama-reference-guide "STRUCTURAMA")

</div></div>Structure

<div class="toccolours mw-collapsible mw-collapsed">The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

<div class="mw-collapsible-content">It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [\[63\]](http://pritch.bsd.uchicago.edu/structure.html). Structure is installed on ANDY at the CUNY HPCC. Structure is a serial program. More information about our installation can be found here [STRUCTURE](/bookstack/books/software-applications/page/structure-reference-guide "STRUCTURE")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-t-1">T</span>**

<div class="mw-collapsible-content">Thrust Library (CUDA)

<div class="toccolours mw-collapsible mw-collapsed">Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

<div class="mw-collapsible-content">As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here [THRUST](/bookstack/books/software-applications/page/thrust-reference-guide "THRUST")

</div></div>TOPHAT

<div class="toccolours mw-collapsible mw-collapsed">TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

<div class="mw-collapsible-content">TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here [TOPHAT](/bookstack/books/software-applications/page/tophat-reference-guide "TOPHAT")

</div></div>Trinity

<div class="toccolours mw-collapsible mw-collapsed">Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

<div class="mw-collapsible-content">Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here [TRINITY](/bookstack/books/software-applications/page/trinity-reference-guide "TRINITY")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-u-1">U</span>**

<div class="mw-collapsible-content">USEARCH

<div class="toccolours mw-collapsible mw-collapsed">USEARCH is a unique sequence analysis tool with thousands of users world-wide.

<div class="mw-collapsible-content">USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here [USEARCH](/bookstack/books/software-applications/page/usearch-reference-guide "USEARCH")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-v-1">V</span>**

<div class="mw-collapsible-content">VELVET

Velvet is a set of algorithms for *de novo* short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK. More information about our installation can be found here <a class="new" title="VELVET (page does not exist)">VELVET</a>.

VSEARCH

<div class="toccolours mw-collapsible mw-collapsed">VSEARCH is a open source alternative to USEARCH.

<div class="mw-collapsible-content">VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.

  
Additional details on VSEARCH can be found at: [this link](https://github.com/torognes/vsearch)

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

```
module load vsearch  
```

</div></div>VMD

<div class="toccolours mw-collapsible mw-collapsed">VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

<div class="mw-collapsible-content">It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the [TCB's homepage](http://www.ks.uiuc.edu/Research/vmd/).

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start VMD as described above.

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-w-1">W</span>**

<div class="mw-collapsible-content">WRF

<div class="toccolours mw-collapsible mw-collapsed">The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

<div class="mw-collapsible-content">It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here [WRF](/bookstack/books/software-applications/page/wrf-reference-guide "WRF")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-x-1">X</span>**

<div class="mw-collapsible-content">Xmgrace

<div class="toccolours mw-collapsible mw-collapsed">Grace is a WYSIWYG 2D plotting tool for the X Window System and M\*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page [http://plasma-gate.weizmann.ac.il/Grace/](http://plasma-gate.weizmann.ac.il/Grace/)

<div class="mw-collapsible-content">Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start Xmgrace as described above.

</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)

# APPLICATIONS INDEX (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-the-purpose-of-this-"><div class="noautonum"></div>**The purpose of this page is to provide an all-inclusive, alphabetical list of available applications, tools, and libraries.**

For information about using modules to run your applications go to [Using Modules To Run Your Applications](/bookstack/books/getting-started/page/software-modules-with-lmod "Using Modules To Run Your Applications (page does not exist)"). For a list of applications sorted by academic relevance go to [Academic Relevance](/bookstack/books/software-applications/page/applications-index-reference-guide).

<div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-a-1">A</span>**

<div class="mw-collapsible-content">ADCIRC

<div class="toccolours mw-collapsible mw-collapsed">ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

<div class="mw-collapsible-content"> These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [\[1\]](http://adcirc.org/index.html) and read the ADCIRC manual [\[2\]](http://adcirc.org/documentv49/ADCIRC_title_page.html). Details on using SWAN with ADCIRC can be found here [\[3\]](http://www.caseydietrich.com/swanadcirc) and at the SWAN web site [\[4\]](http://swanmodel.sourceforge.net). More information about use and set-up can be found here [ADCIRC](/bookstack/books/software-applications/page/adcirc-reference-guide "ADCIRC"). </div></div>AMBER (Assisted Model Building with Energy Refinement)

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/amber](/bookstack/books/software-applications/page/applications-environment-reference-guide)

ANVIO

Anvio is a tool for an analysis and visualization platform for genomics data. Anvio allows various types of workflows to be established. <a class="new" title="ANVIO (page does not exist)">ANVIO</a>

AUGUSTUS

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: [AUGUSTUS](/bookstack/books/software-applications/page/augustus-reference-guide "AUGUSTUS")

AUTODOCK

<div class="toccolours mw-collapsible mw-collapsed">AutoDock is a suite of automated docking tools.

<div class="mw-collapsible-content"> It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: *autodock* itself performs the docking of the ligand to a set of grids describing the target protein; *autogrid* pre-calculates these grids. More information about the software may be found at the autodock web-page [\[5\]](http://autodock.scripps.edu/). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/autodock](/bookstack/books/software-applications/page/autodock-reference-guide)</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-b-1">B</span>**

<div class="mw-collapsible-content">BAMOVA

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [\[6\]](http://www.uwyo.edu/buerkle/software/bamova) and manual here [\[7\]](http://www.uwyo.edu/buerkle/software/bamova/bamova_manual_1.0.pdf). Further information can also be found here <a class="new" title="BAMOVA (page does not exist)">BAMOVA</a>.

BAYESCAN

<div class="toccolours mw-collapsible mw-collapsed">BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

<div class="mw-collapsible-content">This program, BayeScan aims at identifying candidate loci under natural selection from genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation- specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations. More detailed information on Bayescan can be found at the web site here [\[8\]](http://cmpg.unibe.ch/software/bayescan/index.html) and in the manual here [\[9\]](http://cmpg.unibe.ch/software/bayescan/files/BayeScan2.1_manual.pdf). More information about our installation can be found here <a class="new" title="BAYESCAN (page does not exist)">BAYESCAN</a>.

</div></div>BEAST

<div class="toccolours mw-collapsible mw-collapsed">BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

<div class="mw-collapsible-content">The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [\[10\]](http://beast.bio.ed.ac.uk/Main_Page). More information about our installation can be found here [BEAST](/bookstack/books/software-applications/page/beast-reference-guide).

</div></div>BEST

<div class="toccolours mw-collapsible mw-collapsed">BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

<div class="mw-collapsible-content">The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [\[11\]](http://www.stat.osu.edu/~dkp/BEST/introduction). More information about our installation is available here [BEST](/bookstack/books/software-applications/page/best-reference-guide "BEST").

</div></div>BOWTIE2

<div class="toccolours mw-collapsible mw-collapsed">BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

<div class="mw-collapsible-content">BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [\[12\]](http://bowtie-bio.sourceforge.net/bowtie2/index.shtml). Information about our installation can be found here [BOWTIE2](/bookstack/books/software-applications/page/bowtie2-reference-guide "BOWTIE2").

</div></div>BPP2

<div class="toccolours mw-collapsible mw-collapsed">BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

<div class="mw-collapsible-content">Additional information can be found at the download site here [\[13\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [BPP2](/bookstack/books/software-applications/page/bpp2-reference-guide "BPP2").</div></div>BROWNIE

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here [BROWNIE](/bookstack/books/software-applications/page/brownie-reference-guide "BROWNIE").

</div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-c-1">C</span>**

<div class="mw-collapsible-content">CGAL

<div class="toccolours mw-collapsible mw-collapsed">The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

<div class="mw-collapsible-content">Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/CGAL](/bookstack/books/software-applications/page/applications-environment-reference-guide).

</div></div>CONSED

<div class="toccolours mw-collapsible mw-collapsed">CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

<div class="mw-collapsible-content">It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [\[14\]](http://bozeman.mbt.washington.edu/consed/consed.html)CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [\[15\]](http://bozeman.mbt.washington.edu/consed/distributions/README.23.0.txt) and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

```
/share/apps/consed/default
```

All the files in the distribution can be found there.

</div></div>CP2K

<div class="toccolours mw-collapsible mw-collapsed">CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

<div class="mw-collapsible-content">It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here [CP2K](/bookstack/books/software-applications/page/cp2k-reference-guide "CP2K").

</div></div>CUFFLINKS

<div class="toccolours mw-collapsible mw-collapsed">CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

<div class="mw-collapsible-content">It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [\[16\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [CUFFLINKS](/bookstack/books/software-applications/page/cufflinks-reference-guide "CUFFLINKS").

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-d-1">D</span>**

<div class="mw-collapsible-content">DL\_POLY

<div class="toccolours mw-collapsible mw-collapsed">DL\_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

<div class="mw-collapsible-content">Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here [DL\_POLY](/bookstack/books/software-applications/page/dl-poly-reference-guide "DL POLY").

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-e-1">E</span>**

<div class="mw-collapsible-content">ExaML

<div class="toccolours mw-collapsible mw-collapsed">ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

<div class="mw-collapsible-content">The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light \[1\].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

\[1\] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

</div></div>ExaBayes

<div class="toccolours mw-collapsible mw-collapsed">ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

<div class="mw-collapsible-content">*Availability:'* PENZIAS **Module file:**exabayes

**Citation**:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

**Use:** The example SLURM script to run the FDPPDIV on PENZIAS is given below

```
#!/bin/bash
#SLURM -q production
#SLURM -N <name_of_job>
#SLURM -l select=1:ncpus=2 
#SLURM -l place=free
#SLURM -V

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

mpirun -np 2 exabayes <input_file> > output_file
```

More information about application along with sample workflows are available on ExaBayes web site:

```
http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11
```

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-f-1">F</span>**

<div class="mw-collapsible-content">FDPPDIV

<div class="toccolours mw-collapsible mw-collapsed">FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

<div class="mw-collapsible-content">FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here <a class="new" title="FDPPDIV (page does not exist)">FDPPDIV</a>.

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-g-1">G</span>**

<div class="mw-collapsible-content">GAMESS-US

<div class="toccolours mw-collapsible mw-collapsed">GAMESS is a program for ab initio molecular quantum chemistry.

<div class="mw-collapsible-content">Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here [GAMESS-US](/bookstack/books/software-applications/page/gamess-us-reference-guide "GAMESS-US").

</div></div>GARLI

<div class="toccolours mw-collapsible mw-collapsed">GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

<div class="mw-collapsible-content">Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [\[17\]](https://www.nescent.org/wg_garli/Main_Page). More information about our installation can be found here [GARLI](/bookstack/books/software-applications/page/garli-reference-guide "GARLI").

</div></div>GAUSS

<div class="toccolours mw-collapsible mw-collapsed">An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

<div class="mw-collapsible-content">GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here [GAUSS](/bookstack/books/software-applications/page/gauss-reference-guide "GAUSS").

</div></div>Gaussian09

<div class="toccolours mw-collapsible mw-collapsed">Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

<div class="mw-collapsible-content">Gaussian09 is available for general use only on ANDY. The Gaussian User Guide can be found here at \[[\[18\]](http://www.gaussian.com)\]. More information about our installation can be found here [GAUSSIAN09](/bookstack/books/software-applications/page/gaussian09-reference-guide "GAUSSIAN09").

</div></div>GMP

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

Gnuplot

<div class="toccolours mw-collapsible mw-collapsed">Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

<div class="mw-collapsible-content"><dl><dd>- Karle under /usr/bin/gnuplot
- Andy under /share/apps/gnuplot/default/bin/gnuplot

</dd></dl>Extensive documentation of gnuplot is available at the [gnuplot's homepage](http://www.gnuplot.info/).

</div></div>GenomePop2

<div class="toccolours mw-collapsible mw-collapsed">GenomePop2 is a newer and specialized version of the older program GenomePop.

<div class="mw-collapsible-content">GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s \* h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [\[19\]](http://webs.uvigo.es/acraaj/GenomePop2.htm). More information about our installation can be found here [GENOMEPOP2](/bookstack/books/software-applications/page/genomepop2-reference-guide "GENOMEPOP2").

</div></div>GROMACS

<div class="toccolours mw-collapsible mw-collapsed">GROMACS (Groningen Machine for Chemical Simulations)

<div class="mw-collapsible-content">GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/gromacs](/bookstack/books/software-applications/page/gromacs-reference-guide)Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

</div></div>GPAW

<div class="toccolours mw-collapsible mw-collapsed">GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

<div class="mw-collapsible-content">It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here [GPAW](/bookstack/books/software-applications/page/gpaw-reference-guide "GPAW").

</div></div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-h-1">H</span>**

<div class="mw-collapsible-content">Hapsembler

<div class="toccolours mw-collapsible mw-collapsed">Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

<div class="mw-collapsible-content"> Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with ```
module load hapsembler
```

</div></div>HOOMD

<div class="toccolours mw-collapsible mw-collapsed">Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

<div class="mw-collapsible-content">Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

HOOMD's object-oriented design patterns make it both versatile and expandable. Various types of potentials, integration methods and file formats are currently supported, and more are added with each release. The code is available and open source, so anyone can write a plugin or change the source to add additional functionality. Simulations are configured and run using simple python scripts, allowing complete control over the force field choice, integrator, all parameters, how many time steps are run, etc. The scripting system is designed to be as simple as possible to the non-programmer.

The HOOMD development effort is led by the Glotzer group at the University of Michigan, but many groups from different universities have contributed code that is now part of the HOOMD main package, see the credits page for the full list. The HOOMD website and documentation are available here [\[20\]](http://codeblue.umich.edu/hoomd-blue/about.html). More information about our installation can be found here <a class="new" title="HOOMD (page does not exist)">HOOMD</a>.

</div></div>HOPSPACK

<div class="toccolours mw-collapsible mw-collapsed">HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

<div class="mw-collapsible-content">The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th&gt;Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

\- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -&gt; <a class="new" title="HOPSACK (page does not exist)">HOPSACK</a>.

</div></div>HONDO PLUS

<div class="toccolours mw-collapsible mw-collapsed">Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

<div class="mw-collapsible-content">It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

[http://comp.chem.umn.edu/hondoplus/HONDOPLUS\_Manual\_v5.1.2007.2.17.pdf](http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf)

More information about our installation can be found here <a class="new" title="HONDO PLUS (page does not exist)">HONDO PLUS</a>.

</div></div>HUMAnN2

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/humann2](/bookstack/books/software-applications/page/applications-environment-reference-guide)

</div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-i-1">I</span>**

<div class="mw-collapsible-content">IMa2

<div class="toccolours mw-collapsible mw-collapsed">The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

<div class="mw-collapsible-content">The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [\[21\]](http://lifesci.rutgers.edu/%7Eheylab/ProgramsandData/Programs/IMa2/Using_IMa2_8_24_2011.pdf). Information about our installation can be found here [IMA2](/bookstack/books/software-applications/page/ima2-reference-guide "IMA2").

</div></div>I-TASSER

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/itasser](/bookstack/books/software-applications/page/itasser-reference-guide)

</div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-j-1">J</span>**

<div class="mw-collapsible-content">JULIA

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. Julia is installed on Penzias.

</div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-l-1">L</span>**

<div class="mw-collapsible-content">LAMARC

<div class="toccolours mw-collapsible mw-collapsed">LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

<div class="mw-collapsible-content">It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [\[22\]](http://evolution.genetics.washington.edu/lamarc/index.html), read this paper [\[23\]](http://evolution.genetics.washington.edu/lamarc/download/bioinformatics2006-lamarc2.0.pdf), and look at the documentation here [\[24\]](http://evolution.genetics.washington.edu/lamarc/documentation/index.html). More information about our installation can be found here <a class="new" title="LAMARC (page does not exist)">LAMARC</a>.

</div></div>LAMMPS

<div class="toccolours mw-collapsible mw-collapsed">LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

<div class="mw-collapsible-content">It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [\[25\]](http://lammps.sandia.gov/doc/Manual.html) or from the full PDF manual here [\[26\]](http://lammps.sandia.gov/doc/Manual.pdf). Information about our installation can be found here [LAMMPS](/bookstack/books/software-applications/page/lammps-reference-guide "LAMMPS").

</div></div>LS-DYNA

<div class="toccolours mw-collapsible mw-collapsed">From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

<div class="mw-collapsible-content">In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [\[27\]](http://ftp.lstc.com/user/manuals/ls-dyna_971_manual_k_rev1.pdf). All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:

  
/share/apps/lsdyna/default/\[bin,examples\]

  
More information about our installation can be found here [LSDYNA](/bookstack/books/software-applications/page/lsdyna-reference-guide "LSDYNA").

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-m-1">M</span>**

<div class="mw-collapsible-content">MAGMA

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

MATHEMATICA

<div class="toccolours mw-collapsible mw-collapsed">“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities.

<div class="mw-collapsible-content">Mathematica is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at [http://www.wolfram.com/learningcenter/](http://www.wolfram.com/learningcenter/)

More information is available in this wiki, find it here [MATHEMATICA](/bookstack/books/software-applications/page/mathematica-reference-guide "MATHEMATICA").

</div></div>MATLAB

<div class="toccolours mw-collapsible mw-collapsed">The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

<div class="mw-collapsible-content">Typical uses include:

```
Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building
```

More information about our installation can be found here <a class="new" title="MATLAB (page does not exist)">MATLAB</a>

</div></div>MET (Model Evaluation Tools)

<div class="toccolours mw-collapsible mw-collapsed">MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

<div class="mw-collapsible-content">MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well. MET provides a variety of verification techniques, including:

- Standard verification scores comparing gridded model data to point-based observations
- Standard verification scores comparing gridded model data to gridded observations
- Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
- Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here <a class="new" title="MET (page does not exist)">MET</a>

</div></div>Migrate

<div class="toccolours mw-collapsible mw-collapsed">Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

<div class="mw-collapsible-content">The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here <a class="new" title="MIGRATE (page does not exist)">MIGRATE</a>

</div></div>MPFR

<div class="toccolours mw-collapsible mw-collapsed">The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

<div class="mw-collapsible-content">MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

</div></div>MRBAYES

<div class="toccolours mw-collapsible mw-collapsed">MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

<div class="mw-collapsible-content">The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here [MRBAYES](/bookstack/books/software-applications/page/mrbayes-reference-guide "MRBAYES")

</div></div>msABC

<div class="toccolours mw-collapsible mw-collapsed">msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

<div class="mw-collapsible-content">Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here <a class="new" title="MsABC (page does not exist)">msABC</a>

</div></div>MSMS

<div class="toccolours mw-collapsible mw-collapsed">MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

<div class="mw-collapsible-content">In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here <a class="new" title="MSMS (page does not exist)">MSMS</a>

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-n-1">N</span>**

<div class="mw-collapsible-content">NAMD

<div class="toccolours mw-collapsible mw-collapsed">NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [\[28\]](http://www.ks.uiuc.edu/Research/namd).

<div class="mw-collapsible-content">The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here [NAMD](/bookstack/books/software-applications/page/namd-reference-guide "NAMD")

</div></div>Network Simulator-2 (NS2)

<div class="toccolours mw-collapsible mw-collapsed">NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

<div class="mw-collapsible-content">It is installed on BOB at the CUNY HPCC. For more detailed information look here [here](http://www.isi.edu/nsnam/ns/). More information about our installation can be found here [NS2](/bookstack/books/software-applications/page/ns2-reference-guide "NS2")

</div></div>NWChem

<div class="toccolours mw-collapsible mw-collapsed">NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

<div class="mw-collapsible-content">NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here [NWChem](/bookstack/books/software-applications/page/nwchem-reference-guide "NWChem")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-o-1">O</span>**

<div class="mw-collapsible-content">Octopus

<div class="toccolours mw-collapsible mw-collapsed">Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional ﬁnite systems subject to time-dependent electromagnetic ﬁelds.

<div class="mw-collapsible-content">The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here [OCTOPUS](/bookstack/books/software-applications/page/octopus-reference-guide "OCTOPUS")

</div></div>OpenMM

<div class="toccolours mw-collapsible mw-collapsed">OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

<div class="mw-collapsible-content">Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

</div></div>OpenFOAM

<div class="toccolours mw-collapsible mw-collapsed">OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

<div class="mw-collapsible-content">More information about our installation can be found here [OpenFOAM](/bookstack/books/software-applications/page/openfoam-reference-guide "OpenFOAM")

</div></div>OpenSees

<div class="toccolours mw-collapsible mw-collapsed">OpenSees, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

<div class="mw-collapsible-content">It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

</div></div>ORCA

<div class="toccolours mw-collapsible mw-collapsed">The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

<div class="mw-collapsible-content">Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here [ORCA](/bookstack/books/software-applications/page/orca-reference-guide "ORCA")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-p-1">P</span>**

<div class="mw-collapsible-content">ParGAP

<div class="toccolours mw-collapsible mw-collapsed">ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

<div class="mw-collapsible-content">The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here [ParGAP](/bookstack/books/software-applications/page/pargap-reference-guide "ParGAP")

</div></div>POPABC

<div class="toccolours mw-collapsible mw-collapsed">PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

<div class="mw-collapsible-content">The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [\[29\]](https://code.google.com/p/popabc)More information about our installation can be found here <a class="new" title="POPABC (page does not exist)">POPABC</a>

</div></div>PHOENICS

<div class="toccolours mw-collapsible mw-collapsed">PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here [http://www.cham.co.uk](http://www.cham.co.uk).

<div class="mw-collapsible-content">Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the *entire* PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d\_allpro, d\_earth, d\_enviro, d\_photo, d\_priv1, d\_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at [http://www.cham.co.uk/products/parallel.php](http://www.cham.co.uk/products/parallel.php). Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here [PHOENICS](/bookstack/books/software-applications/page/phoenics-reference-guide "PHOENICS")

</div></div>PHRAP-PHRED

<div class="toccolours mw-collapsible mw-collapsed">PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [\[30\]](http://www.phrap.org/phredphrapconsed.html), but a brief description of both, extracted from their manuals, follows.

<div class="mw-collapsible-content">PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here [PHRAP-PHRED](/bookstack/books/software-applications/page/phrap-phred-reference-guide "PHRAP-PHRED")

</div></div>PyRAD

<div class="toccolours mw-collapsible mw-collapsed">Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

<div class="mw-collapsible-content">Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here [PyRAD](/bookstack/books/software-applications/page/pyrad-reference-guide "PyRAD")

</div></div>Python

<div class="toccolours mw-collapsible mw-collapsed">Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [\[31\]](https://www.python.org/)

<div class="mw-collapsible-content">There are two supported versions installed on Andy system:

- Python 3.1.3 located under /share/apps/python/3.1.3/bin
- Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here [PYTHON](/bookstack/books/software-applications/page/python-reference-guide "PYTHON")

</div></div>Installing Python packages

<div class="toccolours mw-collapsible mw-collapsed">Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

<div class="mw-collapsible-content">Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

```
module load python/2.7.13_anaconda
pip install guppy --user
```

For Python 3.6.0 in Anaconda build

```
module load python/3.6.0_anaconda
pip install guppy --user
```

For Python 2.7.13 in Miniconda

```
module load python/miniconda2
pip install guppy --user
```

For Python 3.6.0 in Miniconda 3

```
module load python/miniconda3
pip install guppy --user
```

To check if the package is properly installed type:

```
pip list | grep guppy
```

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-q-1">Q</span>**

<div class="mw-collapsible-content">QIIME

<div class="toccolours mw-collapsible mw-collapsed">QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

<div class="mw-collapsible-content">QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here [QIIME](/bookstack/books/software-applications/page/qiime-reference-guide "QIIME")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-r-1">R</span>**

<div class="mw-collapsible-content">R

<div class="toccolours mw-collapsible mw-collapsed">R is a free software environment for statistical computing and graphics.

<div class="mw-collapsible-content">General Notes

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here [R](/bookstack/books/software-applications/page/r-reference-guide "R")

</div></div>RAXML

<div class="toccolours mw-collapsible mw-collapsed">Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

<div class="mw-collapsible-content">RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here [RAXML](/bookstack/books/software-applications/page/raxml-reference-guide "RAXML")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-s-1">S</span>**

<div class="mw-collapsible-content">SAGE

<div class="toccolours mw-collapsible mw-collapsed">Sage can be used to study elementary and advanced, pure and applied mathematics.

<div class="mw-collapsible-content">This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here [SAGE](/bookstack/books/software-applications/page/sage-reference-guide "SAGE")

</div></div>SAMTOOLS

<div class="toccolours mw-collapsible mw-collapsed">SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

<div class="mw-collapsible-content">SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

```
Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.
```

More information about our installation can be found here [SAMTOOLS](/bookstack/books/software-applications/page/samtools-reference-guide "SAMTOOLS")

</div></div>SAS

<div class="toccolours mw-collapsible mw-collapsed">SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

<div class="mw-collapsible-content">It enables the programmer to perform:

<dl><dd>- data entry, retrieval, management, and mining
- report writing and graphics
- statistical analysis
- business planning, forecasting, and decision support
- operations research and project management
- quality improvement
- applications development
- data warehousing (extract, transform, load)
- platform independent and remote computing

</dd></dl>More information about our installation can be found here <a class="new" title="SAS (page does not exist)">SAS</a>

</div></div>Stata/MP

<div class="toccolours mw-collapsible mw-collapsed">Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

<div class="mw-collapsible-content">Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here <a class="new" title="STATA (page does not exist)">STATA</a>

</div></div>Structurama

<div class="toccolours mw-collapsible mw-collapsed">Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

<div class="mw-collapsible-content">First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here [STRUCTURAMA](/bookstack/books/software-applications/page/structurama-reference-guide "STRUCTURAMA")

</div></div>Structure

<div class="toccolours mw-collapsible mw-collapsed">The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

<div class="mw-collapsible-content">It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [\[32\]](http://pritch.bsd.uchicago.edu/structure.html). Structure is installed on ANDY at the CUNY HPCC. Structure is a serial program. More information about our installation can be found here [STRUCTURE](/bookstack/books/software-applications/page/structure-reference-guide "STRUCTURE")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-t-1">T</span>**

<div class="mw-collapsible-content">Thrust Library (CUDA)

<div class="toccolours mw-collapsible mw-collapsed">Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

<div class="mw-collapsible-content">As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here [THRUST](/bookstack/books/software-applications/page/thrust-reference-guide "THRUST")

</div></div>TOPHAT

<div class="toccolours mw-collapsible mw-collapsed">TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

<div class="mw-collapsible-content">TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here [TOPHAT](/bookstack/books/software-applications/page/tophat-reference-guide "TOPHAT")

</div></div>Trinity

<div class="toccolours mw-collapsible mw-collapsed">Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

<div class="mw-collapsible-content">Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here [TRINITY](/bookstack/books/software-applications/page/trinity-reference-guide "TRINITY")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-u-1">U</span>**

<div class="mw-collapsible-content">USEARCH

<div class="toccolours mw-collapsible mw-collapsed">USEARCH is a unique sequence analysis tool with thousands of users world-wide.

<div class="mw-collapsible-content">USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here [USEARCH](/bookstack/books/software-applications/page/usearch-reference-guide "USEARCH")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-v-1">V</span>**

<div class="mw-collapsible-content">VELVET

Velvet is a set of algorithms for *de novo* short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK. More information about our installation can be found here <a class="new" title="VELVET (page does not exist)">VELVET</a>.

VSEARCH

<div class="toccolours mw-collapsible mw-collapsed">VSEARCH is a open source alternative to USEARCH.

<div class="mw-collapsible-content">VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.

  
Additional details on VSEARCH can be found at: [this link](https://github.com/torognes/vsearch)

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

```
module load vsearch  
```

</div></div>VMD

<div class="toccolours mw-collapsible mw-collapsed">VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

<div class="mw-collapsible-content">It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the [TCB's homepage](http://www.ks.uiuc.edu/Research/vmd/).

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start VMD as described above.

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-w-1">W</span>**

<div class="mw-collapsible-content">WRF

<div class="toccolours mw-collapsible mw-collapsed">The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

<div class="mw-collapsible-content">It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here [WRF](/bookstack/books/software-applications/page/wrf-reference-guide "WRF")

</div></div></div><div class="mw-collapsible mw-collapsed">#### **<span class="mw-headline" id="bkmrk-x-1">X</span>**

<div class="mw-collapsible-content">Xmgrace

<div class="toccolours mw-collapsible mw-collapsed">Grace is a WYSIWYG 2D plotting tool for the X Window System and M\*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page [http://plasma-gate.weizmann.ac.il/Grace/](http://plasma-gate.weizmann.ac.il/Grace/)

<div class="mw-collapsible-content">Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start Xmgrace as described above.

</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)

# APPLICATIONS ENVIRONMENT (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-using-modules-to-run">#### **<span class="mw-headline" id="bkmrk-using-modules-to-run-2">[Using Modules to Run your Applications](/bookstack/books/getting-started/page/software-modules-with-lmod "Using Modules to Run your Applications (page does not exist)")</span>**

<div class="toccolours mw-collapsible mw-collapsed">Modules is a software package that provides for the fast and convenient management of the components of a user's environment via **modulefiles**. When executed by the module command each module file fully configures the environment for its associated application or application group.

<div class="mw-collapsible-content">The modules configuration language allows for the management of applications environment conflicts and dependencies as well. The modules software allows users to load (and unload and reload) an application and/or system environment that is specific to their needs and avoids the need to set and manage a large, one-size-fits-all, generic environment for everyone at login.

Modules is the default approach to managing the user applications environment. CUNY HPCC system BOB, currently used almost entirely for Gaussian jobs will NOT be reconfigured with the modules software. Module version 3.2.9 is the default on the CUNY HPCC systems.

- **Modules, Learning by Example** 
    - Example 1, Basic Non-Cray System
    - Example 2, Less Basic From SALK (Cray System)

Using the module package users can easily set a collection of environmental variables that are specific to their compilation, parallel programming, and/or application requirements on the HPC Center's systems. The modules system also makes it convenient to advance or regress compiler, parallel programming, or applications versions when defaults are found to have bugs or performance issues. Whatever the task, the modules package can adjust the environment in an orderly way altering or setting of such environmental variables as PATH, MANPATH, LD\_LIBRARY\_PATH, etc. and providing some basic descriptive information about the application version being loaded and purpose of the modules file through the module help facility.

In addition to each application-specific modulefile, the module package functions through the use of a collection of sub-commands given after the initial module command itself as in "module list" for instance. All these module sub- command are described in detail in the module man page ("man module"), but a list of some of the more important and commonly used sub-commands is provided here:

```
Module sub-commands:

list
load
unload
switch
avail
show
help
purge

```

</div></div>#### **<span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-modules%2C-learning-by-1">Modules, Learning by Example</span>**

The best way to explain how to use the modules package and its sub-command is to consider some simple examples of a typical workflows that involve modules. Here are two examples. Again, for a more complete description of the modules package please refer to "man module".

<div class="toccolours mw-collapsible mw-collapsed">#### **<span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-example-1%2C-basic-non-1">Example 1, Basic Non-Cray System</span>**

<div class="mw-collapsible-content">Consider the unmodified PATH variable right after login to one of the CUNY HPCC systems. Without any custom or local environmental path settings, it would look something like this with no compiler, parallel programming model, or application-specific information in it:

```
username@service0:~> echo $PATH | tr -s ':' '\n'
/scratch/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin
```

We take note that there appears to be no path to the application that we are interested in running which is Wolfram's Mathematica in this example. Typing "which math" to find Mathematica ("math" is the command-line name for Mathematica) at the terminal yields:

```
 
username@service0:~>  which math
which: no math in (/scratch/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/c3/bin)
```

The Mathematica executable "math" is not found in the default PATH variabl defined by the system at login. Modules can be used to remedy this problem by adding the required path. To check which module files (if any) are already loaded into our environment, we are can type the "module list" sub-command at the terminal prompt:

```
username@service0:~> module list
No Modulefiles Currently Loaded.
username@service0:~>
```

No modules loaded. So the module file for Mathematica has not been loaded and it is no surprise that the Mathematica command-line "math" was not found. The next question is has the HPC Center installed Mathematica on this system and created a module file for it? To find this out we use the "module avail" sub-command:

```
username@service0:~> module avail
---------------------------- /share/apps/modules/default/modulefiles_UserApplications --------------------------------------

adf/2012.01(default)         cesm/1.0.3                   hoomd/0.9.2(default)         ncar/5.2.0_NCL(default)      pgi/12.3(default)
auto3dem/4.02(default)       cesm/1.0.4(default)          intel/12.1.3.293(default)    nwchem/6.1.1(default)        phoenics/2009(default)
autodock/4.2.3(default)      cuda/5.0(default)            ls-dyna/6.0.0(default)       octopus/4.0.0(default)       r/2.14.1(default)
beagle/0.2(default)          gromacs/4.5.5_32bit          mathematica/8.0.4(default)   openmpi/1.5.5_intel(default) wrf/3.4.0(default)
best/2.2L(default)           gromacs/4.5.5_64bit(default) matlab/R2012a(default)       openmpi/1.5.5_pgi

--------------------------------- /share/apps/modules/default/modulefiles_System -------------------------------------------

module-info   modules       version/3.2.9
```

The listing shows all available module files on this system, both those that are user-application related and those that are more system related. As shown in the output, these two types of module files are stored in different directories. Looking through the application list, there is a module for Mathematica version 8.0.4, which is also happens to be the default. On this system, the modules package has only just been installed, and therefore only one version of each application has been adapted to the module system and that version is the default.

The module file that is responsible for setting up correct environment needed to run Mathematica can now be loaded:

```
module load mathematica
```

Because there is only one version and it is the default, there is no need to include the version-specific extension to load it. To explicitly load version 8.0.4 (or any other specific and non-default version) one would use:

```
module load mathematica/8.0.4
```

After loading, the environmental PATH variable includes the path to Mathematica:

```
username@service0:~> echo $PATH | tr -s ':' '\n'
/scratch/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin
/share/apps/mathematica/8.0.4/Executables
```

This can be verified by rerunning the "which math" command:

```
username@service0:~> which math
/share/apps/mathematica/8.0.4/Executables/math
```

Once the head or login node enviroment variables are properly set, one can create a SLURM script to run an Mathematica job on a compute node and ensure that the head or login node environment just set is passed on to the compute nodes by using the "#SLURM -V" option inside you SLURM script:

```
#!/bin/bash
#SLURM -N mmat8_serial1
#SLURM -q production
#SLURM -l select=1:ncpus=1:mem=1920mb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# Just point to the serial executable to run
echo ">>>> Begin Mathematica Serial Run ..."
echo ""
math -run <test_run.nb > output
echo ""
echo ">>>> End   Mathematica Serial Run ..."
```

Since the PATH variable in the login environment is now includes the location of the Mathematica executable and the "#SLURM -V" option ensures that this is passed to the compute node that the job is run on, the last line of the SLURM script will be executed without environment-related problems.

</div></div><div class="toccolours mw-collapsible mw-collapsed">#### **<span id="bkmrk--2"></span><span class="mw-headline" id="bkmrk-example-2%2C-less-basi-1">Example 2, Less Basic From SALK (Cray System)</span>**

<div class="mw-collapsible-content">As do all of the systems at the CUNY HPCC, the Cray SALK has multiple compiler, parallel programming models, libraries, and applications. In addition, SALK uses a custom high-performance interconnect with its own libraries, has its own compiler suite and compiling system, and many other custom libraries. Setting up and/or tearing down a given environment that makes all this work correctly is more complicated that it is on the other systems at the HPC Center. Modules simplifies this process tremendously for the user.

Here is an example of how to swap out the default Cray compiler environment on SALK and swap in the compiler suite from the Portland Group including all the right MPI libraries from Cray. In this case, we swap in a new release of the Portland Group compilers, not the current default on the Cray, and the version of the NETCDF library that has been compiled with the Portland group.

Having logged into SALK, we determine what modules have been load by default with "module list":

```
user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) cce/8.0.7
 15) acml/5.1.0
 16) xt-libsci/11.1.00
 17) pmi/3.0.0-1.0000.8661.28.2807.gem
 18) rca/1.0.0-2.0400.31553.3.58.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-cray/4.0.46
 22) xtpe-mc8
 23) cray-mpich2/5.5.3
 24) SLURM/11.3.0.121723
```

From the list, we see that the Cray Programming Environment ("PrgEnv-cray/4.0.46") and the Cray Compiler environment are loaded ("cce/8.0.7") by default among other things (SLURM, MPICH, etc.). To unload these Cray modules and load in the Portland Group (PGI) equivalents we need to know the names of the PGI modules. The "module avail" command will tell us this:

```
user@salk:~> module avail
.
.
(several sections of output removed)
.
.
------------------------------------------------ /opt/modulefiles -----------------------------------------------------
Base-opts/1.0.2-1.0400.31284.2.2.gem(default)     gcc/4.1.2                                         SLURM/11.2.0.113417
PrgEnv-cray/3.1.61                                gcc/4.2.4                                         SLURM/11.3.0.121723(default)
PrgEnv-cray/4.0.46(default)                       gcc/4.4.2                                         petsc/3.1.08
PrgEnv-gnu/3.1.61                                 gcc/4.4.4                                         petsc/3.1.09
PrgEnv-gnu/4.0.46(default)                        gcc/4.5.1                                         petsc-complex/3.1.08
PrgEnv-intel/3.1.61                               gcc/4.5.2                                         petsc-complex/3.1.09
PrgEnv-intel/4.0.46(default)                      gcc/4.5.3                                         pgi/12.10
PrgEnv-pathscale/3.1.61                           gcc/4.6.1                                         pgi/12.3
PrgEnv-pathscale/4.0.46(default)                  gcc/4.7.1(default)                                pgi/12.6(default)
PrgEnv-pgi/3.1.61                                 hss-llm/6.0.0(default)                            pgi/12.8
PrgEnv-pgi/4.0.46(default)                        intel/12.1.1.256                                  wrf/3.3.0
acml/4.4.0                                        intel/12.1.4.319(default)                         wrf/3.4.0(default)
acml/5.1.0(default)                               intel/12.1.5.339                                  xt-asyncpe/5.01
admin-modules/1.0.2-1.0400.31284.2.2.gem(default) java/jdk1.6.0_24                                  xt-asyncpe/5.05
amber/12(default)                                 java/jdk1.7.0_03(default)                         xt-asyncpe/5.13(default)
cce/8.0.7(default)                                mazama/6.0.0(default)                             xt-libsci/11.0.00
chapel/1.4.0                                      modules/3.2.6.6(default)                          xt-libsci/11.0.04
chapel/1.5.0(default)                             mrnet/3.0.0(default)                              xt-libsci/11.1.00(default)
fftw/2.1.5.3                                      pathscale/4.0.12.1(default)                       xt-papi/4.2.0
fftw/3.2.2.1(default)                             pathscale/4.0.9                                   xt-papi/4.3.0(default)
fftw/3.3.0.1                                      SLURM/11.1.0.111761
```

There are several versions of the PGI compilers and two version of the PGI Programming Environment for the Cray (SALK). We are interested in loading PGI's 12.10 release (not the default which is "pgi/12.6") and the most current release of the PGI programming environment ("PrgEnv-pgi/4.0.46"), which is the default. The PGI programming environment for the Cray provides all the environmental settings required to use the PGI compilers on the Cray which includes a number of custom libraries.

Here is a series of module commands to unload the Cray defaults, load the PGI modules mentioned, and load version 4.2.0 of NETCDF compiled with the PGI compilers.

```
user@salk:~> module unload PrgEnv-cray
user@salk:~> module load PrgEnv-pgi
user@salk:~> module unload pgi
user@salk:~> module load pgi/12.10
user@salk:~> 
user@salk:~> module load netcdf/4.2.0
user@salk:~>
user@salk;~> cc -V
/opt/cray/xt-asyncpe/5.13/bin/cc: INFO: Compiling with CRAYPE_COMPILE_TARGET=native.

pgcc 12.10-0 64-bit target on x86-64 Linux 
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc.  All Rights Reserved.
```

Several comments about this series of command are perhaps useful. First, the first three commands do not include version numbers and will therefore load or unload the current default versions. In the third line, we unload the default version of the PGI compiler (version 12.6) which is loaded with the rest of the PGI Programming Environment in the second line. We then load the non-default and more recent release from PGI, version 12.10 in the fourth line. Later, we load NETCDF version 4.2.0 which, because we have already loaded the PGI Programming Environment, will load the version of NETCDF 4.2.0 compiled with the PGI compilers. Finally, we check to see which compiler the Cray "cc" compiler wrapper actually invokes after this sequence of module commands. We see that indeed "pgcc" version 12.10 is being used.

We can confirm all this by again entering "module list". Notice that the Cray-related compiler modules have been replaced by those from PGI and that NETCDF version 4.2.0 has been loaded. We are ready to use new PGI compiler suite based environment. It is left as an exercise to the reader to figure out how the series of commands listed above could have been shortened by using the "module swap" sub- command.

```
user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) xtpe-mc8
 15) cray-mpich2/5.5.3
 16) SLURM/11.3.0.121723
 17) xt-libsci/11.1.00
 18) pmi/3.0.0-1.0000.8661.28.2807.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-pgi/4.0.46
 22) pgi/12.10
 23) hdf5/1.8.8
 24) netcdf/4.2.0
```

</div></div>#### **<span class="mw-headline" id="bkmrk-applications-1">Applications</span>**

This an overview of the user-level HPC applications supported by the HPC Center staff for the benefit of the entire CUNY HPCC user community. A user can chose to install any application that they are licensed for on their own account, or appeal (based on general interest) to have it installed by HPC Center staff in the shared system directory (usually /shared/apps).

Not every user-level application is installed on every system. This is because system architectural differences, load-balancing considerations, licensing limitations, the time required to maintain them, and other factors, sometimes dictate otherwise. Here, we present the current CUNY HPCC user-level application catalogue and note the system on which each application is installed and licensed to run.

We encourage the CUNY HPCC community to help the HPC Center staff create a applications catalogue that is closely tuned to the needs of the community. As such, we hope that users will solicit staff-help in growing our application install base to suite the needs of the community whatever the application discipline (CAE, CFD, COMPCHEM, QCD, BIOINFORMATICS, etc.). The CUNY HPCC will do the best to try and satisfy reasonable software requests.   
Software requests must be submitted by Supervisors and/or PI's only. Users can install applications in their own home directory as needed.

Unless otherwise noted, all applications built locally were built using our default Intel-OpenMPI applications stack. Furthermore, the SLURM Pro job submission scripts below are promised to work (at the time this section of the Wiki was written), but the number of processors (cores), memory, and process placement defined in the example scripts is not necessarily optimal for wall-clock or cpu-time performance. The user should use their knowledge of the application, the system, and the benefit of their experience to choose the optimal combination of processors and memory for their scripts. Details on how to make full use of the SLURM Pro job submission options are covered in the SLURM Pro section below.

#### **<span class="mw-headline" id="bkmrk-adcirc-1">ADCIRC</span>**

<div class="toccolours mw-collapsible mw-collapsed">ADCIRC is a system of programs for solving time-dependent, free-surface, circulation and transport problems in two and three dimensions.

<div class="mw-collapsible-content"> These programs utilize the finite element method in space allowing the use of highly flexible, unstructured grids. The ADCIRC distribution includes and integrates the METIS tool for unstructured grid generation. In addition, ADCIRC includes a distribution of SWAN to which it can be coupled to add a shore wave simulation model. Typical ADCIRC applications have included: (i) modeling tides and wind driven circulation, (ii) analysis of hurricane storm surge and flooding, (iii) dredging feasibility and material disposal studies, (iv) larval transport studies, (v) near shore marine operations. For more detail on using ADCIRC, please visit the ADCIRC website here [\[1\]](http://adcirc.org/index.html) and read the ADCIRC manual [\[2\]](http://adcirc.org/documentv49/ADCIRC_title_page.html). Details on using SWAN with ADCIRC can be found here [\[3\]](http://www.caseydietrich.com/swanadcirc) and at the SWAN web site [\[4\]](http://swanmodel.sourceforge.net). More information about use and set-up can be found here [ADCIRC](/bookstack/books/software-applications/page/adcirc-reference-guide "ADCIRC"). </div></div>#### **<span id="bkmrk--3"></span><span class="mw-headline" id="bkmrk-amber-%28assisted-mode-1">AMBER (Assisted Model Building with Energy Refinement)</span>**

Amber is the collective name for a suite of programs for classical bio-molecular simulations. The name "Amber" also denotes the family of potentials (force fields) used with Amber software. Here we discuss only simulation packages, but not the force fields or free tools available via AmberTools package. Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/amber](/bookstack/books/software-applications/page/applications-environment-reference-guide)

#### **<span class="mw-headline" id="bkmrk-anvio-1">ANVIO</span>**

Anvio is a tool for an analysis and visualization platform for genomics data. Anvio allows various types of workflows to be established. <a class="new" title="ANVIO (page does not exist)">ANVIO</a>

#### **<span class="mw-headline" id="bkmrk-augustus-1">AUGUSTUS</span>**

AUGUSTUS is a program that predicts genes in eukaryotic genomic sequences. Augustus is a gene-finding software based on Hidden Markov Models (HMMs), described in papers by Stanke and Waack (2003) and Stanke et al (2006) and Stanke et al (2006b) and Stanke et al (2008).The local version of the program is installed on Penzias. More information can be found here: [AUGUSTUS](/bookstack/books/software-applications/page/augustus-reference-guide "AUGUSTUS")

#### **<span class="mw-headline" id="bkmrk-autodock-1">AUTODOCK</span>**

<div class="toccolours mw-collapsible mw-collapsed">AutoDock is a suite of automated docking tools.

<div class="mw-collapsible-content"> It is designed to predict how small molecules, such as substrates or drug candidates, bind to a receptor of known 3D structure. AutoDock actually consists of two main programs: *autodock* itself performs the docking of the ligand to a set of grids describing the target protein; *autogrid* pre-calculates these grids. More information about the software may be found at the autodock web-page [\[5\]](http://autodock.scripps.edu/). Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/autodock](/bookstack/books/software-applications/page/autodock-reference-guide)</div></div>#### **<span class="mw-headline" id="bkmrk-bamova-1">BAMOVA</span>**

Bamova is a package used to do genetic analysis of a wide range of organisms on the basis of next-generation sequence data. The software implements Bayesian Analysis of Molecular Variance and different likelihood models for three different types of molecular data (including two models for high throughput sequence data). For more detail on BAMOVA please visit the BAMOVA web site [\[6\]](http://www.uwyo.edu/buerkle/software/bamova) and manual here [\[7\]](http://www.uwyo.edu/buerkle/software/bamova/bamova_manual_1.0.pdf). Further information can also be found here <a class="new" title="BAMOVA (page does not exist)">BAMOVA</a>.

#### **<span class="mw-headline" id="bkmrk-bayescan-1">BAYESCAN</span>**

<div class="toccolours mw-collapsible mw-collapsed">BAYESCAN is Population Genomics Software package. It identifies outlier loci and is applicable to both, dominant and codominant data.

<div class="mw-collapsible-content">This program, BayeScan aims at identifying candidate loci under natural selection from genetic data, using differences in allele frequencies between populations. BayeScan is based on the multinomial-Dirichlet model. One of the scenarios covered consists of an island model in which subpopulation allele frequencies are correlated through a common migrant gene pool from which they differ in varying degrees. The difference in allele frequency between this common gene pool and each subpopulation is measured by a subpopulation- specific FST coefficient. Therefore, this formulation can consider realistic ecological scenarios where the effective size and the immigration rate may differ among subpopulations.

More detailed information on Bayescan can be found at the web site here [\[8\]](http://cmpg.unibe.ch/software/bayescan/index.html)and in the manual here [\[9\]](http://cmpg.unibe.ch/software/bayescan/files/BayeScan2.1_manual.pdf). More information about our installation can be found here <a class="new" title="BAYESCAN (page does not exist)">BAYESCAN</a>.

</div></div>#### **<span class="mw-headline" id="bkmrk-beast-1">BEAST</span>**

<div class="toccolours mw-collapsible mw-collapsed">BEAST is a powerful and flexible evolutionary analysis package for molecular sequence variation.

<div class="mw-collapsible-content">The package implements a family of Markov chain Monte Carlo (MCMC) algorithms for Bayesian phylogenetic inference, divergence time dating, coalescent analysis, phylogeography and related molecular evolutionary analyses. It is a cross-platform Java program for Bayesian MCMC analysis of molecular sequences. It is entirely orientated towards rooted, time-measured phylogenies inferred using strict or relaxed molecular clock models. It can be used as a method of reconstructing phylogenies, but is also a framework for testing evolutionary hypotheses without conditioning on a single tree topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability. The distribution includes a simple to use user-interface program called 'BEAUti' for setting up standard analyses and a suite of programs for analysing the results. For more detail on BEAST (and BEAUTi) please visit the BEAST web site [\[10\]](http://beast.bio.ed.ac.uk/Main_Page). More information about our installation can be found here [BEAST](/bookstack/books/software-applications/page/beast-reference-guide).

</div></div>#### **<span class="mw-headline" id="bkmrk-best-1">BEST</span>**

<div class="toccolours mw-collapsible mw-collapsed">BEST is an application aimed to estimate gene trees and the species tree from multilocus sequences.

<div class="mw-collapsible-content">The program uses information from multiple gene trees and performs a Bayesian analysis to estimate the topology of the species tree, divergence times and population sizes.

It provides a new approach for estimating the mutation-rate- based, phylogenetic relationships among species. Its method accounts for deep coalescence, but not for other complicating issues such as horizontal transfer or gene duplication. The program works in conjunction within the popular Bayesian phylogenetics package, MrBayes (Ronquist and Huelsenbeck, Bioinformatics, 2003). BEST's parameters are defined using the 'prset' command from MrBayes. Details on BEST's capabilities and options are avialable at the BEST web site here [\[11\]](http://www.stat.osu.edu/~dkp/BEST/introduction). More information about our installation is available here [BEST](/bookstack/books/software-applications/page/best-reference-guide "BEST").

</div></div>#### **<span class="mw-headline" id="bkmrk-bowtie2-1">BOWTIE2</span>**

<div class="toccolours mw-collapsible mw-collapsed">BOWTIE2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters, and particularly good at aligning to relatively long (e.g. mammalian) genomes.

<div class="mw-collapsible-content">BOWTIE2 indexes the genome with an FM Index to keep its memory footprint small: for the human genome, its memory footprint is typically around 3.2 GB. BOWTIE2 supports gapped, local, and paired-end alignment modes. BOWTIE2 is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, CUFFLINKS, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC. Additional information can be found at the BOWTIE2 home page here [\[12\]](http://bowtie-bio.sourceforge.net/bowtie2/index.shtml). Information about our installation can be found here [BOWTIE2](/bookstack/books/software-applications/page/bowtie2-reference-guide "BOWTIE2").

</div></div>#### **<span class="mw-headline" id="bkmrk-bpp2-1">BPP2</span>**

<div class="toccolours mw-collapsible mw-collapsed">BPP2 uses a Bayesian modeling approach to generate the posterior probabilities of species assignments taking into account uncertainties due to unknown gene trees and the ancestral coalescent process. For tractability, it relies on a user-specified guide tree to avoid integrating over all possible species delimitations.

<div class="mw-collapsible-content">Additional information can be found at the download site here [\[13\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [BPP2](/bookstack/books/software-applications/page/bpp2-reference-guide "BPP2").</div></div>#### **<span class="mw-headline" id="bkmrk-brownie-1">BROWNIE</span>**

BROWNIE is a program for analyzing rates of continuous character evolution and looking for substantial rate differences in different parts of a tree using likelihood ratio tests and Akaike Information Criterion (AIC) statistics. It now also implements many other methods for examining trait evolution and methods for doing species delimitation. More information about our installation can be found here [BROWNIE](/bookstack/books/software-applications/page/brownie-reference-guide "BROWNIE").

#### **<span class="mw-headline" id="bkmrk-cgal-1">CGAL</span>**

<div class="toccolours mw-collapsible mw-collapsed">The Computational Geometry Algorithms Library (CGAL), offers data structures and algorithms.

<div class="mw-collapsible-content">Examples of these are triangulations (2D constrained triangulations, and Delaunay triangulations and periodic triangulations in 2D and 3D), Voronoi diagrams (for 2D and 3D points, 2D additively weighted Voronoi diagrams, and segment Voronoi diagrams), polygons (Boolean operations, offsets, straight skeleton), polyhedra (Boolean operations), arrangements of curves and their applications (2D and 3D envelopes, Minkowski sums), mesh generation (2D Delaunay mesh generation and 3D surface and volume mesh generation, skin surfaces), geometry processing (surface mesh simplification, subdivision and parameterization, as well as estimation of local differential properties, and approximation of ridges and umbilics), alpha shapes, convex hull algorithms (in 2D, 3D and dD), search structures (kd trees for nearest neighbor search, and range and segment trees), interpolation (natural neighbor interpolation and placement of streamlines), shape analysis, fitting, and distances (smallest enclosing sphere of points or spheres, smallest enclosing ellipsoid of points, principal component analysis), and kinetic data structures.

The library is installed on PENZIAS.

More information can be found here [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/CGAL](/bookstack/books/software-applications/page/applications-environment-reference-guide).

</div></div>#### **<span class="mw-headline" id="bkmrk-consed-1">CONSED</span>**

<div class="toccolours mw-collapsible mw-collapsed">CONSED is a DNA sequence analysis finishing tool that provides sequence viewing, editing, alignment, and assembly capabilities from a X Windows graphical user interface (GUI).

<div class="mw-collapsible-content">It makes extensive use of other non-graphical and underlying sequence analysis tools including PHRED, PHRAP, and CROSSMATCH that may also be used separately and are described else where in this document. It also includes a viewer called BAMVIEW. The CONSED tool chain is developed and maintained at the University of Washington and is described more completely here [\[14\]](http://bozeman.mbt.washington.edu/consed/consed.html)CONSED is provided at the CUNY HPCC under an academic license that allows use, but not the copying or out bound transfer of any of the executables or files distributed under this academic license. The license is not transferable in any way and users wishing to run the application at their own site must acquire a license directly from the authors.

The CUNY HPCC supports CONSED version 23.0 for interactive use on KARLE. CONSED 23.0 and the tool chain described above is also installed on ANDY to allow for the batch use of underlying support tools mention above and described in detail below. In general, running GUI-based applications on ANDY's login node is discouraged. There should be little need to do this as KARLE is on the periphery of the CUNY HPCC network making login there direct and KARLE shares its HOME directory file system with ANDY making files created on either system immediately available on the other.

Rather than rewrite portions of the CONSEND manual here, users are directed to the manual's "Quick Tour" section here [\[15\]](http://bozeman.mbt.washington.edu/consed/distributions/README.23.0.txt) and asked to walk through some of the exercises after logging into KARLE. If problems or questions come up, please post them to "hpchelp@csi.cuny.edu". The CONSED 23.0 distribution is installed on KARLE in the following directory:

```
/share/apps/consed/default
```

All the files in the distribution can be found there.

</div></div>#### **<span class="mw-headline" id="bkmrk-cp2k-1">CP2K</span>**

<div class="toccolours mw-collapsible mw-collapsed">CP2K is a program to perform atomistic and molecular simulations of solid state, liquid, molecular, and biological systems.

<div class="mw-collapsible-content">It provides a general framework for different methods such as e.g., density functional theory (DFT) using a mixed Gaussian and plane waves approach (GPW) and classical pair and many-body potentials. CP2K provides state-of-the-art methods for efficient and accurate atomistic simulations. More information about our installation can be found here [CP2K](/bookstack/books/software-applications/page/cp2k-reference-guide "CP2K").

</div></div>#### **<span class="mw-headline" id="bkmrk-cufflinks-1">CUFFLINKS</span>**

<div class="toccolours mw-collapsible mw-collapsed">CUFFLINKS assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples.

<div class="mw-collapsible-content">It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. CUFFLINKS then estimates the relative abundances of these transcripts based on how many reads support each one, taking into account biases in library preparation protocols. CUFFLINKS is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. The other tools in this collection, BOWTIE, SAMTOOLS, and TOPHAT are also installed at the CUNY HPCC.Additional information can be found at the CUFFLINKS home page here [\[16\]](http://abacus.gene.ucl.ac.uk/software.html). More information about our installation can be found here [CUFFLINKS](/bookstack/books/software-applications/page/cufflinks-reference-guide "CUFFLINKS").

</div></div>#### **<span class="mw-headline" id="bkmrk-dl_poly-1">DL\_POLY</span>**

<div class="toccolours mw-collapsible mw-collapsed">DL\_POLY is a general purpose molecular dynamics simulation package developed at Daresbury Laboratory by W. Smith, T.R. Forester and I.T. Todorov.

<div class="mw-collapsible-content">Both serial and parallel versions are available. The original package was developed by the Molecular Simulation Group (now part of the Computational Chemistry Group, MSG) at Daresbury Laboratory under the auspices of the Engineering and Physical Sciences Research Council (EPSRC) for the EPSRC's Collaborative Computational Project for the Computer Simulation of Condensed Phases ( CCP5). Later developments were also supported by the Natural Environment Research Council through the eMinerals project. The package is the property of the Central Laboratory of the Research Councils, UK. More information about our installation and use can be found here [DL\_POLY](/bookstack/books/software-applications/page/dl-poly-reference-guide "DL POLY").

</div></div>#### **<span class="mw-headline" id="bkmrk-examl-1">ExaML</span>**

<div class="toccolours mw-collapsible mw-collapsed">ExaML stands for Exascale Maximum Likelihood (ExaML) code for phylogenetic inference using MPI.

<div class="mw-collapsible-content">The code is installed only on Penzias and implements the popular RAxML search algorithm for maximum likelihood based inference of phylogenetic trees.

It uses a radically new MPI parallelization approach that yields improved paralll efficiency, in particular on partitioned multi-gene or whole-genome datasets.

When using ExaML please cite the following paper:

Alexey M. Kozlov, Andre J. Aberer, Alexandros Stamatakis: "ExaML Version 3: A Tool for Phylogenomic Analyses on Supercomputers." Bioinformatics (2015) 31 (15): 2577-2579.

It is up to 4 times faster than RAxML-Light \[1\].

As RAxML-Light, ExaML also implements checkpointing, SSE3, AVX vectorization and memory saving techniques.

\[1\] A. Stamatakis, A.J. Aberer, C. Goll, S.A. Smith, S.A. Berger, F. Izquierdo-Carrasco: "RAxML-Light: A Tool for computing TeraByte Phylogenies", Bioinformatics 2012; doi: 10.1093/bioinformatics/bts309.

The run script for parallel job is analogous to one for running RAxML on Penzias and Andy.

</div></div>#### **<span class="mw-headline" id="bkmrk-exabayes-1">ExaBayes</span>**

<div class="toccolours mw-collapsible mw-collapsed">ExaBayes is a software package for Bayesian tree inference. It is particularly suitable for large-scale analyses on computer clusters. It is installed on Penzias server at HPCC center. The installed package is MPI parallel version.

<div class="mw-collapsible-content">*Availability:'* PENZIAS **Module file:**exabayes

**Citation**:

Fredrik Ronquist, Maxim Teslenko, Paul van der Mark, Daniel L Ayres, Aaron Darling, Sebastian Höhna, Bret Larget, Liang Liu, Marc a Suchard, and John P Huelsenbeck. MrBayes 3.2: efficient Bayesian phylogenetic inference and model choice across a large model space. Systematic biology, 61(3):539--42, May 2012.

Alexei J Drummond, Marc a Suchard, Dong Xie, and Andrew Rambaut. Bayesian phylogenetics with BEAUti and the BEAST 1.7. Molecular biology and evolution, 29(8):1969--73, August 2012.

Clemens Lakner, Paul van der Mark, John P Huelsenbeck, Bret Larget, and Fredrik Ronquist. Efficiency of Markov chain Monte Carlo tree proposals in Bayesian phylogenetics. Systematic biology, 57(1):86--103, February 2008.

**Use:** The example SLURM script to run the FDPPDIV on PENZIAS is given below

```
#!/bin/bash
#SLURM -q production
#SLURM -N <name_of_job>
#SLURM -l select=1:ncpus=2 
#SLURM -l place=free
#SLURM -V

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

mpirun -np 2 exabayes <input_file> > output_file
```

More information about application along with sample workflows are available on ExaBayes web site:

```
http://sco.h-its.org/exelixis/web/software/exabayes/manual/index.html#sec-11
```

</div></div>#### **<span class="mw-headline" id="bkmrk-fdppdiv-1">FDPPDIV</span>**

<div class="toccolours mw-collapsible mw-collapsed">FDPPDiv is a program for estimating divergence times on a fixed, rooted tree topology.

<div class="mw-collapsible-content">FDPPDiv offers two alternative approaches to divergence time estimation. The DPPDiv part refers to the Dirichlet Process Prior (DPP) model for divergence time estimation, and the F prefix (for Fossil) refers to the new Fossil Birth-Death approach. More information about our installation can be found here <a class="new" title="FDPPDIV (page does not exist)">FDPPDIV</a>.

</div></div>#### **<span class="mw-headline" id="bkmrk-gamess-us-1">GAMESS-US</span>**

<div class="toccolours mw-collapsible mw-collapsed">GAMESS is a program for ab initio molecular quantum chemistry.

<div class="mw-collapsible-content">Briefly, GAMESS can compute SCF wavefunctions ranging from RHF, ROHF, UHF, GVB, and MCSCF. Correlation corrections to these SCF wavefunctions include Configuration Interaction, second order perturbation Theory, and Coupled-Cluster approaches, as well as the Density Functional Theory approximation. Excited states can be computed by CI, EOM, or TD-DFT procedures. Nuclear gradients are available, for automatic geometry optimization, transition state searches, or reaction path following. Computation of the energy hessian permits prediction of vibrational frequencies, with IR or Raman intensities. Solvent effects may be modeled by the discrete Effective Fragment potentials, or continuum models such as the Polarizable Continuum Model. Numerous relativistic computations are available, including infinite order two component scalar corrections, with various spin-orbit coupling options. The Fragment Molecular Orbital method permits use of many of these sophisticated treatments to be used on very large systems, by dividing the computation into small fragments. Nuclear wavefunctions can also be computed, in VSCF, or with explicit treatment of nuclear orbitals by the NEO code. More information, including code, can be found here [GAMESS-US](/bookstack/books/software-applications/page/gamess-us-reference-guide "GAMESS-US").

</div></div>#### **<span class="mw-headline" id="bkmrk-garli-1">GARLI</span>**

<div class="toccolours mw-collapsible mw-collapsed">GARLI is a program that performs phylogenetic inference using the maximum-likelihood criterion.

<div class="mw-collapsible-content">Several sequence types are supported, including nucleotide, amino acid and codon. Version 2.0 adds support for partitioned models and morphology-like data types. It is usable on all operating systems, and is written and maintained by Derrick Zwickl at the University of Texas at Austin. Additional information can be found on the GARLI Wiki here [\[17\]](https://www.nescent.org/wg_garli/Main_Page). More information about our installation can be found here [GARLI](/bookstack/books/software-applications/page/garli-reference-guide "GARLI").

</div></div>#### **<span class="mw-headline" id="bkmrk-gauss-1">GAUSS</span>**

<div class="toccolours mw-collapsible mw-collapsed">An easy-to-use data analysis, mathematical and statistical environment based on the powerful, fast and efficient GAUSS Matrix Programming Language.

<div class="mw-collapsible-content">GAUSS is used to solve real world problems and data analysis problems of exceptionally large scale. GAUSS is currently available on ANDY and BOB. At the CUNY HPCC GAUSS is typically run in serial mode. (Note: GAUSS should not be confused with the computational chemistry application Gaussian.) More information about our installation can be found here [GAUSS](/bookstack/books/software-applications/page/gauss-reference-guide "GAUSS").

</div></div>#### **<span class="mw-headline" id="bkmrk-gaussian09-1">Gaussian09</span>**

<div class="toccolours mw-collapsible mw-collapsed">Gaussian09 is third-party, commercially licensed software from Gaussian, Inc. It is a set of programs for calculating electronic structure.

<div class="mw-collapsible-content">Gaussian09 is available for general use on Andy. The Gaussian User Guide can be found here at \[[\[18\]](http://www.gaussian.com)\]. More information about our installation can be found here [GAUSSIAN09](/bookstack/books/software-applications/page/gaussian09-reference-guide "GAUSSIAN09").

</div></div>#### **<span class="mw-headline" id="bkmrk-gmp-1">GMP</span>**

GMP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface. The library is installed on PENZIAS.

#### **<span class="mw-headline" id="bkmrk-gnuplot-1">Gnuplot</span>**

<div class="toccolours mw-collapsible mw-collapsed">Gnuplot is a portable command-line driven graphing utility. It is installed on the following systems:

<div class="mw-collapsible-content"><dl><dd>- Karle under /usr/bin/gnuplot
- Andy under /share/apps/gnuplot/default/bin/gnuplot
- Bob under /share/apps/gnuplot/default/bin/gnuplot

</dd></dl>Extensive documentation of gnuplot is available at the [gnuplot's homepage](http://www.gnuplot.info/).

</div></div>#### **<span class="mw-headline" id="bkmrk-genomepop2-1">GENOMEPOP2</span>**

<div class="toccolours mw-collapsible mw-collapsed">GenomePop2 is a newer and specialized version of the older program GenomePop.

<div class="mw-collapsible-content">GenomePop2 is designed to manage SNPs under more flexible and useful settings that are controlled by the user. If you need models with more than 2 alleles you should use the older GenomePop version of the program.

GenomePop2 allows the forward simulation of sequences of biallelic positions. As in the previous version, a number of evolutionary and demographic settings are allowed. Several populations under any migration model can be implemented. Each population consists of a number N of individuals. Each individual is represented by one (haploids) or two (diploids) chromosomes with constant or variable (hotspots) recombination between binary sites. The fitness model is multiplicative with each derived allele having a multiplicate effect of (1-s \* h-E) onto the global fitness value. By default E=0 and h=0.5 in diploids, but 1 in homozygotes or in haploids. Selective nucleotide sites undergoing directional selection (positive or negative) in different populations can be defined. In addition, bottlenecks and/or population expansion scenarios can be settled by the user during a desired number of generations. Several runs can be executed and a sample of user-defined size is obtained for each run and population. For more detail on how to use GenomePop2, please visit the web site here [\[19\]](http://webs.uvigo.es/acraaj/GenomePop2.htm). More information about our installation can be found here [GENOMEPOP2](/bookstack/books/software-applications/page/genomepop2-reference-guide "GENOMEPOP2").

</div></div>#### **<span class="mw-headline" id="bkmrk-gromacs-1">GROMACS</span>**

<div class="toccolours mw-collapsible mw-collapsed">GROMACS (Groningen Machine for Chemical Simulations)

<div class="mw-collapsible-content">GROMACS is a full-featured suite of free software, licensed under the GNU General Public License to perform molecular dynamics simulations -- in other words, to simulate the behavior of molecular systems with hundreds to millions of particles using Newton's equations of motion. It is primarily used for research on proteins, lipids, and polymers, but can be applied to a wide variety of chemical and biological research questions.

Details and submission scripts for production runs can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/gromacs](/bookstack/books/software-applications/page/gromacs-reference-guide)Please note that preparing molecular system for simulation via GROMACS tools, cannot be done on login node. Instead the users must either use their own workstation or use interactive or development queues.

</div></div>#### **<span class="mw-headline" id="bkmrk-gpaw-1">GPAW</span>**

<div class="toccolours mw-collapsible mw-collapsed">GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

<div class="mw-collapsible-content">It uses real-space uniform grids and multigrid methods, atom-centered basis-functions or plane-waves. GPAW calculations are controlled through scripts written in the programming language Python. GPAW relies on the Atomic Simulation Environment (ASE), which is a Python package that helps to describe atoms. The ASE package also handles molecular dynamics, analysis, visualization, geometry optimization and more. More information about our installation can be found here [GPAW](/bookstack/books/software-applications/page/gpaw-reference-guide "GPAW").

</div></div>#### **<span class="mw-headline" id="bkmrk-hapsembler-1">Hapsembler</span>**

Hapsembler is a haplotype-specific genome assembly toolkit that is designed for genomes that are rich in SNPs and other types of polymorphism. Hapsembler can be used to assemble reads from a variety of platforms including Illumina and Roche/454.

Hapsembler is currently installed on Appel system. In order to access velvet binaries load the velvet module with

```
module load hapsembler
```

#### **<span class="mw-headline" id="bkmrk-hoomd-1">HOOMD</span>**

<div class="toccolours mw-collapsible mw-collapsed">Performs general purpose particle dynamics simulations, taking advantage of NVIDIA GPUs to attain a level of performance equivalent to many processor cores on a fast cluster.

<div class="mw-collapsible-content">Unlike some other applications in the particle and molecular dynamics space, HOOMD developers have worked to implement all of the code's computationally intensive kernels on the GPU, although currently only single node, single-GPU or OpenMP-GPU runs are possible. There is no MPI-GPU or distributed parallel GPU version available at this time.

HOOMD's object-oriented design patterns make it both versatile and expandable. Various types of potentials, integration methods and file formats are currently supported, and more are added with each release. The code is available and open source, so anyone can write a plugin or change the source to add additional functionality. Simulations are configured and run using simple python scripts, allowing complete control over the force field choice, integrator, all parameters, how many time steps are run, etc. The scripting system is designed to be as simple as possible to the non-programmer.

The HOOMD development effort is led by the Glotzer group at the University of Michigan, but many groups from different universities have contributed code that is now part of the HOOMD main package, see the credits page for the full list. The HOOMD website and documentation are available here [\[20\]](http://codeblue.umich.edu/hoomd-blue/about.html). More information about our installation can be found here <a class="new" title="HOOMD (page does not exist)">HOOMD</a>.

</div></div>#### **<span class="mw-headline" id="bkmrk-hopspack-1">HOPSPACK</span>**

<div class="toccolours mw-collapsible mw-collapsed">HOPSPACK stands for Hybrid Optimization Parallel Search Package designed to help users to solve wide range of derivative free optimization problems.

<div class="mw-collapsible-content">The later can be noisy, non-convex or non-smooth ones. The basic optimization problem addressed is to minimize objective function on n unknowns f(x) subject to constrains: $A_I$th&gt;Ax ≥ bi Aex = be ci(x) ≥ 0 ce(x) = 0 l≤x≤u The first two constraints specify linear inequalities and equalities with coefficient matrices AI and AE. The next two constraints describe nonlinear inequalities and equalities captured in functions cI(x) and cE(x). The final constraints denote lower and upper bounds on the variables. HOPSPACK allow variables to be continuous or integer-valued and has provisions for multi-objective optimization problems. In general, functions f(x),cI(x), and cE(x) can be noisy and nonsmooth, although most algorithms perform best on determinate functions with continuous derivatives.

The users are allowed to design and implement their own solver either by writing their own code or by building existing solvers already in a framework. Because all solvers (called citizens) are members of the same global class they can share assigned resources. The main features of the package are:

\- Only function values are required for the optimization. - The user must provide a separate program that can evaluate the objective and nonlinear constraint functions at a given point. - A robust implementation of the Generating Set Search (GSS) solver is supplied, including the capability to handle linear constraints. - Multiple solvers can run simultaneously and are easily configured to share information. - Solvers may share a cache of computed function and constraint evaluations to eliminate duplicate work. - Solvers can initiate and control sub-problems Continuation -&gt; <a class="new" title="HOPSACK (page does not exist)">HOPSACK</a>.

</div></div>#### **<span class="mw-headline" id="bkmrk-humann2-1">HUMAnN2</span>**

HUMAnN is a pipeline for efficiently and accurately profiling the presence/absence and abundance of microbial pathways in a community from metagenomic or metatranscriptomic sequencing data (typically millions of short DNA/RNA reads). HUMAnN2 is the next generation of HUMAnN (HMP Unified Metabolic Analysis Network).

Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/humann2](/bookstack/books/software-applications/page/applications-environment-reference-guide)

#### **<span class="mw-headline" id="bkmrk-ima2-1">IMa2</span>**

<div class="toccolours mw-collapsible mw-collapsed">The IMa2 application performs basic calculations ‘Isolation with Migration’ using Bayesian inference and Markov chain Monte Carlo methods.

<div class="mw-collapsible-content">The only major conceptual addition to IMa2 that makes it different from the original IMa program is that it can handle data from multiple populations. This requires that the user specify a phylogenetic tree. Importantly, the tree must be rooted, and the sequence in time of internal nodes must be known and specified. More information on the IMa2 and IMa can be found in the user manual here [\[21\]](http://lifesci.rutgers.edu/%7Eheylab/ProgramsandData/Programs/IMa2/Using_IMa2_8_24_2011.pdf). Information about our installation can be found here [IMA2](/bookstack/books/software-applications/page/ima2-reference-guide "IMA2").

</div></div>#### **<span class="mw-headline" id="bkmrk-i-tasser-1">I-TASSER</span>**

I-TASSER is a platform for protein structure and function predictions. 3D models are built based on multiple-threading alignments by LOMETS and iterative template fragment assembly simulations; function inslights are derived by matching the 3D models with BioLiP protein function database.

Details and submission scripts can be found at: [http://wiki.csi.cuny.edu/cunyhpc/index.php/Applications\_Environment/itasser](/bookstack/books/software-applications/page/itasser-reference-guide)

#### **<span class="mw-headline" id="bkmrk-julia-1">JULIA</span>**

Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments.

Julia is installed on Penzias.

#### **<span class="mw-headline" id="bkmrk-hondo-plus-1">HONDO PLUS</span>**

<div class="toccolours mw-collapsible mw-collapsed">Hondo Plus is a versatile electronic structure code that combines work from the original Hondo application developed by Harry King in the lab of Michel Dupuis and John Rys, and that of numerous subsequent contributers.

<div class="mw-collapsible-content">It is currently distributed from the research lab of Dr. Donald Truhlar at the University of Minnesota. Part of the advantage of Hondo Plus is the availability of source implementations of a wide variety of model chemistries developed over its life time that researchers can adapt to their particular needs. The license to use the code requires a literature citation which is documented in the Hondo Plus 5.1 manual found at:

[http://comp.chem.umn.edu/hondoplus/HONDOPLUS\_Manual\_v5.1.2007.2.17.pdf](http://comp.chem.umn.edu/hondoplus/HONDOPLUS_Manual_v5.1.2007.2.17.pdf)

More information about our installation can be found here <a class="new" title="HONDO PLUS (page does not exist)">HONDO PLUS</a>.

</div></div>#### **<span class="mw-headline" id="bkmrk-lamarc-1">LAMARC</span>**

<div class="toccolours mw-collapsible mw-collapsed">LAMARC is a program which estimates population-genetic parameters such as population size, population growth rate, recombination rate, and migration rates.

<div class="mw-collapsible-content">It approximates a summation over all possible genealogies that could explain the observed sample, which may be sequence, SNP, microsatellite, or electrophoretic data. LAMARC and its sister program MIGRATE are successor programs to the older programs Coalesce, Fluctuate, and Recombine, which are no longer being supported. These programs are memory-intensive, but can run effectively on workstations. They are supported on a variety of operating systems. For more detail on LAMARC please visit the website here [\[22\]](http://evolution.genetics.washington.edu/lamarc/index.html), read this paper [\[23\]](http://evolution.genetics.washington.edu/lamarc/download/bioinformatics2006-lamarc2.0.pdf), and look at the documentation here [\[24\]](http://evolution.genetics.washington.edu/lamarc/documentation/index.html). More information about our installation can be found here <a class="new" title="LAMARC (page does not exist)">LAMARC</a>.

</div></div>#### **<span class="mw-headline" id="bkmrk-lammps-1">LAMMPS</span>**

<div class="toccolours mw-collapsible mw-collapsed">LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.

<div class="mw-collapsible-content">It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. LAMMPS runs efficiently on single-processor desktop or laptop machines, but is also designed for parallel computers, including clusters with and without GPUs. It will run on any parallel machine that compiles C++ and supports the MPI message-passing library. This includes distributed- or shared-memory parallel machines and Beowulf-style clusters. LAMMPS can model systems with only a few particles up to millions or billions. LAMMPS is a freely-available open-source code, distributed under the terms of the GNU Public License, which means you can use or modify the code however you wish. LAMMPS is designed to be easy to modify or extend with new capabilities, such as new force fields, atom types, boundary conditions, or diagnostics. A complete description of LAMMPS can be found in its on-line manual here [\[25\]](http://lammps.sandia.gov/doc/Manual.html) or from the full PDF manual here [\[26\]](http://lammps.sandia.gov/doc/Manual.pdf). Information about our installation can be found here [LAMMPS](/bookstack/books/software-applications/page/lammps-reference-guide "LAMMPS").

</div></div>#### **<span class="mw-headline" id="bkmrk-ls-dyna-1">LS-DYNA</span>**

<div class="toccolours mw-collapsible mw-collapsed">From its early development in the 1970s, LS-DYNA has evolved into a general purpose material stress, collision, and crash analysis program with many built-in material and structural element models.

<div class="mw-collapsible-content">In recent years, the code has also been adapted for both OpenMP and MPI parallel execution on a variety of platforms. The most recent version, LS-DYNA 7.1.2, is installed on ANDY at the CUNY HPCC under an academic license held by the City College of New York. The use of this license to do work that is commercial in anyway is prohibited.

Details on LS-DYNA's use, input deck construction, and execution options can be found in the LS-DYNA manual here [\[27\]](http://ftp.lstc.com/user/manuals/ls-dyna_971_manual_k_rev1.pdf). All files related to the HPC Center installation of version 971 (executables and example inputs) are located in:

  
/share/apps/lsdyna/default/\[bin,examples\]

  
More information about our installation can be found here [LSDYNA](/bookstack/books/software-applications/page/lsdyna-reference-guide "LSDYNA").

</div></div>#### **<span class="mw-headline" id="bkmrk-magma-1">MAGMA</span>**

MAGMA is a library similar to LAPACK but for hybrid architectures. MAGMA provides implementations for CUDA, Intel Xeon Phi, and OpenCL. On CUNY HPCC systems, MAGMA is installed in its CUDA variant only on Penzias.

#### **<span class="mw-headline" id="bkmrk-mathematica-1">MATHEMATICA</span>**

“Mathematica” is a fully integrated technical computing system that combines fast, high-precision numerical and symbolic computation with data visualization and programming capabilities. Mathematica version 10.0 is currently installed on the CUNY HPCC's ANDY cluster (andy.csi.cuny.edu) and KARLE standalone server (karle.csi.cuny.edu). The basics of running Mathematica on CUNY HPCC systems are present here. Additional information on how to use Mathematica can be found at [http://www.wolfram.com/learningcenter/](http://www.wolfram.com/learningcenter/)

More information is available in this wiki, find it here [MATHEMATICA](/bookstack/books/software-applications/page/mathematica-reference-guide "MATHEMATICA").

#### **<span class="mw-headline" id="bkmrk-matlab-1">MATLAB</span>**

<div class="toccolours mw-collapsible mw-collapsed">The MATLAB high-performance language for technical computing integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

<div class="mw-collapsible-content">Typical uses include:

```
Math and computation

Algorithm development

Data acquisition

Modeling, simulation, and prototyping

Data analysis, exploration, and visualization

Scientific and engineering graphics

Application development, including graphical user interface building
```

More information about our installation can be found here <a class="new" title="MATLAB (page does not exist)">MATLAB</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-migrate-1">Migrate</span>**

<div class="toccolours mw-collapsible mw-collapsed">Migrate estimates population parameters, effective population sizes and migration rates of n populations, using genetic data. It uses a coalescent theory approach taking into account the history of mutations and the uncertainty of the genealogy.

<div class="mw-collapsible-content">The estimates of the parameter values are achieved by either a Maximum likelihood (ML) approach or Bayesian inference (BI). Migrate's output is presented in an TEXT file and in a PDF file. The PDF file eventually will contain all possible analyses including histograms of posterior distributions. More information about our installation can be found here <a class="new" title="MIGRATE (page does not exist)">MIGRATE</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-mpfr-1">MPFR</span>**

<div class="toccolours mw-collapsible mw-collapsed">The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. MPFR has continuously been supported by the INRIA and the current main authors come from the Caramel and AriC project-teams at Loria (Nancy, France) and LIP (Lyon, France) respectively; see more on the credit page.

<div class="mw-collapsible-content">MPFR is based on the GMP multiple-precision library. The main goal of MPFR is to provide a library for multiple-precision floating-point computation which is both efficient and has a well-defined semantics. It copies the good ideas from the ANSI/IEEE-754 standard for double-precision floating-point arithmetic (53-bit significant). The library is installed on PENZIAS.

</div></div>#### **<span class="mw-headline" id="bkmrk-mrbayes-1">MRBAYES</span>**

<div class="toccolours mw-collapsible mw-collapsed">MrBayes is a program for the Bayesian estimation of phylogeny. Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on certain observations.

<div class="mw-collapsible-content">The conditioning is accomplished using Bayes's theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees. More information about our installation can be found here [MRBAYES](/bookstack/books/software-applications/page/mrbayes-reference-guide "MRBAYES")

</div></div>#### **<span class="mw-headline" id="bkmrk-msabc-1">msABC</span>**

<div class="toccolours mw-collapsible mw-collapsed">msABC is a program for simulating various neutral evolutionary demographic scenarios based on the software ms (Hudson 2002). msABC extends ms, calculating a multitude of summary statistics.

<div class="mw-collapsible-content">Therefore, msABC is suitable for performing the sampling step of an Approximate Bayesian Computation analysis (ABC), under various neutral demographic models. The main advantages of msABC are (i) use of various prior distributions, such as uniform, Gaussian, log-normal, gamma, (ii) implementation of a multitude summary statistics for one or more populations, (iii) efficient implementation, which allows the analysis of hundrends of loci and chromosomes even in a single computer, (iv) extended flexibility, such as simulation of loci of variable size and simulation of missing data. More information about our installation can be found here <a class="new" title="MsABC (page does not exist)">msABC</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-msms-1">MSMS</span>**

<div class="toccolours mw-collapsible mw-collapsed">MSMS is a tool to generate sequence samples under both neutral models and single locus selection models. MSMS permits the full range of demographic models provided by its relative MS (Hudson, 2002).

<div class="mw-collapsible-content">In particular, it allows for multiple demes with arbitrary migration patterns, population growth and decay in each deme, and for population splits and mergers. Selection (including dominance) can depend on the deme and also change with time. More information about our installation can be found here <a class="new" title="MSMS (page does not exist)">MSMS</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-namd-1">NAMD</span>**

<div class="toccolours mw-collapsible mw-collapsed">NAMD is a parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems. [\[28\]](http://www.ks.uiuc.edu/Research/namd).

<div class="mw-collapsible-content">The main server for Molecular Dynamics Calculations is PENZIAS which supports both GPU and non GPU versions of NAMD. However the MPI only (no GPU support) parallel versions of NAMD are also installed on SALK and ANDY. More information about our installation can be found here [NAMD](/bookstack/books/software-applications/page/namd-reference-guide "NAMD")

</div></div>#### **<span id="bkmrk--4"></span><span class="mw-headline" id="bkmrk-network-simulator-2--1">Network Simulator-2 (NS2)</span>**

<div class="toccolours mw-collapsible mw-collapsed">NS2 is a discrete event simulator targeted at networking research. NS2 provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.

<div class="mw-collapsible-content">It is installed on BOB at the CUNY HPCC. For more detailed information look here [here](http://www.isi.edu/nsnam/ns/). More information about our installation can be found here [NS2](/bookstack/books/software-applications/page/ns2-reference-guide "NS2")

</div></div>#### **<span class="mw-headline" id="bkmrk-nwchem-1">NWChem</span>**

<div class="toccolours mw-collapsible mw-collapsed">NWChem is an ab initio computational chemistry software package which also includes molecular dynamics (MM, MD) and coupled, quantum mechanical and molecular dynamics functionality (QM-MD).

<div class="mw-collapsible-content">NWChem has been developed by the Molecular Sciences Software group at the Department of Energy's EMSL. The software is available on PENZIAS and ANDY. More information about our installation can be found here [NWChem](/bookstack/books/software-applications/page/nwchem-reference-guide "NWChem")

</div></div>#### **<span class="mw-headline" id="bkmrk-octopus-1">Octopus</span>**

<div class="toccolours mw-collapsible mw-collapsed">Octopus is a pseudopotential real-space package aimed at the simulation of the electron-ion dynamics of one-, two-, and three-dimensional ﬁnite systems subject to time-dependent electromagnetic ﬁelds.

<div class="mw-collapsible-content">The program is based on time-dependent density-functional theory (TDDFT) in the Kohn-Sham scheme. All quantities are expanded in a regular mesh in real space, and the simulations are performed in real time. The program has been successfully used to calculate linear and non-linear absorption spectra, harmonic spectra, laser induced fragmentation, etc. of a variety of systems. More information about our installation can be found here [OCTOPUS](/bookstack/books/software-applications/page/octopus-reference-guide "OCTOPUS")

</div></div>#### **<span class="mw-headline" id="bkmrk-openmm-1">OpenMM</span>**

<div class="toccolours mw-collapsible mw-collapsed">OpenMM is both a library and a stand-alone application which provides tools for modern molecular modeling simulation. As a library it can be hooked into any code, allowing that code to do molecular modeling with minimal extra coding.

<div class="mw-collapsible-content">Moreover, OpenMM has a strong emphasis on hardware acceleration via GPU, thus providing not just a consistent API, but much greater performance than what one could get from just about any other code available. OpenMM was developed as a part of Physics-Based Simulation project with project leader prof. Pande.

</div></div>#### **<span class="mw-headline" id="bkmrk-openfoam-1">OpenFOAM</span>**

<div class="toccolours mw-collapsible mw-collapsed">OpenFOAM is before everything a library which users may incorporate in their own code(s). The OpenFOAM is installed on PENZIAS.

<div class="mw-collapsible-content">More information about our installation can be found here [OpenFOAM](/bookstack/books/software-applications/page/openfoam-reference-guide "OpenFOAM")

</div></div>#### **<span class="mw-headline" id="bkmrk-opensees-1">OpenSees</span>**

<div class="toccolours mw-collapsible mw-collapsed">OpenSees, the Open System for Earthquake Engineering Simulation, is an object-oriented, open source software framework.

<div class="mw-collapsible-content">It allows users to create both serial and parallel finite element computer applications for simulating the response of structural and geotechnical systems subjected to earthquakes and other hazards. OpenSees is primarily written in C++ and uses several Fortran and C numerical libraries for linear equation solving, and material and element routines. The software is installed on PENZIAS.

</div></div>#### **<span class="mw-headline" id="bkmrk-orca-1">ORCA</span>**

<div class="toccolours mw-collapsible mw-collapsed">The program ORCA is electronic structure program capable to carry out geometry optimizations and to predict a large number of spectroscopic parameters at different levels of theory.

<div class="mw-collapsible-content">Besides the use of Hartee Fock theory, density functional theory (DFT) and semiempirical methods, high level ab initio quantum chemical methods, based on the configuration interaction and coupled cluster methods, are included into ORCA to an increasing degree. More information about our installation can be found here [ORCA](/bookstack/books/software-applications/page/orca-reference-guide "ORCA")

</div></div>#### **<span class="mw-headline" id="bkmrk-pargap-1">ParGAP</span>**

<div class="toccolours mw-collapsible mw-collapsed">ParGAP is build on top of GAP system. The later is a system for computational discrete algebra, with particular emphasis on Computational Group Theory. GAP provides a programming language, a library of thousands of functions implementing algebraic algorithms written in the GAP language as well as large data libraries of algebraic objects.

<div class="mw-collapsible-content">The ParGAP (Parallel GAP) package itself provides a way of writing parallel programs using the GAP language. Former names of the package were ParGAP/MPI and GAP/MPI; the word MPI refers to Message Passing Interface, a well-known standard for parallelism. ParGAP is based on the MPI standard, and this distribution includes a subset implementation of MPI, to provide a portable layer with a high level interface to BSD sockets. More information about our installation can be found here [ParGAP](/bookstack/books/software-applications/page/pargap-reference-guide "ParGAP")

</div></div>#### **<span class="mw-headline" id="bkmrk-popabc-1">POPABC</span>**

<div class="toccolours mw-collapsible mw-collapsed">PopABC is a computer package to estimate historical demographic parameters of closely related species/populations (e.g. population size, migration rate, mutation rate, recombination rate, splitting events) within a Isolation with migration model.

<div class="mw-collapsible-content">The software performs coalescent simulation in the framework of approximate Bayesian computation (ABC, Beaumont et al, 2002). PopABC can also be used to perform Bayesian model choice to discriminate between different demographic scenarios. The program can be used either for research or for education and teaching purposes. Further details and a manual can be found at the POPABC website here [\[29\]](https://code.google.com/p/popabc)More information about our installation can be found here <a class="new" title="POPABC (page does not exist)">POPABC</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-phoenics-1">PHOENICS</span>**

<div class="toccolours mw-collapsible mw-collapsed">PHOENICS is an integrated Computational Fluid Dynamics (CFD) package for the preparation, simulation, and visualization of processes involving fluid flow, heat or mass transfer, chemical reaction, and/or combustion in engineering equipment, building design, and the environment. More detail is available at the CHAM website, here [http://www.cham.co.uk](http://www.cham.co.uk).

<div class="mw-collapsible-content">Although we expect most users to pre- and post-process their jobs on office-local clients, the CUNY HPCC has installed the Unix version of the *entire* PHOENICS package on ANDY. PHOENICS is installed in /share/apps/phoenics/default where all the standard PHOENICS directories are located (d\_allpro, d\_earth, d\_enviro, d\_photo, d\_priv1, d\_satell, etc.). Of particular interest on ANDY is the MPI parallel version of the 'earth' executable 'parexe' which makes full use of the parallel processing power of the ANDY cluster for larger individual jobs. While the parallel scaling properties of PHOENICS jobs will vary depending on the job size, processor type, and the cluster interconnect, larger work loads will generally scale and run efficiently on from 8 to 32 processors, while smaller problems will scale efficiently only up to about 4 processors. More detail on parallel PHOENICS is available at [http://www.cham.co.uk/products/parallel.php](http://www.cham.co.uk/products/parallel.php). Aside from the tightly coupled MPI parallelism of 'parexe', users can run multiple instances of the non-parallel modules on ANDY (including the serial 'earexe' module) when a parametric approach can be used to solve their problems. More information about our installation can be found here [PHOENICS](/bookstack/books/software-applications/page/phoenics-reference-guide "PHOENICS")

</div></div>#### **<span class="mw-headline" id="bkmrk-phrap-phred-1">PHRAP-PHRED</span>**

<div class="toccolours mw-collapsible mw-collapsed">PHRAP and PHRED are part of the DNA sequence analysis tool set that also includes the programs CROSSMATCH and SWAT. These tools are describe in detail here [\[30\]](http://www.phrap.org/phredphrapconsed.html), but a brief description of both, extracted from their manuals, follows.

<div class="mw-collapsible-content">PHRED and PHRAP (along with CONSED) can be used for both small sequence assemblies and larger shotgun analyses. This makes the tools a perhaps under-utilized set for smaller non-genomic groups. Some variables may need to be adjusted, particularly in CONSED, but researchers that have multiple sequences from a small locus can use the suite, starting from their chromatogram files. More information about our installation can be found here [PHRAP-PHRED](/bookstack/books/software-applications/page/phrap-phred-reference-guide "PHRAP-PHRED")

</div></div>#### **<span class="mw-headline" id="bkmrk-pyrad-1">PyRAD</span>**

<div class="toccolours mw-collapsible mw-collapsed">Reduced-representation genomic sequence data (e.g., RADseq, GBS, ddRAD) are commonly used to study population-level research questions and consequently most software packages for assembling or analyzing such data are designed for sequences with little variation across samples.

<div class="mw-collapsible-content">Phylogenetic analyses typically include species with deeper divergence times (more variable loci across samples) and thus a different approach to clustering and identifying orthologs will perform better. pyRAD is intended for use with any type of restriction-site associated DNA. It currently supports RAD, ddRAD, PE-ddRAD, GBS, PE-GBS, EzRAD, PE-EzRAD, 2B-RAD, nextRAD, and can be extended to other types. More information about our installation can be found here [PyRAD](/bookstack/books/software-applications/page/pyrad-reference-guide "PyRAD")

</div></div>#### **<span class="mw-headline" id="bkmrk-python-1">Python</span>**

<div class="toccolours mw-collapsible mw-collapsed">Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. [\[31\]](https://www.python.org/)

<div class="mw-collapsible-content">There are two supported versions installed on Andy system:

- Python 3.1.3 located under /share/apps/python/3.1.3/bin
- Python 2.7.3 located under /share/apps/epd/7.3-2/bin

More information about our installation can be found here [PYTHON](/bookstack/books/software-applications/page/python-reference-guide "PYTHON")

</div></div>#### **<span class="mw-headline" id="bkmrk-installing-python-pa-1">Installing Python packages</span>**

<div class="toccolours mw-collapsible mw-collapsed">Users may install python packages/modules in their own space. Many packages available in Python repositories can be installed easily with PIP manager, which is available in any of Anaconda and Miniconda builds.

<div class="mw-collapsible-content">Users must remember that using PIP without first loading the module for python will cause the installed modules to match system python on login node only. However the python interpreter available (after login module) on all nodes is installed in /share/usr/compilers/python space. Thus when installing packages in user space it is very important to follow the procedure outlined below. The given example demonstrates how users can install package "guppy" in their own space:

For Python 2.7.13 in Anaconda build:

```
module load python/2.7.13_anaconda
pip install guppy --user
```

For Python 3.6.0 in Anaconda build

```
module load python/3.6.0_anaconda
pip install guppy --user
```

For Python 2.7.13 in Miniconda

```
module load python/miniconda2
pip install guppy --user
```

For Python 3.6.0 in Miniconda 3

```
module load python/miniconda3
pip install guppy --user
```

To check if the package is properly installed type:

```
pip list | grep guppy
```

</div></div>#### **<span class="mw-headline" id="bkmrk-qiime-1">QIIME</span>**

<div class="toccolours mw-collapsible mw-collapsed">QIIME (pronounced "chime") stands for Quantitative Insights Into Microbial Ecology. QIIME is a pipeline application that uses numerous third-party applications.

<div class="mw-collapsible-content">QIIME takes users from their raw sequencing output through initial analyses such as OTU picking, taxonomic assignment, and construction of phylogenetic trees from representative sequences of OTUs, and through downstream statistical analysis, visualization, and production of publication-quality graphics. More information about our installation can be found here [QIIME](/bookstack/books/software-applications/page/qiime-reference-guide "QIIME")

</div></div>#### **<span class="mw-headline" id="bkmrk-r-1">R</span>**

<div class="toccolours mw-collapsible mw-collapsed">R is a free software environment for statistical computing and graphics.

<div class="mw-collapsible-content">#### **<span class="mw-headline" id="bkmrk-general-notes-1">General Notes</span>**

R language has become a de facto standard among statisticians for the development of statistical software, and is widely used for statistical software development and data analysis. R is available on the following HPCC's servers: Karle, Penzias, Appel and Andy. Karle is the only machine where R can be used without submitting jobs to SLURM manager. On all other systems users must submit their R jobs via SLURM batch scheduler. More information about our installation can be found here [R](/bookstack/books/software-applications/page/r-reference-guide "R")

</div></div>#### **<span class="mw-headline" id="bkmrk-raxml-1">RAXML</span>**

<div class="toccolours mw-collapsible mw-collapsed">Randomized Axelerated Maximum Likelihood (RAxML) is a program for sequential and parallel maximum likelihood based inference of large phylogenetic trees. It is a descendent of fastDNAml which in turn was derived from Joe Felsentein’s DNAml which is part of the PHYLIP package.

<div class="mw-collapsible-content">RAxML is installed at the CUNY HPCC on ANDY. Multiple versions are available. RAxML is available in both serial and MPI parallel versions. The MPI-parallel version should be run on four or more cores. RaxML parallel MPI version is installed on Penzias. More information about our installation can be found here [RAXML](/bookstack/books/software-applications/page/raxml-reference-guide "RAXML")

</div></div>#### **<span class="mw-headline" id="bkmrk-sage-1">SAGE</span>**

<div class="toccolours mw-collapsible mw-collapsed">Sage can be used to study elementary and advanced, pure and applied mathematics.

<div class="mw-collapsible-content">This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more. More information about our installation can be found here [SAGE](/bookstack/books/software-applications/page/sage-reference-guide "SAGE")

</div></div>#### **<span class="mw-headline" id="bkmrk-samtools-1">SAMTOOLS</span>**

<div class="toccolours mw-collapsible mw-collapsed">SAMTOOLS provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format.

<div class="mw-collapsible-content">SAM (Sequence Alignment/Map) format is a generic format for storing large nucleotide sequence alignments. SAM is compact format aims to be a format that:

```
Is flexible enough to store all the alignment information generated by various alignment programs;

Is simple enough to be easily generated by alignment programs or converted from existing formats;

Allows most of operations on the alignment to work without loading the whole alignment into memory;

Allows the file to be indexed by genomic position to efficiently retrieve all reads aligning to a locus.
```

More information about our installation can be found here [SAMTOOLS](/bookstack/books/software-applications/page/samtools-reference-guide "SAMTOOLS")

</div></div>#### **<span class="mw-headline" id="bkmrk-sas-1">SAS</span>**

<div class="toccolours mw-collapsible mw-collapsed">SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc.

<div class="mw-collapsible-content">It enables the programmer to perform:

<dl><dd>- data entry, retrieval, management, and mining
- report writing and graphics
- statistical analysis
- business planning, forecasting, and decision support
- operations research and project management
- quality improvement
- applications development
- data warehousing (extract, transform, load)
- platform independent and remote computing

</dd></dl>More information about our installation can be found here <a class="new" title="SAS (page does not exist)">SAS</a>

</div></div>#### **<span id="bkmrk--5"></span><span class="mw-headline" id="bkmrk-stata%2Fmp-1">Stata/MP</span>**

<div class="toccolours mw-collapsible mw-collapsed">Stata is a complete, integrated statistical package that provides tools for data analysis, data management, and graphics. Stata/MP takes advantage of multiprocessor computers. CUNY HPCC is licensed to use Stata on up to 8 cores.

<div class="mw-collapsible-content">Currently Stata/MP is available for users on Karle (karle.csi.cuny.edu). More information about our installation can be found here <a class="new" title="STATA (page does not exist)">STATA</a>

</div></div>#### **<span class="mw-headline" id="bkmrk-structurama-1">Structurama</span>**

<div class="toccolours mw-collapsible mw-collapsed">Structurama is a program for inferring population structure from genetic data. The program assumes that the sampled loci are in linkage equilibrium and that the allele frequencies for each population are drawn from a Dirichlet probability distribution. Two different models for population structure are implemented.

<div class="mw-collapsible-content">First, Structurama offers the method of Pritchard et al. (2000) in which the number of populations is considered fixed. The program also allows the number of populations to be a random variable following a Dirichlet process prior(Pella and Masuda, 2006; Huelsenbeck and Andolfatto, 2007). More information about our installation can be found here [STRUCTURAMA](/bookstack/books/software-applications/page/structurama-reference-guide "STRUCTURAMA")

</div></div>#### **<span class="mw-headline" id="bkmrk-structure-1">Structure</span>**

<div class="toccolours mw-collapsible mw-collapsed">The program Structure is a free software package for using multi-locus genotype data to investigate population structure. Its uses include inferring the presence of distinct populations, assigning individuals to populations, studying hybrid zones, identifying migrants and admixed individuals, and estimating population allele frequencies in situations where many individuals are migrants or admixed.

<div class="mw-collapsible-content">It can be applied to most of the commonly-used genetic markers, including SNPS, microsatellites, RFLPs and AFLPs. More detailed information about Structure can be found at the web site here [\[32\]](http://pritch.bsd.uchicago.edu/structure.html). Structure is installed on BOB at the CUNY HPCC. Structure is a serial program. More information about our installation can be found here [STRUCTURE](/bookstack/books/software-applications/page/structure-reference-guide "STRUCTURE")

</div></div>#### **<span id="bkmrk--6"></span><span class="mw-headline" id="bkmrk-thrust-library-%28cuda-1">Thrust Library (CUDA)</span>**

<div class="toccolours mw-collapsible mw-collapsed">Thrust is a C++ template library for CUDA based on the Standard Template Library (STL). Thrust allows you to implement high performance parallel applications with minimal programming effort through a high-level interface that is fully interoperable with CUDA C.

<div class="mw-collapsible-content">As of CUDA, Thrust has been integrated into the default CUDA distribution. The HPC Center is currently running CUDA as the default on PENZIAS which includes Thrust library. More information about our installation can be found here [THRUST](/bookstack/books/software-applications/page/thrust-reference-guide "THRUST")

</div></div>#### **<span class="mw-headline" id="bkmrk-tophat-1">TOPHAT</span>**

<div class="toccolours mw-collapsible mw-collapsed">TOPHAT is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie, and then analyzes the mapping results to identify splice junctions between exons.

<div class="mw-collapsible-content">TOPHAT is part of a sequence alignment and analysis tool chain developed at John Hopkins, University of California at Berkeley, and Harvard, and distributed through the Center for Bioinformatics and Computational Biology. More information about our installation can be found here [TOPHAT](/bookstack/books/software-applications/page/tophat-reference-guide "TOPHAT")

</div></div>#### **<span class="mw-headline" id="bkmrk-trinity-1">Trinity</span>**

<div class="toccolours mw-collapsible mw-collapsed">Trinity, developed at the Broad Institute and the Hebrew University of Jerusalem, represents a novel method for the efficient and robust de novo reconstruction of transcriptomes from RNA-seq data.

<div class="mw-collapsible-content">Trinity combines three independent software modules: Inchworm, Chrysalis, and Butterfly, applied sequentially to process large volumes of RNA-seq reads. Trinity partitions the sequence data into many individual de Bruijn graphs, each representing the transcriptional complexity at at a given gene or locus, and then processes each graph independently to extract full-length splicing isoforms and to tease apart transcripts derived from paralogous genes. More information about our installation can be found here [TRINITY](/bookstack/books/software-applications/page/trinity-reference-guide "TRINITY")

</div></div>#### **<span class="mw-headline" id="bkmrk-usearch-1">USEARCH</span>**

<div class="toccolours mw-collapsible mw-collapsed">USEARCH is a unique sequence analysis tool with thousands of users world-wide.

<div class="mw-collapsible-content">USEARCH offers search and clustering algorithms that are often orders of magnitude faster than BLAST. More information about our installation can be found here [USEARCH](/bookstack/books/software-applications/page/usearch-reference-guide "USEARCH")

</div></div>#### **<span class="mw-headline" id="bkmrk-velvet-1">VELVET</span>**

<div class="toccolours mw-collapsible mw-collapsed">Velvet is a set of algorithms for *de novo* short read assembly using de Bruijn graphs. It was developed at the European Bioinformatics Institute, Cambridge, UK.   
More information about our installation can be found here <a class="new" title="VELVET (page does not exist)">VELVET</a>

<div class="mw-collapsible-content"></div></div>#### **<span class="mw-headline" id="bkmrk-vsearch-1">VSEARCH</span>**

<div class="toccolours mw-collapsible mw-collapsed">VSEARCH is a open source alternative to USEARCH.

<div class="mw-collapsible-content">VSEARCH stands for vectorized search, as the tool takes advantage of parallelism in the form of SIMD vectorization as well as multiple threads to perform accurate alignments at high speed. VSEARCH uses an optimal global aligner (full dynamic programming Needleman-Wunsch), in contrast to USEARCH which by default uses a heuristic seed and extend aligner. This usually results in more accurate alignments and overall improved sensitivity (recall) with VSEARCH, especially for alignments with gaps.

  
Additional details on VSEARCH can be found at: [this link](https://github.com/torognes/vsearch)

VSEARCH is installed on Penzias HPC cluster. To start using VSEARCH load corresponding module first:

```
module load vsearch  
```

</div></div>#### **<span class="mw-headline" id="bkmrk-vmd-1">VMD</span>**

<div class="toccolours mw-collapsible mw-collapsed">VMD is a molecular visualization program for displaying, animating, and analyzing large biomolecular systems using 3-D graphics and built-in scripting.

<div class="mw-collapsible-content">It was developed by The Theoretical and Computational Biophysics Group at the University of Illinois. It is documented on the [TCB's homepage](http://www.ks.uiuc.edu/Research/vmd/).

VMD is installed on Karle. To use it within command-line interface login to Karle as usual and start VMD by typing "vmd" followed by return. Or alternatively use the full path: "/share/apps/vmd/default/bin/vmd"

In order to use VMD in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start VMD as described above.

</div></div>#### **<span class="mw-headline" id="bkmrk-wrf-1">WRF</span>**

<div class="toccolours mw-collapsible mw-collapsed">The Weather Research and Forecasting (WRF) model is a specific computer program with dual use for both weather forecasting and weather research.

<div class="mw-collapsible-content">It was created through a partnership that includes the National Oceanic and Atmospheric Administration (NOAA), the National Center for Atmospheric Research (NCAR), and more than 150 other organizations and universities in the United States and abroad. WRF is the latest numerical model and application to be adopted by NOAA's National Weather Service as well as the U.S. military and private meteorological services. It is also being adopted by government and private meteorological services worldwide. More information about our installation can be found here [WRF](/bookstack/books/software-applications/page/wrf-reference-guide "WRF")

</div></div>#### **<span class="mw-headline" id="bkmrk-xmgrace-1">Xmgrace</span>**

<div class="toccolours mw-collapsible mw-collapsed">Grace is a WYSIWYG 2D plotting tool for the X Window System and M\*tif. Xmgrace is developed at Plasma Laboratory, Weizmann Institute of Science. More information about it's capabilities can be found at the web page [http://plasma-gate.weizmann.ac.il/Grace/](http://plasma-gate.weizmann.ac.il/Grace/)

<div class="mw-collapsible-content">Grace is installed on Karle. To use it within command-line interface login to Karle as usual and start Grace by typing "xmgrace" followed by return. Or alternatively use the full path: "/share/apps/xmgrace/default/grace/bin/xmgrace" In order to use Grace in GUI-mode, login to Karle with -X option (see [this article](/bookstack/books/getting-started/page/what-is-cuny-hpcc) for details) and start Xmgrace as described above.

</div></div>#### **<span id="bkmrk--7"></span><span class="mw-headline" id="bkmrk-met-%28model-evaluatio-1">MET (Model Evaluation Tools)</span>**

<div class="toccolours mw-collapsible mw-collapsed">MET was developed by the National Center for Atmospheric Research (NCAR) Developmental Testbed Center (DTC) through the generous support of the U.S. Air Force Weather Agency (AFWA) and the National Oceanic and Atmospheric Administration (NOAA).

<div class="mw-collapsible-content">MET is designed to be a highly-configurable, state-of-the-art suite of verification tools. It was developed using output from the Weather Research and Forecasting (WRF) modeling system but may be applied to the output of other modeling systems as well. MET provides a variety of verification techniques, including:

- Standard verification scores comparing gridded model data to point-based observations
- Standard verification scores comparing gridded model data to gridded observations
- Spatial verification methods comparing gridded model data to gridded observations using neighborhood, object-based, and intensity-scale decomposition approaches
- Probabilistic verification methods comparing gridded model data to point-based or gridded observations

More information about use and set-up can be found here <a class="new" title="MET (page does not exist)">MET</a>

</div></div></div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)

# MODULES, MANAGING YOUR CUNY HPCC ENVIRONMENT (Reference Guide)

**These instructions describe specific systems, software versions, and configurations. Confirm that the modules, commands, and resources apply to your assigned system before use.**

<div class="mw-parser-output" id="bkmrk-modules%2C-managing-yo">#### **<span id="bkmrk-"></span><span class="mw-headline" id="bkmrk-modules%2C-managing-yo-2">Modules, Managing Your CUNY HPCC Environment</span>**

Modules is a software package that provides for the fast and convenient management of the components of a user's environment via **modulefiles**. When executed by the module command each module file fully configures the environment for its associated application or application group. The modules configuration language allows for the management of applications environment conflicts and dependencies as well. The modules software allows users to load (and unload and reload) an application and/or system environment that is specific to their needs and avoids the need to set and manage a large, one-size-fits-all, generic environment for everyone at login.

Modules has been the default approach to managing the user applications environment on SALK, the CUNY HPCC Cray, since its installation in 2011. By the end of 2012, all non-legacy and future systems at the CUNY HPCC will use modules to manage the user environment instead of generic environmental initialization files stored in /etc/profile.d. The only system that will need to transition from this older approach to the all-modules approach will be ANDY. All new systems, such as Penzias and the new SGI UV2, will come up as modules-based when they are ready for production use. The legacy system, BOB, is currently used almost entirely for Gaussian jobs will NOT be reconfigured with the modules software. Module version 3.2.6 is installed on SALK, and version 3.2.9 will be the default on the other HPC Center systems.

Using the module package users can easily set a collection of environmental variables that are specific to their compilation, parallel programming, and/or application requirements on the HPC Center's systems. The modules system also makes it convenient to advance or regress compiler, parallel programming, or applications versions when defaults are found to have bugs or performance issues. Whatever the task, the modules package can adjust the environment in an orderly way altering or setting of such environmental variables as PATH, MANPATH, LD\_LIBRARY\_PATH, etc. and providing some basic descriptive information about the application version being loaded and purpose of the modules file through the module help facility.

In addition to each application-specific modulefile, the module package functions through the use of a collection of sub-commands given after the initial module command itself as in "module list" for instance. All these module sub- command are described in detail in the module man page ("man module"), but a list of some of the more important and commonly used sub-commands is provided here:

```
Module sub-commands:

list
load
unload
switch
avail
show
help
purge

```

#### **<span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-modules%2C-learning-by-1">Modules, Learning by Example</span>**

The best way to explain how to use the modules package and its sub-command is to consider some simple examples of a typical workflows that involve modules. Here are two examples. Again, for a more complete description of the modules package please refer to "man module".

#### **<span id="bkmrk--2"></span><span class="mw-headline" id="bkmrk-example-1%2C-basic-non-1">Example 1, Basic Non-Cray System</span>**

Consider the unmodified PATH variable right after login to one of the CUNY HPCC systems. Without any custom or local environmental path settings, it would look something like this with no compiler, parallel programming model, or application-specific information in it:

```
username@service0:~> echo $PATH | tr -s ':' '\n'
/home/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin
```

We take note that there appears to be no path to the application that we are interested in running which is Wolfram's Mathematica in this example. Typing "which math" to find Mathematica ("math" is the command-line name for Mathematica) at the terminal yields:

```
 
username@service0:~>  which math
which: no math in (/home/username/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/c3/bin)
```

The Mathematica executable "math" is not found in the default PATH variabl defined by the system at login. Modules can be used to remedy this problem by adding the required path. To check which module files (if any) are already loaded into our environment, we are can type the "module list" sub-command at the terminal prompt:

```
username@service0:~> module list
No Modulefiles Currently Loaded.
username@service0:~>
```

No modules loaded. So the module file for Mathematica has not been loaded and it is no surprise that the Mathematica command-line "math" was not found. The next question is has the HPC Center installed Mathematica on this system and created a module file for it? To find this out we use the "module avail" sub-command:

```
username@service0:~> module avail
---------------------------- /share/apps/modules/default/modulefiles_UserApplications --------------------------------------

adf/2012.01(default)         cesm/1.0.3                   hoomd/0.9.2(default)         ncar/5.2.0_NCL(default)      pgi/12.3(default)
auto3dem/4.02(default)       cesm/1.0.4(default)          intel/12.1.3.293(default)    nwchem/6.1.1(default)        phoenics/2009(default)
autodock/4.2.3(default)      cuda/5.0(default)            ls-dyna/6.0.0(default)       octopus/4.0.0(default)       r/2.14.1(default)
beagle/0.2(default)          gromacs/4.5.5_32bit          mathematica/8.0.4(default)   openmpi/1.5.5_intel(default) wrf/3.4.0(default)
best/2.2L(default)           gromacs/4.5.5_64bit(default) matlab/R2012a(default)       openmpi/1.5.5_pgi

--------------------------------- /share/apps/modules/default/modulefiles_System -------------------------------------------

module-info   modules       version/3.2.9
```

The listing shows all available module files on this system, both those that are user-application related and those that are more system related. As shown in the output, these two types of module files are stored in different directories. Looking through the application list, there is a module for Mathematica version 8.0.4, which is also happens to be the default. On this system, the modules package has only just been installed, and therefore only one version of each application has been adapted to the module system and that version is the default.

The module file that is responsible for setting up correct environment needed to run Mathematica can now be loaded:

```
module load mathematica
```

Because there is only one version and it is the default, there is no need to include the version-specific extension to load it. To explicitly load version 8.0.4 (or any other specific and non-default version) one would use:

```
module load mathematica/8.0.4
```

After loading, the environmental PATH variable includes the path to Mathematica:

```
username@service0:~> echo $PATH | tr -s ':' '\n'
/home/username/bin
/usr/local/bin
/usr/bin
/bin
/usr/bin/X11
/usr/X11R6/bin
/usr/games
/opt/c3/bin
/share/apps/mathematica/8.0.4/Executables
```

This can be verified by rerunning the "which math" command:

```
username@service0:~> which math
/share/apps/mathematica/8.0.4/Executables/math
```

Once the head or login node enviroment variables are properly set, one can create a SLURM script to run an Mathematica job on a compute node and ensure that the head or login node environment just set is passed on to the compute nodes by using the "#SLURM -V" option inside you SLURM script:

```
#!/bin/bash
#SLURM -N mmat8_serial1
#SLURM -q production
#SLURM -l select=1:ncpus=1:mem=1920mb
#SLURM -l place=free
#SLURM -V

# Find out name of master execution host (compute node)
echo -n ">>>> SLURM Master compute node is: "
hostname

# You must explicitly change to the working directory in SLURM
cd $SLURM_O_WORKDIR

# Just point to the serial executable to run
echo ">>>> Begin Mathematica Serial Run ..."
echo ""
math -run <test_run.nb > output
echo ""
echo ">>>> End   Mathematica Serial Run ..."
```

Since the PATH variable in the login environment is now includes the location of the Mathematica executable and the "#SLURM -V" option ensures that this is passed to the compute node that the job is run on, the last line of the SLURM script will be executed without environment-related problems.

#### **<span id="bkmrk--3"></span><span class="mw-headline" id="bkmrk-example-2%2C-less-basi-1">Example 2, Less Basic From SALK (Cray System)</span>**

As do all of the systems at the CUNY HPCC, the Cray SALK has multiple compiler, parallel programming models, libraries, and applications. In addition, SALK uses a custom high-performance interconnect with its own libraries, has its own compiler suite and compiling system, and many other custom libraries. Setting up and/or tearing down a given environment that makes all this work correctly is more complicated that it is on the other systems at the HPC Center. Modules simplifies this process tremendously for the user.

Here is an example of how to swap out the default Cray compiler environment on SALK and swap in the compiler suite from the Portland Group including all the right MPI libraries from Cray. In this case, we swap in a new release of the Portland Group compilers, not the current default on the Cray, and the version of the NETCDF library that has been compiled with the Portland group.

Having logged into SALK, we determine what modules have been load by default with "module list":

```
user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) cce/8.0.7
 15) acml/5.1.0
 16) xt-libsci/11.1.00
 17) pmi/3.0.0-1.0000.8661.28.2807.gem
 18) rca/1.0.0-2.0400.31553.3.58.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-cray/4.0.46
 22) xtpe-mc8
 23) cray-mpich2/5.5.3
 24) SLURM/11.3.0.121723
```

From the list, we see that the Cray Programming Environment ("PrgEnv-cray/4.0.46") and the Cray Compiler environment are loaded ("cce/8.0.7") by default among other things (SLURM, MPICH, etc.). To unload these Cray modules and load in the Portland Group (PGI) equivalents we need to know the names of the PGI modules. The "module avail" command will tell us this:

```
user@salk:~> module avail
.
.
(several sections of output removed)
.
.
------------------------------------------------ /opt/modulefiles -----------------------------------------------------
Base-opts/1.0.2-1.0400.31284.2.2.gem(default)     gcc/4.1.2                                         SLURM/11.2.0.113417
PrgEnv-cray/3.1.61                                gcc/4.2.4                                         SLURM/11.3.0.121723(default)
PrgEnv-cray/4.0.46(default)                       gcc/4.4.2                                         petsc/3.1.08
PrgEnv-gnu/3.1.61                                 gcc/4.4.4                                         petsc/3.1.09
PrgEnv-gnu/4.0.46(default)                        gcc/4.5.1                                         petsc-complex/3.1.08
PrgEnv-intel/3.1.61                               gcc/4.5.2                                         petsc-complex/3.1.09
PrgEnv-intel/4.0.46(default)                      gcc/4.5.3                                         pgi/12.10
PrgEnv-pathscale/3.1.61                           gcc/4.6.1                                         pgi/12.3
PrgEnv-pathscale/4.0.46(default)                  gcc/4.7.1(default)                                pgi/12.6(default)
PrgEnv-pgi/3.1.61                                 hss-llm/6.0.0(default)                            pgi/12.8
PrgEnv-pgi/4.0.46(default)                        intel/12.1.1.256                                  wrf/3.3.0
acml/4.4.0                                        intel/12.1.4.319(default)                         wrf/3.4.0(default)
acml/5.1.0(default)                               intel/12.1.5.339                                  xt-asyncpe/5.01
admin-modules/1.0.2-1.0400.31284.2.2.gem(default) java/jdk1.6.0_24                                  xt-asyncpe/5.05
amber/12(default)                                 java/jdk1.7.0_03(default)                         xt-asyncpe/5.13(default)
cce/8.0.7(default)                                mazama/6.0.0(default)                             xt-libsci/11.0.00
chapel/1.4.0                                      modules/3.2.6.6(default)                          xt-libsci/11.0.04
chapel/1.5.0(default)                             mrnet/3.0.0(default)                              xt-libsci/11.1.00(default)
fftw/2.1.5.3                                      pathscale/4.0.12.1(default)                       xt-papi/4.2.0
fftw/3.2.2.1(default)                             pathscale/4.0.9                                   xt-papi/4.3.0(default)
fftw/3.3.0.1                                      SLURM/11.1.0.111761
```

There are several versions of the PGI compilers and two version of the PGI Programming Environment for the Cray (SALK). We are interested in loading PGI's 12.10 release (not the default which is "pgi/12.6") and the most current release of the PGI programming environment ("PrgEnv-pgi/4.0.46"), which is the default. The PGI programming environment for the Cray provides all the environmental settings required to use the PGI compilers on the Cray which includes a number of custom libraries.

Here is a series of module commands to unload the Cray defaults, load the PGI modules mentioned, and load version 4.2.0 of NETCDF compiled with the PGI compilers.

```
user@salk:~> module unload PrgEnv-cray
user@salk:~> module load PrgEnv-pgi
user@salk:~> module unload pgi
user@salk:~> module load pgi/12.10
user@salk:~> 
user@salk:~> module load netcdf/4.2.0
user@salk:~>
user@salk;~> cc -V
/opt/cray/xt-asyncpe/5.13/bin/cc: INFO: Compiling with CRAYPE_COMPILE_TARGET=native.

pgcc 12.10-0 64-bit target on x86-64 Linux 
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc.  All Rights Reserved.
```

Several comments about this series of command are perhaps useful. First, the first three commands do not include version numbers and will therefore load or unload the current default versions. In the third line, we unload the default version of the PGI compiler (version 12.6) which is loaded with the rest of the PGI Programming Environment in the second line. We then load the non-default and more recent release from PGI, version 12.10 in the fourth line. Later, we load NETCDF version 4.2.0 which, because we have already loaded the PGI Programming Environment, will load the version of NETCDF 4.2.0 compiled with the PGI compilers. Finally, we check to see which compiler the Cray "cc" compiler wrapper actually invokes after this sequence of module commands. We see that indeed "pgcc" version 12.10 is being used.

We can confirm all this by again entering "module list". Notice that the Cray-related compiler modules have been replaced by those from PGI and that NETCDF version 4.2.0 has been loaded. We are ready to use new PGI compiler suite based environment. It is left as an exercise to the reader to figure out how the series of commands listed above could have been shortened by using the "module swap" sub- command.

```
user@salk:~> module list
Currently Loaded Modulefiles:
  1) modules/3.2.6.6
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) xtpe-mc8
 15) cray-mpich2/5.5.3
 16) SLURM/11.3.0.121723
 17) xt-libsci/11.1.00
 18) pmi/3.0.0-1.0000.8661.28.2807.gem
 19) xt-asyncpe/5.13
 20) atp/1.5.1
 21) PrgEnv-pgi/4.0.46
 22) pgi/12.10
 23) hdf5/1.8.8
 24) netcdf/4.2.0
```

</div>#### **Related Pages**

- [Finding and Running Applications](https://wiki.csi.cuny.edu/books/software-applications/page/finding-and-running-applications)
- [Software Modules with Lmod](https://wiki.csi.cuny.edu/books/getting-started/page/software-modules-with-lmod)