We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71489a6 commit f6945adCopy full SHA for f6945ad
1 file changed
vcf/src/vcf.rs
@@ -180,6 +180,13 @@ pub fn parse_vcf(source: impl BufRead) -> Result<VCF, VCFError> {
180
Err(e) => Err(VCFError::IoError(e)),
181
}
182
)
183
+ .filter(
184
+ |result| match result {
185
+ Ok(header) if header.key == "FORMAT" => true,
186
+ Err(_) => true,
187
+ _ => false,
188
+ }
189
+ )
190
.collect::<Result<Vec<_>, _>>()?;
191
Ok(
192
VCF {
0 commit comments