Giter Site home page Giter Site logo

basel-flu's Introduction

Input files

  • data/nextstrain_tree_sub{x}.trees not committed to this repo
  • data/location_mapping.csv not committed to this repo

Augur version

You must use augur branch beast-v2. When augur v6 is released these notes will be updated accordingly.

Convert lat-longs into auspice-usable format

This script uses ./data/location_mapping.csv and converts it into an augur-parseable format.

python scripts/make_lat_longs.py > results/lat_longs.tsv

Parse beast files using augur

numDate="2017.260" # 2017-04-05
for i in {1..10}; do
  augur import-beast --mcc data/nextstrain_tree_sub1.trees --output-tree results/basel-flu_${i}.new --output-node-data results/basel-flu_${i}_node_data.json --tip-date-format decimal --most-recent-tip-date ${numDate} --recursion-limit 10000;
done;

Modifications to the node-data specific to this analysis

for i in {1..10}; do
  python scripts/transform_node_data.py results/basel-flu_${i}_node_data.json results/basel-flu_${i}_node_data_transformed.json;
done

Export data for auspice

for i in {1..10}; do
  augur export v1 --tree results/basel-flu_${i}.new --node-data results/basel-flu_${i}_node_data_transformed.json --auspice-config config/auspice_config.json --output-meta auspice/basel-flu_${i}_meta.json --output-tree auspice/basel-flu_${i}_tree.json --metadata config/metadata.tsv --lat-longs results/lat_longs.tsv;
done

basel-flu's People

Contributors

jameshadfield avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.