broadinstitute / gamgee

A C++14 library for NGS data formats
http://broadinstitute.github.io/gamgee/
MIT License
40 stars 13 forks source link

Prevent GT field from being set using set_integer_individual_field() #387

Closed droazen closed 9 years ago

droazen commented 9 years ago

Now that Genotype encoding has been encapsulated within VariantBuilder, setting GT using one of the set_integer_individual_field() functions will no longer produce a correct result. We should throw an exception if the user tries to do this.

MauricioCarneiro commented 9 years ago

only if validation is set!

droazen commented 9 years ago

Yes, all error checking in VariantBuilder is controlled by the validation toggle