-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
vcfgo seems to expect the sample filter to be the same for all samples:
Lines 69 to 73 in aeb512d
| func (h *Header) parseSample(format []string, s string) (*SampleGenotype, []error) { | |
| values := strings.Split(s, ":") | |
| if len(format) != len(values) { | |
| return NewSampleGenotype(), []error{fmt.Errorf("bad sample string: %s", s)} | |
| } |
However, the VCF spec is more permissive: "Trailing fields can be dropped (with the exception of the GT field, which should always be present if specified in the FORMAT field)." See page 6.
I believe that, with the exception of GT, trailing fields should be allowed to be missing.
Metadata
Metadata
Assignees
Labels
No labels