UofS-Pulse-Binfo / genotypes_loader

A Drush-based loader for VCF files that follows the genotype storage rules outlined by ND genotypes.
GNU General Public License v2.0
1 stars 2 forks source link

Updated the metadata regex to also match floating points #31

Closed carolyncaron closed 5 years ago

carolyncaron commented 5 years ago

Metadata

Documentation:

Description

Previously, any presence of a . was ignored in VCF subfields. Since floating point values as metadata can be valid, I altered the regex (thanks to help from @laceysanderson!) to capture floating points in addition to integers and strings, but still reject missing data (ie. . or .,., etc...)

Dependencies

Testing?

You can test by modifying the existing sample VCF files in sample_files/, or you can play around with the regex \b\.*\b in an online regex tester such as phpliveregex.com (Here's my test)