<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Conda_bioconda</id>
		<title>Conda bioconda - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Conda_bioconda"/>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Conda_bioconda&amp;action=history"/>
		<updated>2026-05-13T14:58:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Conda_bioconda&amp;diff=3282&amp;oldid=prev</id>
		<title>PeterThorpe: conda stuff</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Conda_bioconda&amp;diff=3282&amp;oldid=prev"/>
				<updated>2018-10-23T14:32:50Z</updated>
		
		<summary type="html">&lt;p&gt;conda stuff&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= users run once: install-bioconda =&lt;br /&gt;
&lt;br /&gt;
This does the following: Installl a per user version of conda with extra channels. It then puts it in the bash_rc so it can be run with single commands. This script live in /mnt/apps/&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; more install-bioconda&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 INSTALLER=/tmp/$USER-miniconda.sh&lt;br /&gt;
 &lt;br /&gt;
 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $INSTALLER&lt;br /&gt;
 &lt;br /&gt;
 # this is an install of python 2.7.15. Cannot yum install as broken. So a compiled version is here.&lt;br /&gt;
 # if the old 2.6 default /usr/bin version is needed we need to alter this approach&lt;br /&gt;
 export PATH=/mnt/apps/Python/bin/:$PATH&lt;br /&gt;
 &lt;br /&gt;
 sh $INSTALLER -b -p /shelf/apps/$USER/conda -f&lt;br /&gt;
 &lt;br /&gt;
 rm $INSTALLER&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;# folling 3 lines are for conda install. Auto done with install-bioconda&amp;quot; &amp;gt;&amp;gt; /storage/home/users/$USER/.bashrc&lt;br /&gt;
 echo &amp;quot;. /shelf/apps/$USER/conda/etc/profile.d/conda.sh&amp;quot; &amp;gt;&amp;gt; /storage/home/users/$USER/.bashrc&lt;br /&gt;
 echo &amp;quot;conda activate&amp;quot; &amp;gt;&amp;gt; /storage/home/users/$USER/.bashrc&lt;br /&gt;
 echo &amp;quot;conda deactivate&amp;quot; &amp;gt;&amp;gt; /storage/home/users/$USER/.bashrc&lt;br /&gt;
 &lt;br /&gt;
 source /storage/home/users/$USER/.bashrc&lt;br /&gt;
 &lt;br /&gt;
 conda config --add channels R&lt;br /&gt;
 conda config --add channels defaults&lt;br /&gt;
 conda config --add channels conda-forge&lt;br /&gt;
 conda config --add channels bioconda&lt;br /&gt;
 &lt;br /&gt;
 #echo &amp;quot;INFO:&lt;br /&gt;
 #echo &amp;quot;you will have to log out and back in again for this to work. &amp;quot;&lt;br /&gt;
 #echo &amp;quot;Or run:&amp;quot;&lt;br /&gt;
 #echo &amp;quot;      source ~/.bashrc&amp;quot;&lt;br /&gt;
 #echo &amp;quot;We strongly advise using envs: https://conda.io/docs/user-guide/tasks/manage-environments.html&amp;quot;&lt;br /&gt;
 #echo &amp;quot;installing packages: https://bioconda.github.io/recipes.html&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= on login each user get a apps folder on /shelf =&lt;br /&gt;
&lt;br /&gt;
It was decided to use shelf so the users main storage does not get filled up too fast. This runs for each user up on login:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; more /etc/profile.d/apps.sh&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 # make a symlink to the in /ect/profile.d&lt;br /&gt;
 &lt;br /&gt;
 alias qstat=&amp;#039;qstat -u \*&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 # Ensure all normal users get a personal apps directory&lt;br /&gt;
 # normal users have an id greater than 1000&lt;br /&gt;
 if [ `id -u` -gt 999 ]; then&lt;br /&gt;
   mkdir -p /shelf/apps/$USER/apps/&lt;br /&gt;
   export APPS=/shelf/apps/$USER/apps/&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 #export PATH=/mnt/apps/openmpi/3.0.0/bin/:$PATH&lt;br /&gt;
 &lt;br /&gt;
 if [ `id -u` -gt 999 ]; then&lt;br /&gt;
   #export PATH=/mnt/apps/Python/bin/:$PATH&lt;br /&gt;
   export PATH=/mnt/apps/:$PATH&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 #export PATH=/mnt/apps/singularity/2.5.1/bin/:$PATH&lt;br /&gt;
 &lt;br /&gt;
 #export PATH=/opt/sge/greenify/:$PATH&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= how to use conda = &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1)	Conda. THIS IS THE FUTURE. We highly recommend this:&lt;br /&gt;
&lt;br /&gt;
We are testing Bioconda on Marvin on a per user basis, so you have total control over it. Would you please be our first actual user test? The default python in /usr/bin is python 2.6 which is too old. As a warning, running the following will update this to 2.7 and 3.7. So, only do so if you do not specifically require the python 2.6 version for your other work. Although, you could set up a conda environment with 2.6 if you really wanted. I can’t think of anything that requires 2.6.&lt;br /&gt;
&lt;br /&gt;
1)	Log in and from the command line type (only do this once!):&lt;br /&gt;
&lt;br /&gt;
install-bioconda&lt;br /&gt;
&lt;br /&gt;
2)	Either log out  and back in or type:&lt;br /&gt;
source ~/.bashrc&lt;br /&gt;
&lt;br /&gt;
3)	We strongly advise using environments: https://conda.io/docs/user-guide/tasks/manage-environments.html . You can do this in many ways. Please see the link for more details (here you can specifiy eact version etc ..). The easiest usage would be:    e.g.  conda create -n NAME_OF_ENV PACKAGE_TO_INSTALL (pick a package you are interested in from here: installing packages: https://bioconda.github.io/recipes.html ). Roary is a package name as an example. &lt;br /&gt;
&lt;br /&gt;
conda create -n roary roary&lt;br /&gt;
&lt;br /&gt;
conda activate roary&lt;br /&gt;
&lt;br /&gt;
conda update roary&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are now ready to use this package.&lt;br /&gt;
&lt;br /&gt;
Conda deactivate        to leave this environment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This works for me and a test user. But may fail for you, so be patient with us. &lt;br /&gt;
&lt;br /&gt;
To list all the environments you have created:&lt;br /&gt;
&lt;br /&gt;
conda info –envs&lt;br /&gt;
&lt;br /&gt;
installing packages: https://bioconda.github.io/recipes.html&lt;/div&gt;</summary>
		<author><name>PeterThorpe</name></author>	</entry>

	</feed>