vcfR icon indicating copy to clipboard operation
vcfR copied to clipboard

tidyr data structures

Open knausb opened this issue 7 years ago • 0 comments

VCF data may take the form of:

POS REF ALT 1110696 A G,T

A tidR representation would be:

POS REF ALT 1110696 A G 1110696 A T

Implementing this, however, would break the relationship among rows in vcfR@fix and vcfR@gt. It appears that a tidyR solution would be to implement a primary key for each variant. This would provide a unique identifier for each variant and allow for the selection of a variant's data from either the @fix or @gt slot. This may require a little homework to implement.

knausb avatar Sep 13 '16 21:09 knausb