Closed pnrobinson closed 3 years ago
Adding this to VcfVariantParser, lin e233, would solve the issue, but perhaps there are better ways?
try {
return Optional.of(builder.variantCallAttributes(variantCallAttributes).build());
} catch (Exception e) {
return Optional.empty();
}
Yeah, this error is unfortunate. The coordinates describe a region on reference with length 0, but the REF base is N
(length 1). I do not think this is a correct VCF record. We should log a warning and drop the variant.
Could you please push the changes if you already have them?
I added the correction for the malformed vars to the svg PR
Please not this in SvSvgGenerator
(after possibly acting on this, the PR should be ready)
/**
* TODO -- It would be better to put logic like this where the repeats are extracted!
* @param variant
* @param repeats
* @return
*/
List<RepetitiveRegion> getOverlappingRepeats(Variant variant, List<RepetitiveRegion> repeats) {
I will address the RR retrieval later. Otherwise, the issue with invalid variants should be fixed
The following variant
leads to this
It is not good to let svanna crash with variants like this -- better to log the error and skip the variant.