addAccDetails: Add accession metadata to a dataset containing ecotype IDs

Description Usage Arguments Value Examples

Description

Add accession metadata to a dataset containing ecotype IDs

Usage

1
addAccDetails(tidyVCF, allAccs = FALSE)

Arguments

tidyVCF

Tidy format VCF data.

allAccs

logical, if 'TRUE' include rows for all accessions even if no rows in the data exist with that accession.

Value

dataframe with accession details added

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## make a gene info DF
geneInfo <- getGeneInfo(genes = c("AT3G62980", "AT3G26810"))

## download a single VCF
myVCF <- VCFByTranscript(geneInfo[1, ])

## add accession details to a single VCF
myVCFWithAccDets <- addAccDetails(myVCF)

## This function can also be applied to a list of VCF files created by the
## `VCFList()` function, see example in the documentation for VCFList()

wrightrc/r1001genomes documentation built on Nov. 10, 2019, 12:45 p.m.