GithubHelp home page GithubHelp logo

wastewater-covidseq's Introduction

Wastewater genomic surveillance captures early detection of Omicron in Utah

This repository contains the R code used in the analysis and visualization of genomic surveillance data of the Omicron variant of SARS-CoV-2 in Utah. The manuscript associated with this code is titled "Wastewater genomic surveillance captures early detection of Omicron in Utah" and is available at https://www.medrxiv.org/content/10.1101/2022.11.24.22282643v2

Data preprocessing

The R code reads a raw data file, formats the dates, filters the data based on the study period, and groups the lineages for further analysis. It also reads a corrected lineage abundance data file and applies additional filtering and grouping.

Analysis

The analysis focuses on summarizing the data, grouping lineages, and creating visualizations. The code includes the creation of a detailed lineage plot for the supplementary materials and a lineage plot for the main text.

Visualizations

Visualizations created using ggplot2 include:

  1. Detailed lineage plot (Supplementary)
  2. Bar plot for Delta and Omicron lineages
  3. Bar plot for Omicron lineages

Dependencies

The following R packages are required to run the code:

  • dplyr
  • tidyverse
  • ggplot2
  • ggpubr
  • ggthemes
  • gridExtra
  • lubridate
  • tibbletime
  • scales
  • viridis
  • patchwork
  • broom.mixed

File Structure

  • R code: The main R code file is provided in this repository.

Usage

To run the code, clone the repository and ensure that the required R packages are installed. Open the R script file and update the file paths to match the location of the data files on your system. Run the script to generate the visualizations and output data file.

Citation

If you use this code or data, please cite the associated manuscript:

Wastewater genomic surveillance captures early detection of Omicron in Utah

wastewater-covidseq's People

Contributors

poojasgupta avatar

Stargazers

 avatar  avatar

Watchers

 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.