Skip to content
ghruprojectPublic

About

An R package to perform genomics epidemiology

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

GenepiK

Overview

GenepiK is an open-source R package designed to analyse Klebsiella genomics surveys. It provides tools to generate plots for AST data, clinical data and genomics data generated by Kleborate.

This package is developed by members of the CGPS team and the GHRU units in Colombia, Nigeria, India and The Philippines.


Key Features

  • Import Merged Epidemiological, Microbiological and Genomics Data: Import from a template file
  • Top 20 ST and Proportion of CARBA-R/S: Plots the top 20 STs and which proportion of each is CARBA-R/S.
  • AST results based on Isolate type, Carbapenems susceptibility and Carbapenemase gene presence/absence: Plot susceptibility testing data based on 3 criteria.
  • UpSet plots for resistance and virulence: Generate powerful UpSet plots to identify intersections of AMR/virulence gene presence and Kleborate scores.

Planned for development:

  • Transmission analysis: Uses a pairwise SNP matrix to build a network.
  • Serotyping analysis: Plots the KL and OL distribution and performs a cumulative analysis.

Getting Started

To install and explore the package, follow the instructions below:

Installation

Install the latest version of this package with:

install.packages("remotes") # if you haven't already

# install the GenepiK package
remotes::install_github("cgps-group/GenepiK")

All required packages will be installed automatically.

Quick Usage Examples

library(GenepiK)

Import data and build plots

# Example Klebsiella data

# Import data
import_data("test_input/rapid_report_dummy_data.csv", "test_output")

# Analyse top 10 STs
topN_ST_counts_csv(masterdata, "test_output", 10)
create_ST_barplot(masterdata, "test_output", legend_size = 20)

# Create upset plots of AMR and virulence determinants
create_resistance_upset_plots(masterdata, "test_output", legend_size = 16)
create_virulence_upset_plots(masterdata, "test_output", legend_size = 16)

# Plot AST data based on 3 criteria
create_ast_barplots(masterdata, "test_output", legend_size = 20)
create_ast_barplots_gene(masterdata, "test_output", legend_size = 20)
create_ast_barplots_MIC(masterdata, "test_output", legend_size = 20)

For more see the Vignettes.

Contributions

Contributions are welcome! If you encounter issues or wish to suggest new features, please open an issue or submit a pull request.

Licence

This package is distributed under the GNU GPL-3.0 Licence. See LICENSE for details.

About

An R package to perform genomics epidemiology

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages