-
Notifications
You must be signed in to change notification settings - Fork 153
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
Capture uploaded allele correctly for VCF input #1744
base: main
Are you sure you want to change the base?
Capture uploaded allele correctly for VCF input #1744
Conversation
7dbea87
to
df56c61
Compare
my $alt_allele_count; | ||
|
||
foreach my $alt(@alleles) { | ||
if (length($ref_allele_string) != length($alt) or $original_allele_string =~ /^-/){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@likhitha-surapaneni , it seems we are checking only if ref allele is -
with $original_allele_string =~ /^-/
unlike for any allele like before. Was it intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$original_allele_string contains both ref_allele and alt_alleles in the same string separated by "/"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true, but with ^
you are only checking -
allele for ref and missing deletions?
# print("Before rejoin\n"); | ||
# use Data::Dumper; | ||
# print(Dumper($ib->buffer)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove the comments?
# Updating a flag to minimise multi-allelic variants in split_variants/rejoin_variants | ||
$vf->{minimised} = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multi-allelic is not getting minimised for default format. For example - 1 961320 961324 GCAGG/GCA/GCAG +
But in the output still getting MINIMISED=1
, (without the PR they are also not minimised but there is no MINIMISED=1
).
Ticket: ENSVAR-5858