Open YdlNAU opened 5 years ago
replace variantContext.getFilters() with Optional.ofNullable(variantContext.getFilters()).getOrElse("PASS").toString()
if (variantContext.getFilters().isEmpty()) {
return "PASS";
}
because I have an error when paste your codes to my eclipse !
3. But how can I distinguish "PASS" with "." ??? @yfarjoun thanks you so much !
I have already test a quality bad bgzip compressed vcf file! it can't distinguish them.
@yfarjoun
I'm writing codes for non-open source project! But this is an LGPL lic. So if you have answer not to change source codes, I will very appreciate!
Verify
I have already see https://github.com/samtools/htsjdk/issues/679 I repeat because I think it is a bug and I have a emergency!
Subject of the issue
I use this library's query API to rapidly get un parserd variant string ! BUT when i get the filter FIELD, it returns [] (or null!) here is my code, and I use 2.18 and 2.19. can any one do me a favor to tell me, how can I fix this problem! Super thanks!!
Your environment
Steps to reproduce
Any indexed VCF is OK
Expected behaviour
should return PASS
Actual behaviour
return [] or null