ETE3 compare stop filename truncation
0
0
Entering edit mode
6.6 years ago
Joe 21k

Does anyone know how to prevent the ete3 toolkit compare tool from truncating names in it's output?

e.g.

ete3 compare -r /path/to/my_reference_tree_with_a_really_long_name.nwk -t /path/to/my_subject_tree_with_a_really_long_name.nwk

Yeilds:

source          | ref             | E.size  | nRF     | RF      | maxRF   | src-br+ | ref-br+ | subtre+ | treekoD
==============+ | ==============+ | ======+ | ======+ | ======+ | ======+ | ======+ | ======+ | ======+ | ======+
(..)long_name.n+ | (..)long_name.n+ | 13      | 0.00    | 0.00    | 20.00   | 1.00    | 1.00    | 1       | NA

I can script this myself to just echo out the file names, but I'm just wondering if anyone knows whether or not there's a built in mechanism for this?

congruency comparison phylogenetics trees • 1.3k views
ADD COMMENT
1
Entering edit mode

not possible at the moment. It would require a very small change in the code increasing the max length from 15 to anything else: https://github.com/etetoolkit/ete/blob/da6a23ae7adbe98be26a232a29fd90af3a66b0b5/ete3/tools/ete_compare.py#L185

ADD REPLY
0
Entering edit mode

OK, brilliant, thanks for letting me know. I've worked around it by just echo-ing a bunch of file names and parsing the ETE3 output (result=$(ete3 compare..... | grep ... | sed ...)) for now!

ADD REPLY

Login before adding your answer.

Traffic: 1865 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6