-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Float field Null/NA/NaN Values #1558
Comments
The documentation claims that it should be possible to do this just by using |
Thanks @pd3, I will note that if I provide a value of 'NaN' instead of the bcftools-standard
I also note that this functionality is not documented in the current VCF spec for "float" INFO fields, which would be a useful addition if this functionality is actually supposed to exist. As for -c, I suppose that would mean adding a flag for "what do I do for missing values" to |
I am not sure what you are saying is not documented in the VCF spec here. In VCF, |
Apologies @jmarshall – I didn't see it at the bottom of the spec PDF. Ignore that, then. |
Previously missing values in tab delimited files (".") were not transferred, which is correct, but sometimes not desired (#1558). Now it is now possible to fine-tune the behavior by adding or not adding a new '.' modifier. For example: -c TAG .. adds TAG if the source value is not missing. If TAG exists in the target file, it will be overwritten -c .TAG .. adds TAG even if the source value is missing. This can overwrite non-missing values with a missing value and can create empty VCF fields (`TAG=.`)
This is now possible (3647090) by adding a new Thanks for reporting the problem! |
Hello,
I am trying to use bcftools annotate to add new information to the INFO field. My situation is slightly more complex, but a simple example is I have a bgzipped TSV file (
annotations.tsv.gz
) similar to the following:Where columns are: CHROM, POS, REF, ALT, MAF, CADD
I also have the following header information (header.txt):
When I run
I get allele records like:
Note the missing CADD field for variant 2.
tl;dr, my questions is:
Is there a "NULL" value (NA/NaN/Null) that is acceptable in VCF spec for Float fields or is there some other solution I should be using here?
Thanks!
The text was updated successfully, but these errors were encountered: