[ensembl-dev] Question regarding MAF
Duarte Molha
duartemolha at gmail.com
Tue Mar 6 17:00:01 GMT 2018
Hi Guys
I am retrieving variations using the API that have a certain value of MAF
for example rs770602
If you retrieve this variation
like so: $vf->minor_allele_frequency
it reports a MAF of 0.495807
but when I get each allele
my @alleles = @{$vf->get_all_Alleles};
and I cycle through them, their frequency is undef
foreach my $a (@alleles){
my $freq = $a->frequency();
print $freq;
}
How do I retrieve the frequency calculated for each individual alleles on
the variation?
Many thanks
Duarte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20180306/7402d9e6/attachment.html>
More information about the Dev
mailing list