<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/cbcb/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Abelew</id>
	<title>Cbcb - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/cbcb/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Abelew"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/cbcb/index.php/Special:Contributions/Abelew"/>
	<updated>2026-04-12T23:50:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/cbcb/index.php?title=CBCB_Software_Modules&amp;diff=9035</id>
		<title>CBCB Software Modules</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/cbcb/index.php?title=CBCB_Software_Modules&amp;diff=9035"/>
		<updated>2017-04-07T19:03:49Z</updated>

		<summary type="html">&lt;p&gt;Abelew: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Starting in the Spring of 2015, communal CBCB Bioinformatics Software has been installed using GNU Modules.&lt;br /&gt;
== Common Modules ==&lt;br /&gt;
&lt;br /&gt;
CBCB Software modules are already configured for interactive shells on Red Hat 7 machines - no additional setup is required. The module files are installed in the following location:&lt;br /&gt;
 /cbcb/sw/RedHat-7-x86_64/common/modules/release/latest&lt;br /&gt;
&lt;br /&gt;
To see see what modules are available:&lt;br /&gt;
 bash$ module avail 2&amp;gt;&amp;amp;1 | less&lt;br /&gt;
or&lt;br /&gt;
 tcsh&amp;gt; module avail |&amp;amp; less&lt;br /&gt;
&lt;br /&gt;
To add a module to your environment, use &amp;lt;code&amp;gt;module add&amp;lt;/code&amp;gt;:&lt;br /&gt;
 $ module add samtools/0.1.19&lt;br /&gt;
&lt;br /&gt;
Note that you can also specify the software name without the version:&lt;br /&gt;
 $ module add samtools&lt;br /&gt;
&lt;br /&gt;
Now samtools has been added to your environment:&lt;br /&gt;
 $ which samtools&lt;br /&gt;
 /cbcb/sw/RedHat-7-x86_64/common/local/samtools/0.1.19/bin/samtools&lt;br /&gt;
&lt;br /&gt;
== User Modules ==&lt;br /&gt;
&lt;br /&gt;
We have created some scripts to assist you with installing software and modules to your user directory in &amp;lt;code&amp;gt;/cbcb/sw&amp;lt;/code&amp;gt;. We recommend that you use these scripts because this will help us share installed software among other CBCB users.&lt;br /&gt;
&lt;br /&gt;
Run this initialization script to set up your directory structure:&lt;br /&gt;
 $ /cbcb/sw/RedHat-7-x86_64/common/scripts/init_cbcb_sw_user.sh&lt;br /&gt;
&lt;br /&gt;
This will create a directory for you:&lt;br /&gt;
 $ tree /cbcb/sw/RedHat-7-x86_64/users/&amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/cbcb/sw/RedHat-7-x86_64/users/&amp;lt;username&amp;gt;&lt;br /&gt;
