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.