Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: oscarcapote
  • Language: Python
  • Default Branch: main
  • Size: 2.84 MB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed 7 months ago
Metadata Files
Readme Citation

README.md

Transmission Model Library

This repository contains the codes and data used in the manuscript "Inference of epidemic networks: the effect of different data types", by Oscar Fajardo-Fontiveros, Carl J. E. Suster, and Eduardo G. Altmann, developed at The University of Sydney, Sydney, NSW, Australia. The code in this repository was created by Oscar Fajardo-Fontiveros.

Installation

Prerequisites

This package requires Python 3.8 or higher and the following dependencies: - numpy - pandas - scipy - matplotlib

Installing the Package

To install the package in editable mode for development:

bash git clone https://github.com/oscarcapote/transmission_models.git cd transmission_models pip install -e .

This will install the package in editable mode, meaning any changes you make to the source code will be immediately available without reinstalling.

Verifying Installation

After installation, you can verify the package is working correctly:

python from transmission_models import * print("Transmission Models package installed successfully!")

Repository description

The Jupyter Notebook Example.ipynb contains an illustration of the usage of this library.

  • data/

Contains the data used in the manuscript (49 cases of positive tests in NSW, from mid 2021). Information about the time, genetic distance, and location of each case is provided in separate files.

  • src/transmission_models/

Contains the main package code organized as follows:

  • classes/

Contains the code that implements the transmission model and the MCMC used to sample transmission trees.

  • priors/

Contains the code that implements the genetic and location models.

  • utils/

Contains additional functions used in the library.

Usage

See the Example.ipynb notebook for detailed usage examples and the documentation for complete API reference.

Tree Visualization JS library:

tree_plot.js is an interactive tree visualization library build in JavaScript and D3.js. This tool allows you to:

  • Interactive visualization of transmission trees with D3.js
  • Customizable node colors for sampled and unsampled hosts
  • Tooltips showing host attributes on hover
  • Toggle between layouts: classic tree layout and infection time-based layout
  • Responsive design that adapts to window resizing

Example Visualization

In https://www.maths.usyd.edu.au/u/oscarf/tree_layout/ you can upload your jsons to visualize your sampled networks:

Tree Layout Visualization

This webpage have been developed using tree_layout.js

Example of a tree layout visualization generated using the interactive tree visualization tool.

Documentation of tree_layout.js

For complete documentation on using the tree visualization features, see the Tree Visualization Guide in the documentation.

Online Tool

You can also use the online tree layout tool at: https://www.maths.usyd.edu.au/u/oscarf/tree_layout/

Owner

  • Name: Oscar Fajardo Fontiveros
  • Login: oscarcapote
  • Kind: user
  • Company: SeesLab

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Infectious tree network sampler
message: >-
  Programs and datasets used to make the analysis done in
  the paper []
type: software
authors:
  - given-names: Oscar
    family-names: Fajardo-Fontiveros
    email: oscarcapote@hotmail.es
    affiliation: University of Sydney
  - given-names: Carl J. E.
    family-names: Suster
    affiliation: >-
      Sydney Infectious Diseases Institute, Faculty of
      Medicine and Health, The University of Sydney,
      Westmead, NSW, Australia
  - given-names: Eduardo
    family-names: G. Altmann
    email: eduardo.altmann@sydney.edu.au
    affiliation: University of Sydney
repository-code: 'https://github.com/oscarcapote/transmission_models'
abstract: >-
  Library that uses Bayesian inference and Monte Carlo
  methods to sample infectious trees
keywords:
  - bayesian inference
  - phylogenies
  - mcmc
  - epidemiology
license: AGPL-3.0-or-later

GitHub Events

Total
  • Watch event: 1
  • Push event: 10
  • Public event: 1
  • Pull request event: 4
  • Fork event: 1
  • Create event: 1
Last Year
  • Watch event: 1
  • Push event: 10
  • Public event: 1
  • Pull request event: 4
  • Fork event: 1
  • Create event: 1