You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: how-to-set-up-a-bioinformatics-environment.html
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -90,8 +90,7 @@ <h1 class="header-title">How-to: Set up a Bioinformatics Environment</h1>
90
90
</pre></div>
91
91
92
92
93
-
<p>You'll want to add important channels. This essentially adds repositories. The order matters such that the later the channel is added the
94
-
higher the priority (it looks in conda-forge first). Do note, however, that while adding these channels will increase the number of identified packages, it will also increase the time it takes to look through all of those packages for updates/dependency resolution/etc.</p>
93
+
<p>You'll want to add important channels. This essentially adds repositories. The order matters such that the later the channel is added the higher the priority (it looks in conda-forge first). Do note, however, that while adding these channels will increase the number of identified packages, it will also increase the time it takes to look through all of those packages for updates/dependency resolution/etc.</p>
@@ -105,9 +104,8 @@ <h1 class="header-title">How-to: Set up a Bioinformatics Environment</h1>
105
104
</pre></div>
106
105
107
106
108
-
<p>Now, I don't recommend you install all of your packages to a single environment. For instance, I like to have one environment for python3, one
109
-
for python2, one for R, etc.</p>
110
-
<p>As an example, let's create an R environment. Now, my by base environment is python3 (since it's my primary tool), but you may make R your primary and python a secondary.</p>
107
+
<p>Now, I don't recommend you install all of your packages to a single environment. For instance, I like to have one environment for python3, one for python2, one for R, etc.</p>
108
+
<p>As an example, let's create an R environment. Now, my by base environment is python3 (since it's my primary tool), but you may make R your primary and python a secondary. <em>Warning: Installing R in conda works great except if you already have R/R libraries installed the traditional way. It seems that the R libraries are the biggest issue and removing them allows the conda R to work properly.</em></p>
@@ -117,19 +115,16 @@ <h1 class="header-title">How-to: Set up a Bioinformatics Environment</h1>
117
115
</pre></div>
118
116
119
117
120
-
<p>On my Linux system, I had to add one line to by .bashrc file so I could activate my environments. You can try activating without adding this
121
-
line, and conda will tell you if you need it. Conda used to add a path export to your .bashrc, but that is no longer recommended.</p>
118
+
<p>On my Linux system, I had to add one line to by .bashrc file so I could activate my environments. You can try activating without adding this line, and conda will tell you if you need it. Conda used to add a path export to your .bashrc, but that is no longer recommended.</p>
<spanclass="c1"># Now activate your new environment</span>
125
122
conda activate mro_env
126
123
</pre></div>
127
124
128
125
129
-
<p>This has changed the paths to all of the installed conda libraries such that you are now only looking at those programs/packages installed in
130
-
this environment. This is very helpful if there are package conflicts or if a program requires an older version that you don't typically use.</p>
131
-
<p>From here, you can install any library you like (even ones you installed in a different environment). Since this is an example of my R
132
-
environment, I'm going to install some Bioconductor packages.</p>
126
+
<p>This has changed the paths to all of the installed conda libraries such that you are now only looking at those programs/packages installed in this environment. This is very helpful if there are package conflicts or if a program requires an older version that you don't typically use.</p>
127
+
<p>From here, you can install any library you like (even ones you installed in a different environment). Since this is an example of my R environment, I'm going to install some Bioconductor packages.</p>
133
128
<divclass="highlight"><pre><span></span><spanclass="c1"># Install Bioconductor -- if you set the channels above the channel parameter (-c) is optional</span>
@@ -145,11 +140,16 @@ <h1 class="header-title">How-to: Set up a Bioinformatics Environment</h1>
145
140
<p>Now, in my case, the edgeR package had an outdated limma dependencies that prevented me from loading edgeR. This provides a great opportunity to describe an alternate way to install packages.</p>
146
141
<p>Most people work with RStudio if they work in R. It can also be installed using conda.</p>
<p>Now, you can run RStudio and install any package you like as you normally would, but you should designate the library location specific to your conda installation.</p>
0 commit comments