Skip to content

Commit

Permalink
nextstrain refine and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Apr 22, 2020
1 parent a571079 commit 69b6130
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 26 deletions.
26 changes: 0 additions & 26 deletions README_NextStrain.md

This file was deleted.

40 changes: 40 additions & 0 deletions nextstrain/README_NextStrain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# NextStrain Document

## Installation

### Install NextStrain into Conda env
```
curl http://data.nextstrain.org/nextstrain.yml --compressed -o nextstrain.yml
conda env create --name nextstrain-env --file nextstrain.yml
conda activate nextstrain-env
npm install --global auspice
```

### Test the installation
```
conda activate nextstrain-env
augur -h
auspice -h
nextstrain -h
conda deactivate nextstrain-env
```

## NextStrain Analysis

### Entry Point - IQTREE Phylogeny
Follow the [Tuberculosis Tutorial](https://nextstrain.org/docs/tutorials/tb) picking up right after [Get the Topology](https://nextstrain.org/docs/tutorials/tb#get-the-topology).

**Fix Branch Lengths & Get a Time-Resolved Tree**
Adjusts branch lengths in the tree to position tips by their sample date and infer the most likely time of their ancestors, using TreeTime.
```
augur refine \
--tree ../testX/iqtree/iqtree.core-filter0_bootstrap.treefile \
--alignment ../testX/snippy_multi/snippy-core.full.filter0.fasta \
--vcf-reference ../testX/reference_genome/reference_genome\GCF_000009065.1_ASM906v1_genomic.fna \
--metadata test.tsv \
--timetree \
--root residual \
--coalescent opt \
--output-tree refine-tree.nwk \
--output-node-data refine-branch_lengths.json
```
Loading

0 comments on commit 69b6130

Please sign in to comment.