Skip to main content

A GUI application enabling the labelling and exploration of phylogenetic trees based on genogroup file information.

Project description

T-REX

Tree Explorer (T-REX) - A phylogenetic tree exploration and query tool

Installation

A pre-compiled binary for windows has been provided. Simply download to a location of your choosing and create a shortcut pointing to the executable. Alternatively you may run the code directly following the installation of PyQT5 (PyQt5==5.15.9), Pandas (pandas==1.5.3), ete3toolkit (ete3==3.1.2), and pillow (pillow==10.2.0).

USAGE

TREE EXPLORER 2023

Software package enabling the labelling of phylogenetic trees using information derived from genomap tables.

Usage:

Step 1: Upload phenotype file in csv format ensuring first column contains identifiers Step 2: Perform label selection BEFORE uploading tree file. Tree labels are modified following upload Step 3: Upload tree in Newick format. Step 4: Perform strain selection if you wish to limit tree size otherwise all are shown Step 5: You can select to crop the tree according to strains selected. Otherwise selections are not taken into account In addition you can collapse branches containing selected strains instead of cropping so you have a simpler tree but with the possibility to open the branches as you wish. Step 6: Click 'Show Tree' to display and explore the result

Click 'Reset' to start a new analysis and 'Exit' to quit the program

Colour Leaf Queries

A basic tool has been added which allows the user to search for specific characteristics and colour those accordingly. In order to do this, you must enter queries in a specific form as follows: LABEL=1 AND LABEL=2 AND COLOUR=X for example to highlight strains in yellow that contain gene g1 (with 1/0 notation) you enter: g1_1 AND yellow. The label entered reflects the structure of the genomap file so change this accordingly.

Multiple queries can also be performed along with more complex requests such as searching for ranges if columns contain numerical data. Searches are separated with the 'AND' keyword. The following notation allows you to perform searches for specific values:

pH=(G,5) search for pH greater than 5 pH=(L,5) search for pH less than 5 pH=(4,5) search for pH between 4 and 5

All these queries can be combined for example: G1=1 AND pH=(L,5) AND DoublingTime=(20,25) AND colour=yellow Will find g1 containing strains with pH less than 5, and a doubling time between 20 and 25 minutes.

This functionality is quite sensitive so whilst you will be informed of some mistakes it is possible that in some cases the absence of highlighting is due to an unusual error. So be careful. When the tree is displayed strains matching the search criteria will be coloured. This function is at an early stage and can be expanded depending on user feedback.

Adding Custom Labels

You are not limited to using preset options in the phenotype file. You are free to add as many as you want. Simply open the file and add the column header and relevant values that you want. There is no limit though if possible avoid unusual characters or symbols in label headers and values.

Heatmaps An additional functionality allows for the addition of heatmaps to phylogenetic trees. To use this you need to upload a file with the genome identifiers and the various information you wish to display This can be presence/absence info of type +/- for example when dealing with genes. You may also upload raw numeric data which will be displayed accordingly. E.g. raw measures. After upload click to apply the heatmap and select the desired formatting options (e.g. grayscale or remove column names etc)

Explanations for Each Button

Upload Genomap: To upload your table containing strain names and characteristics of interest. Upload Tree File: To upload your phylogenetic tree in newick format. Show Tree: Display tree. Reset: Remove all files and formatting to start a new analysis. Exit: Close the program. Prune Tree: Remove branches for all EXCEPT selected strains. Collapse: close branches containing selected strains. These can be expanded. Clear Prune: Remove both pruning and collapse options. Label Search: perform search of tree to colour branches of interest. Col Strain: Colour selected strains. Clear Colour: Remove all colour formatting. About: Opens this box. Label Options: Contains characteristics derived from genomap file. Select Strains: Select strains for further analysis. Upload HM: Upload you heatmap file if desired. Activate HM: apply formatting and show heatmap. Other Tools: Display menu containing other tools.

Other Tools Menu

Export labelled data: Output labelled data to csv file for colour coded strains. Tree Name Export: Extracts tree names into a text file. Useful if you have a tree only and want to construct a genomap type file Tree Name Exchange: Upload a file with old and new times to swap those in the tree. Change Tree Topology: Toggle rectangular and circular forms of tree. Export Tree File: Export raw tree file for other uses (labels also exported) Close Window: Closes this tool box

Troubleshooting

Will be filled with resolutions as users report challenges in using program

If you are generally pleased with this software but have some things you would like to see included or changed, do not hesitate to get in contact!

Support/Requests/Questions: damian.magill@iff.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TreeExplorer-Python-0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TreeExplorer_Python-0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file TreeExplorer-Python-0.1.tar.gz.

File metadata

  • Download URL: TreeExplorer-Python-0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for TreeExplorer-Python-0.1.tar.gz
Algorithm Hash digest
SHA256 f9408578b8a4430dc262cc8c31304ec46168875734158fbb53bc3f5781b3bce9
MD5 344ff948e9392069717b2d39f46538e2
BLAKE2b-256 1de40f1c7d4b3561150e0c0f90c8ce0b83d0f7b15a32435221552730d06b5b4e

See more details on using hashes here.

File details

Details for the file TreeExplorer_Python-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for TreeExplorer_Python-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6944d671b940dd00c0147665bd60b486739b36dfed6f9c0b2438cbae69db874
MD5 12eeb571c3f757ad7baaeab7bb3c7af5
BLAKE2b-256 1d428b51ddc90a227c39d855dfbb4650349504d4564176a030747535034b692d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page