├── local&lt;br /&gt;
├── modules&lt;br /&gt;
│   └── &amp;lt;username&amp;gt;&lt;br /&gt;
│       └── env&lt;br /&gt;
├── module_template&lt;br /&gt;
├── README&lt;br /&gt;
├── scripts&lt;br /&gt;
│   ├── copy_module_template.sh&lt;br /&gt;
│   ├── init_install_vars.sh&lt;br /&gt;
│   └── install_package.sh&lt;br /&gt;
└── src&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use the &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; directory for storing and compiling source code.&lt;br /&gt;
* Use the &amp;lt;code&amp;gt;local&amp;lt;/code&amp;gt; directory as the installation prefix.&lt;br /&gt;
* Use the &amp;lt;code&amp;gt;modules&amp;lt;/code&amp;gt; directory to store your modulefiles.&lt;br /&gt;
&lt;br /&gt;
See [[#Installing Software]] below.&lt;br /&gt;
&lt;br /&gt;
To make use of your personal module file directory, add the following to your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt;:&lt;br /&gt;
 module use /cbcb/sw/RedHat-7-x86_64/users/&amp;lt;username&amp;gt;/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Software ===&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;code&amp;gt;install_package.sh&amp;lt;/code&amp;gt; script to automatically compile software that uses &amp;lt;code&amp;gt;./configure; make; make install&amp;lt;/code&amp;gt;. The advantage to using this install script is that it will:&lt;br /&gt;
* use the standardized directory structure for personal software installation, and&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;automatically&#039;&#039;&#039;&#039;&#039; create a module file for the software in your &amp;lt;code&amp;gt;modules&amp;lt;/code&amp;gt; directory!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For full details, read the &amp;lt;code&amp;gt;README&amp;lt;/code&amp;gt; placed in your personal directory (&amp;lt;code&amp;gt;/cbcb/sw/RedHat-7-x86_64/users/&amp;lt;username&amp;gt;&amp;lt;/code&amp;gt;). It&#039;s also available in the [https://gitlab.umiacs.umd.edu/cbcb/cbcb-sw/blob/master/templates/user_readme.md  cbcb-sw Gitlab repository].&lt;br /&gt;
&lt;br /&gt;
=== Listing All Modules ===&lt;br /&gt;
&lt;br /&gt;
The command &amp;lt;code&amp;gt;module avail&amp;lt;/code&amp;gt; only lists modulefiles that appear in directories that have been added to your &amp;lt;code&amp;gt;$MODULEPATH&amp;lt;/code&amp;gt; environment variable (either by hand or via &amp;lt;code&amp;gt;module use&amp;lt;/code&amp;gt; command).&lt;br /&gt;
To see all modulefiles that are available for your use in both the Common Modules and the User Modules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat /cbcb/sw/RedHat-7-x86_64/common/all_modules.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
or see [http://cbcb.umd.edu/~lmendelo/cbcb_modules/all_modules.txt here].&lt;br /&gt;
&lt;br /&gt;
== Setup for non-interactive shells ==&lt;br /&gt;
&lt;br /&gt;
Modules are already configured for interactive shells, but to use modules with non-interactive shells such as [[Torque]], add the following to your ~/.bashrc:&lt;br /&gt;
 $ source /usr/share/Modules/init/${SHELL}&lt;br /&gt;
 bash$ source /etc/profile.d/ummodules.sh&lt;br /&gt;
&lt;br /&gt;
For more information, see the [https://wiki.umiacs.umd.edu/umiacs/index.php/Modules UMIACS wiki].&lt;br /&gt;
&lt;br /&gt;
== GNU Modules Cheatsheet ==&lt;br /&gt;
&lt;br /&gt;
Ask for help:&lt;br /&gt;
 module --help&lt;br /&gt;
&lt;br /&gt;
List available modules:&lt;br /&gt;
 $ module avail&lt;br /&gt;
&lt;br /&gt;
Read the description of a module:&lt;br /&gt;
 $ module whatis blast&lt;br /&gt;
&lt;br /&gt;
Read the help text for a module:&lt;br /&gt;
 $ module help blast&lt;br /&gt;
&lt;br /&gt;
Add a module to your environment:&lt;br /&gt;
 $ module add blast&lt;br /&gt;
&lt;br /&gt;
Add a specific version to your environment:&lt;br /&gt;
 $ module add blast/2.2.31&lt;br /&gt;
&lt;br /&gt;
List loaded modules:&lt;br /&gt;
 $ module list&lt;br /&gt;
&lt;br /&gt;
Remove a module from your environment:&lt;br /&gt;
 $ module rm blast&lt;br /&gt;
&lt;br /&gt;
Remove all modules from your environment:&lt;br /&gt;
 $ module purge&lt;br /&gt;
&lt;br /&gt;
Add a path to search for available modules:&lt;br /&gt;
 $ module use /cbcb/sw/RedHat-7-x86_64/users/lmendelo/modules&lt;br /&gt;
&lt;br /&gt;
See what changes a module makes to your environment:&lt;br /&gt;
 $ module show Python2/common/2.7.9&lt;br /&gt;
&lt;br /&gt;
== Maintainers ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a new release ===&lt;br /&gt;
&lt;br /&gt;
=== Upgrading R ===&lt;br /&gt;
&lt;br /&gt;
There are a couple scripts to hopefully make upgrading R easier.&lt;br /&gt;
Let us say that you are installing a new version of R and R libraries.&lt;br /&gt;
If that is (for example) version 3.2.1, then a set of commands might include:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; cd $MOD/R/common&lt;br /&gt;
 &amp;gt; cp 3.2.0 3.2.1&lt;br /&gt;
&lt;br /&gt;
Now edit 3.2.1 to include the new version and change anything of interest.&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; mkdir $STOW/Rext/3.2.1&lt;br /&gt;
 &amp;gt; module add R/common/3.2.1&lt;br /&gt;
&lt;br /&gt;
Assuming that you edited the $MOD 3.2.1 file to tell it to load R version 3.2.1, then&lt;br /&gt;
$(which R) will show the new version and the module command will set the R_LIBS&lt;br /&gt;
variable to a new, empty directory.&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; cd $STOW/R/common&lt;br /&gt;
 &amp;gt; ./update_R.sh 3.2.0_list&lt;br /&gt;
&lt;br /&gt;
This little shell script should call Bioconductor&#039;s biocLite() once for each&lt;br /&gt;
R library which was installed in 3.2.0.&lt;br /&gt;
&lt;br /&gt;
(Adapted from /cbcb/sw/RedHat-7-x86_64/common/local/Rext/README.md)&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
&lt;br /&gt;
Brought to you by:&lt;br /&gt;
&lt;br /&gt;
* [mailto:abelew@umiacs.umd.edu Trey Belew]&lt;br /&gt;
* [mailto:keith@umiacs.umd.edu Keith Hughitt]&lt;br /&gt;
* [mailto:welles@umiacs.umd.edu Welles Robinson]&lt;br /&gt;
* [mailto:hiren@umiacs.umd.edu Hiren  Karathia]&lt;br /&gt;
* [mailto:schrist1@umd.edu Steve Christensen]&lt;br /&gt;
* [mailto:spatkar@umiacs.umd.edu Sushant Patkar]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [https://wiki.umiacs.umd.edu/umiacs/index.php/Modules UMIACS wiki]&lt;br /&gt;
* [https://gitlab.umiacs.umd.edu/cbcb/cbcb-sw Repository on GitLab]&lt;br /&gt;
* [https://docs.google.com/presentation/d/1UgKtnjcqHlpLZU79hGXfkgvNtse-ksMQ_gJMFCVLKRw/edit?usp=sharing CBCB Software slides on Google Drive]&lt;/div&gt;</summary>
		<author><name>Abelew</name></author>
	</entry>
</feed>