Skip to content

Commit 2e08815

Browse files
committed
Re-enable metaphlan
1 parent 3dd8944 commit 2e08815

3 files changed

Lines changed: 11 additions & 18 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ of the pipeline. The following options are available:
7474
- A comma-separated list of one or more of the following: lowq, rdna,
7575
reference, repeats, circrna, immune, microbiome (which may be subdivided
7676
into metaphlan, bacteria, viral, fungi, protozoa).
77-
- circrna, metaphlan, and bacteria are not available in the current release.
77+
- circrna and bacteria are not available in the current release.
7878
- `-s all` selects everything.
7979
- `-a|--fasta`: Input unmapped reads in .fasta format instead of .fastq format.
8080
Forcibly disables low-quality read filtering.

install.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,27 +182,20 @@ else
182182
cd ..
183183

184184
# Download MetaPhlAn 2.
185-
#echo '----- Downloading MetaPhlAn 2 --------------------------------------------------'
186-
#hg clone https://bitbucket.org/biobakery/metaphlan2
187-
#cd metaphlan2
185+
echo '----- Downloading MetaPhlAn 2 --------------------------------------------------'
186+
hg clone https://bitbucket.org/biobakery/metaphlan2
187+
cd metaphlan2
188188
#ln -s ../../db_human/databases
189-
#cd ..
189+
cd ..
190190

191-
# Download MiniConda and add shebangs.
191+
# Download MiniConda.
192192
echo '----- Setting up Python environment --------------------------------------------'
193193
if [ $NATIVE = false ]; then
194194
./install-MiniConda.sh
195195
cd MiniConda/lib
196196
ln -s libncursesw.so.5 libtinfow.so.5
197197
cd ../..
198198
MiniConda="$PWD/MiniConda/bin/python"
199-
# sed -i "1c #!$MiniConda" metaphlan2/metaphlan2.py
200-
# sed -i "1c #!$MiniConda" metaphlan2/strainphlan.py
201-
# sed -i "1c #!$MiniConda" metaphlan2/utils/read_fastx.py
202-
#else
203-
# sed -i '1c #!/usr/bin/env python2.7' metaphlan2/metaphlan2.py
204-
# sed -i '1c #!/usr/bin/env python2.7' metaphlan2/strainphlan.py
205-
# sed -i '1c #!/usr/bin/env python2.7' metaphlan2/utils/read_fastx.py
206199
fi
207200
fi
208201

@@ -260,7 +253,7 @@ for database in $SELECT_DB; do
260253
download_list+=$'\nmetaphlan\nviral\nviral_vipr\nfungi\nprotozoa'
261254
;;
262255
metaphlan)
263-
#download_list+=$'\nmetaphlan'
256+
download_list+=$'\nmetaphlan'
264257
;;
265258
viral)
266259
download_list+=$'\nviral\nviral_vipr'

rop.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ eval set -- "$PARSED"
4545

4646
# Set default options.
4747
ORGANISM='human'
48-
STEPS='rdna reference repeats viral fungi protozoa'
48+
STEPS='rdna reference repeats immune metaphlan viral fungi protozoa'
4949
# Non-default: lowq
50-
# Disabled: circrna immune metaphlan bacteria
50+
# Disabled: circrna bacteria
5151
FASTA=false
5252
BAM=false
5353
GZIP=false
@@ -553,8 +553,8 @@ echo '7a. MetaPhlAn profiling (-s metaphlan)...'
553553
cd "${DIRS['07a_metaphlan']}"
554554
# No post file (don't reduce unmapped reads using MetaPhlAn results).
555555

556-
if ! grep -qE 'metaphlan|microbiome' <<<"$STEPS" || ! reads_present "$current" \
557-
|| ! grep -q 'override' <<<"$STEPS"; then # Disabled (broken).
556+
if ! grep -qE 'metaphlan|microbiome' <<<"$STEPS" || ! reads_present "$current";
557+
then
558558
echo '--> Skipped MetaPhlAn profiling.'
559559
else
560560
python "$DIR/tools/metaphlan2/metaphlan2.py" "$current" \

0 commit comments

Comments
 (0)