I want to use TRAL to annotate tandem repeats in the reference genome of Caenorhabditis elegans. For this, I need to install some external software, such as Phobos. I've downloaded Phobos and I am using it by typing the path to it's executable like this:
input/software/phobos-v3.3.12-mac/bin/phobos-mac-intel-64bit-start-from-command-line genome.fa output.txt
This works quite well.
In order for TRAL to find Phobos, I changed TRAL's configuration file as explained here.
I've replaced PHOBOS = phobos
with PHOBOS = /Users/user/Documents/.../project/input/software/phobos-v3.3.12-mac/bin/phobos-mac-intel-64bit-start-from-command-line
Then, I followed the tutorial Run and parse de novo repeat detection software and typed the following commands in Python 3 in the Terminal:
import os
from tral.sequence import sequence
from tral.paths import PACKAGE_DIRECTORY
proteome_HIV = os.path.join(PACKAGE_DIRECTORY, "examples", "data", "HIV-1_388796.faa")
sequences_HIV = sequence.Sequence.create(file = proteome_HIV, input_format = 'fasta')
So far so good. But the following command creates an error:
tandem_repeats = sequences_HIV[0].detect(denovo = True, detection = {"detectors": ["Phobos"]})
Did not find Phobos result file in /var/folders/z2/rt6qxntd3tg5bjmqlqnm0mdm0000gn/T/tmpvc20y3i4/001/PHOBOS/phobos.o
Note that if I use PHOBOS
instead of Phobos
in the command, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/user/anaconda/envs/python3env/lib/python3.6/site-packages/tral/sequence/sequence.py", line 162, in detect
**kwargs['detection'])[0]
File "/Users/user/anaconda/envs/python3env/lib/python3.6/site-packages/tral/sequence/repeat_detection_run.py", line 962, in run_detector
Detectors(detectors, sequence_type)
File "/Users/user/anaconda/envs/python3env/lib/python3.6/site-packages/tral/sequence/repeat_detection_run.py", line 872, in Detectors
FINDER_LIST.keys()))
Exception: Unknown TR detector supplied (Supplied: ['PHOBOS']. Known TR detectors: dict_keys(['HHrepID', 'Phobos', 'TRED', 'T-REKS', 'TRF', 'TRUST', 'XSTREAM']))
I am working on Mac OS X. I installed TRAL with pip install tral
.