Description Usage Arguments Value Examples
Label accessions with the variants they contain
1 | labelBySNPs(data, collapse = TRUE)
|
data |
a data frame of variants with a column named "Indiv" |
collapse |
logicial value, should each accession be a single line? |
a df with a single row per accession, with a new column "SNPs" that has a single text string detailing all the variants from data within that accession
1 2 3 4 5 6 7 8 9 10 11 12 13 | geneInfo <- getGeneInfo(genes = c("AT3G62980", "AT3G26810"))
## download a single VCF
myVCF <- VCFByTranscript(geneInfo[1, ])
## Parse the EFF field of a single VCF:
myVCF <- parseEFF(myVCF)
## When using Collapse=TRUE, each accession will be a single row of the output
labelBySNPs(myVCF, collapse=TRUE)[1:3,]
## When using collapse=FALSE, each SNP of each accession will have it's own row.
labelBySNPs(myVCF, collapse=FALSE)[1:3,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.