Skip to content
Steven Weaver edited this page Feb 11, 2023 · 4 revisions

Installation

  1. Create your virtual environment python3.9 -m virtualenv venv

  2. Activate your virtual environment source venv/bin/activate

  3. Follow the instructions at https://github.com/veg/hivtrace for installation

pip3 install biopython
pip3 install numpy==1.20
pip3 install scipy
pip3 install cython
pip3 install hivtrace
  1. Ensure tn93 is installed
git clone https://github.com/veg/tn93.git
cd tn93
cmake .
make
make install (optional)
  1. Run HIV-TRACE with Dummy Dataset HIV-TRACE currently only anticipates a FASTA file. A dataset used in an analysis in 2019 is available at https://github.com/veg/kpnet-global/blob/master/data/kp-aligned.fas.

The site range we are using for this example is

  • Sites : 2253-3869
  • Minimum Length : 500
hivtrace -i ./sequence.fasta -t 0.015 -r /Directory/to/hivtrace/hivtrace/test/rsrc/HXB2_1497.fasta -a resolve -m 500 -g 0.015

Documentation for hivtrace is located at https://github.com/veg/hivtrace.

  1. Annotate the results file (optional)

Attributes for the dataset we used is available at https://github.com/veg/kpnet-global/blob/master/data/kp-data.tsv.

hivnetworkannotate -n sequence.fasta.results.json -a attributes.json -g schema.json -r

Some documentation for for hivnetworkannotate exists at https://github.com/veg/hivclustering/wiki/hivnetworkannotate. I prefer to use JSON with hivnetworkannotate, as the command is more approachable. In order to translate an attributes tsv to JSON, you can use the following deno script. https://github.com/stevenweaver/autotune-app/blob/main/scripts/deno/tsv2json.ts

To generate a schema from the attributes, you can use https://github.com/stevenweaver/autotune-app/blob/main/scripts/deno/generateSchema.ts.

  1. Visualize the results

By navigating to https://veg.github.io/hivtrace-viz/, you can select your results file to view by clicking on File > Load.

Prior Network Handling

Clone this wiki locally