# VCF parsing error - float instead of int

**URL:** https://discuss.hail.is/t/vcf-parsing-error-float-instead-of-int/1271
**Category:** Hail Query & hailctl
**Created:** [February 5, 2020, 3:41pm UTC](https://discuss.hail.is/t/vcf-parsing-error-float-instead-of-int/1271 "2020-02-05T15:41:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![orr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/orr/32/846_2.png) [@orr](https://discuss.hail.is/u/orr)
#### Post date: [February 5, 2020, 3:41pm UTC](https://discuss.hail.is/t/vcf-parsing-error-float-instead-of-int/1271/1 "2020-02-05T15:41:25Z")

</div>

Can I specify not to parse the culprit field (DP\_MEDIAN) at all? or even not to parse the info field at all? or to parse it as a float?

Thanks!

The error is :  
…  
VCFParseError: invalid character ‘.’ in integer literal

EDIAN=131;GQ\_MEDIAN=164;DP\_MEDIAN=24.5;DP\_HIST\_ALT=52|201|434|701|671|63 …  
^

‘info’: struct {  
FS: array,  
HOM: int32,  
GC: array,  
AD: array,  
ADF: array,  
ADR: array,  
DP: int32,  
MQ: int32,  
DPF: int32,  
AC: array,  
AN: int32,  
GQX\_MEDIAN: array,  
GQ\_MEDIAN: array,  
DP\_MEDIAN: array,  
DP\_HIST\_ALT: array

---

<div class="post-metadata">

### Author: ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)
#### Post date: [February 5, 2020, 3:45pm UTC](https://discuss.hail.is/t/vcf-parsing-error-float-instead-of-int/1271/2 "2020-02-05T15:45:14Z")

</div>

I think the core problem is that the header is wrong. You can either edit the header to indicate that DP\_MEDIAN is a float, or if the VCF is large, extract the header alone, edit it, and use that in `import_vcf` with the `header_file` argument.

---

<div class="post-metadata">

### Author: ![orr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/orr/32/846_2.png) [@orr](https://discuss.hail.is/u/orr)
#### Post date: [February 5, 2020, 4:09pm UTC](https://discuss.hail.is/t/vcf-parsing-error-float-instead-of-int/1271/3 "2020-02-05T16:09:46Z")

</div>

Thanks! `header_file` seems to work, still parsing and writing.
