A problem with usearch version

58 views
Skip to first unread message

Ilnam Kang

unread,
Jan 4, 2018, 3:01:10 AM1/4/18
to PhyloPhlAn-users
Hi,

Are there any method that can make PhyloPhlAn recognize and use usearch version 5.2.32 not located in the system path?

I have another program that is dependent on the usearch version higher than 5.2.32. To be able to use that program conveniently, I have to locate the more recent version of usearch in the system path, which makes PhyloPhlAn not working.

Are there any solution for this problem?

Thanks.



Francesco Asnicar

unread,
Jan 4, 2018, 4:40:57 AM1/4/18
to phylophl...@googlegroups.com
Hi,

Unfortunately, PhyloPhlAn expects to find the "usearch" command in the system path and to be the 5.2.32 version.

A solution could be to write a small bash script that will export the specific usearch version only when running the script, so you don't have to set usearch 5.2.32 always, solving your other dependency problem.

I attached a template of the bash script, you have to set the correct path to where you have usearch 5.2.32 in your system, make sure the command is "usearch", and make also sure that the "python" command in your system is executing Python2, otherwise change it to a python command that runs Python2.

Please, let me know if this solves your problem.

Many thanks,
Francesco

--
You received this message because you are subscribed to the Google Groups "PhyloPhlAn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phylophlan-use...@googlegroups.com.
To post to this group, send email to phylophl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phylophlan-users/1d34344b-5dbc-4012-b192-a9f8dc44a7d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
phylophlan.sh

Ilnam Kang

unread,
Jan 4, 2018, 6:49:44 AM1/4/18
to PhyloPhlAn-users
Your script works nicely!!

Thank you very much for your help.

Ilnam

2018년 1월 4일 목요일 오후 6시 40분 57초 UTC+9, francescoasnicar 님의 말:
Reply all
Reply to author
Forward
0 new messages