Skip to content

Commit 2b74f88

Browse files
author
Francesco Beghini
committed
Update example script
1 parent 6bee886 commit 2b74f88

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

example/bioconda-lefse_run.sh

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
## https://bitbucket.org/nsegata/lefse/src/54694b4b0d9e335ff1ecafff8db4f1e0cf7004da/example/run.sh?at=default&fileviewer=file-view-default
44
##
55
##
6-
## note: ensure script names below match those in the conda install directory, otherwise will error: 'not found':
7-
## scripts usually visible in ~/miniconda3/envs/lefse/bin/ if was installed to default directory
8-
##
96

107

118
# Download a 3-classes example (with subclasses and subjects) from huttenhower.sph.harvard.edu
@@ -14,7 +11,7 @@
1411
wget https://github.com/biobakery/biobakery/raw/master/demos/biobakery_demos/data/lefse/input/hmp_small_aerobiosis.txt -O hmp_aerobiosis_small.txt
1512

1613
# As using LEfSe through bioconda, need to activate the LEfSe installation:
17-
source activate lefse
14+
conda activate lefse
1815

1916
# Running the LEfSe commands with -h gives the list of available options
2017

@@ -26,7 +23,7 @@ source activate lefse
2623
# the value -1 for them.
2724
# -o 1000000 scales the feature such that the sum (of the same taxonomic leve)
2825
# is 1M: this is done only for obtaining more meaningful values for the LDA score
29-
lefse-format_input.py hmp_aerobiosis_small.txt hmp_aerobiosis_small.in -c 1 -s 2 -u 3 -o 1000000
26+
lefse_format_input.py hmp_aerobiosis_small.txt hmp_aerobiosis_small.in -c 1 -s 2 -u 3 -o 1000000
3027

3128
# run_lefse.py performs the actual statistica analysis
3229
#
@@ -35,33 +32,33 @@ lefse-format_input.py hmp_aerobiosis_small.txt hmp_aerobiosis_small.in -c 1 -s 2
3532
# can be listed using the -h option
3633
run_lefse.py hmp_aerobiosis_small.in hmp_aerobiosis_small.res
3734

38-
# lefse-plot_res.py visualizes the output
35+
# lefse_plot_res.py visualizes the output
3936
#
4037
# Plot the list of biomarkers with their effect size
4138
# Severak graphical options are available for personalizing the output
42-
lefse-plot_res.py hmp_aerobiosis_small.res hmp_aerobiosis_small.png
39+
lefse_plot_res.py hmp_aerobiosis_small.res hmp_aerobiosis_small.png
4340

44-
# plot_cladogram.py visualizes the output on a hierarchical tree
41+
# lefse_plot_cladogram.py visualizes the output on a hierarchical tree
4542
#
4643
# Plot the representation of the biomarkers on the hierarchical tree
4744
# specified in the input data (using | in the name of the features)
4845
# In this case we will obtain the RDP taxonomy.
4946
# This is an early implementation of the module. I'm working on an improved version
5047
# that will be released independently from LEfSe
51-
lefse-plot_cladogram.py hmp_aerobiosis_small.res hmp_aerobiosis_small.cladogram.png --format png
48+
lefse_plot_cladogram.py hmp_aerobiosis_small.res hmp_aerobiosis_small.cladogram.png --format png
5249

5350
# Create a directory for storing the raw-data representation of the discovered biomarkers
5451
mkdir biomarkers_raw_images
5552

56-
# lefse-plot_features.py visualizes the raw-data features
53+
# lefse_plot_features.py visualizes the raw-data features
5754
#
5855
# The module for exporting the raw-data representation of the features.
5956
# With the default options we will obtain the images for all the features that are
6057
# detected as biomarkers
61-
lefse-plot_features.py hmp_aerobiosis_small.in hmp_aerobiosis_small.res biomarkers_raw_images/
58+
lefse_plot_features.py hmp_aerobiosis_small.in hmp_aerobiosis_small.res biomarkers_raw_images/
6259

6360
## Turn lefse back off
64-
source deactivate lefse
61+
conda deactivate lefse
6562

6663
## bonus: seasonal greetings
6764
# echo '~ Oíche Shamhna féile dhuit!'

0 commit comments

Comments
 (0)