vcfR (version 1.8.0)

INFO2df: Reformat INFO data as a data.frame

Description

Reformat INFO data as a data.frame and handle class when possible.

Usage

INFO2df(x)

metaINFO2df(x, field = "INFO")

Arguments

x

an object of class vcfR or chromR.

field

should either the INFo or FORMAT data be returned?

Value

A data.frame

Details

The INFO column of VCF data contains descriptors for each variant. Because this column may contain many comma delimited descriptors it may be difficult to interpret. The function INFO2df converts the data into a data.frame. The function metaINFO2df extracts the information in the meta section that describes the INFO descriptors. This function is called by INFO2df to help it handle the class of the data.

Examples

Run this code
# NOT RUN {
data(vcfR_test)
metaINFO2df(vcfR_test)
getINFO(vcfR_test)
INFO2df(vcfR_test)


# }

Run the code above in your browser using DataCamp Workspace