Giter Club home page Giter Club logo

abhgenotyper's Introduction

ABHgenotypeR

The ABHgenotypeR R package to easily visualize and manipulate ABH genotypes.

Introduction

The ABHgenotypeR package provides simple imputation, error-correction and plotting capacities for genotype data. The function in this package were initially developed for the GBS/QTL analysis pipeline described in:

Furuta, Reuscher et. al., 2016 Adaption genotyping by sequencing for rice F2 populations. Genes, Genomes and Genetics

The ABHgenotypeR package is supposed to serve as an intermediate but independent analysis tool between the TASSEL GBS pipeline and the qtl package. ABHgenotypeR provides functionalities not found in either TASSEL or qtl in addition to visualization of genotypes as "graphical genotypes". Plotting is based on ggplot2.

Installation

from CRAN:

install.package("ABHgenotypeR")
library(ABHgenotypeR)

or from github:

#needs "devtools"
install.packages("devtools")
library(devtools)

install_github("StefanReuscher/ABHgenotypeR", build_vignettes = TRUE)

for more information run:

vignette("ABHgenotypeR-vignette", package = "ABHgenotypeR")

abhgenotyper's People

Contributors

stefanreuscher avatar noschenk avatar

Stargazers

 avatar  avatar Santos Barrera Lemus avatar Hiromi Kajiya-Kanegae avatar Shu-Kai Chang avatar Nathan S. Watson-Haigh avatar Ivan N avatar

Watchers

Hiromi Kajiya-Kanegae avatar  avatar

abhgenotyper's Issues

Error: $ operator is invalid for atomic vectors

Hello,

I am trying to run the example data set and receive an error. The error message as is follows Error: $ operator is invalid for atomic vectors when running plotAlleleFreq. I have added the code, output, and session info to help with diagnosing the issue.

Please let me know how to proceed.

Thanks

Benjamin

Below is the code:
library(ABHgenotypeR) genotypes <- readABHgenotypes(system.file("extdata", "preprefall025TestData.csv", package = "ABHgenotypeR"), nameA = "NB", nameB = "OL") plotAlleleFreq(genos = "genotypes") sessionInfo()

Below is the output:

library(ABHgenotypeR)
genotypes <- readABHgenotypes(system.file("extdata",

  •                                       "preprefall025TestData.csv",
    
  •                                       package = "ABHgenotypeR"),
    
  •                           nameA = "NB", nameB = "OL")
    

plotAlleleFreq(genos = "genotypes")
Error in genos$marker_names : $ operator is invalid for atomic vectors
sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] ABHgenotypeR_1.0.1

loaded via a namespace (and not attached):
[1] colorspace_1.3-2 scales_0.5.0 compiler_3.4.3 lazyeval_0.2.1 plyr_1.8.4 tools_3.4.3 pillar_1.1.0 gtable_0.2.0 tibble_1.4.2
[10] yaml_2.1.16 Rcpp_0.12.15 ggplot2_2.2.1 grid_3.4.3 rlang_0.1.6 munsell_0.4.3

Error plot geno

plotGenos(genotypes)
Error in grid.Call.graphics(C_upviewport, as.integer(n)) :
cannot pop the top-level viewport ('grid' and 'graphics' output mixed?)
In addition: Warning message:
The panel.margin argument of theme() is deprecated as of ggplot2 2.2.0.
ℹ Please use the panel.spacing argument instead.
ℹ The deprecated feature was likely used in the ABHgenotypeR package.
Please report the issue to the authors.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

error when imputing

Dear Stefan,

I try to use your function to impute a map object created with ASMap.

when excuting the imputation, i get following error:

postImpGenotypes <- imputeByFlanks(genotypes)
Error in 1:nrow(geno_temp) : argument of length 0

Could you help me with that?
Thank you,
Michel

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.