Giter VIP home page Giter VIP logo

prewas's Introduction

CRAN_Status_Badge

Introduction

The prewas R package allows users to create a binary SNP matrix from a whole genome alignment. The SNP matrix includes the following features: (1) multiple line representation of multiallelic sites, (2) multiple line representation for SNPs present in overlapping genes, and (3) choice over the reference allele. Additionally, users can collapse SNPs into genes so the output is a binary gene matrix. Output from the prewas package should be used as the input to bacterial GWAS tools such as hogwash.

Note: this package depends on R (>= 3.5.0).

For the most up-to-date package, it is recommended to install using dev.tools:

install.packages("devtools")
devtools::install_github("Snitkin-Lab-Umich/prewas")
library(prewas)

Documentation

prewas is described in the paper: "prewas: data pre-processing for more informative bacterial GWAS". The Rscripts and data for the paper's figures and analyses can be found in the manuscript analysis repository.

A tutorial explaining how to use the package can be found in the vignette.

Contributors

Katie Saund, Stephanie Thiede, and Zena Lapp contributed to this code.

Questions

Please open an issue or contact Evan Snitkin ([email protected]) with any questions.

prewas's People

Contributors

ecmaggioncalda avatar katiesaund avatar snitkin-lab avatar sthiede avatar zenalapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

prewas's Issues

prewas specifying reference genome

When I read into to the guid of prewas, I saw that reference genome could be provided, but couldn't see how to specify my reference genome in the input of prewas:
results_maximal = prewas(dna = vcf,
tree = tree,
outgroup = outgroup,
gff = gff,
anc = TRUE)
How do I specify this? Is the genome detected in the vcf input file?
Thank you

Prewas unable to install in R

Hi,
I am using R version 4.0.3 and trying to install prewas. However, it keep showing that it is not available in this version. Is there a repository CRAN that I could download from?
image

For the vcf file input, If I'm generating a matrix for 300 ~500 strains for input of TreeWAS. Is there a tool you would recommend for generating this input?
Thank you!
Christine

NOTICE: plan(multiprocess) of future is deprecated

Hi.

This is a friendly reminder that plan(multiprocess) of the future package is deprecated since future 1.20.0 (2020-11-03). It will eventually become defunct and removed. The background for this can be found in HenrikBengtsson/future#420.

Your prewas package relies on multiprocess, cf. https://github.com/Snitkin-Lab-Umich/prewas/search?q=multiprocess.

Please migrate your code to the platform-independent plan(multisession) or the Linux/macOS-specific plan(multicore). If you want to emulate what multiprocess does, you can do something like:

  if (parallelly::supportsMulticore()) {
    oplan <- plan(multicore)
  } else {
    oplan <- plan(multisession)
  }
  on.exit(plan(oplan))

BTW, if you don't already do so, please make sure to undo any plan() you set in your code, as illustrated by the above example. This is needed to guarantee that calling your code won't override settings that the user has set previously. You can read about this in https://future.futureverse.org/reference/plan.html#for-package-developers.

Thank you,

Henrik
(maintainer of the future package)

Poor example tree

prewas(snpeff_vcf) fails to make a rooted and fully dichotomous tree.
Replace sample data to work better as example.

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.