You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run bcftools gtcheck --no-HWE-prob the array args->nmatch is not initialized:
if ( args->calc_hwe_prob )
{
// prob of the observed sequence of matches given site AFs and HWE
args->hwe_prob = (double*) calloc(args->npairs,sizeof(*args->hwe_prob));
if ( !args->hwe_prob ) error("Error: failed to allocate %.1f Mb. Run with --no-HWE-prob to save some memory.\n", args->npairs*sizeof(*args->hwe_prob)/1e6);
args->nmatch = (uint32_t*) calloc(args->npairs,sizeof(*args->ncnt)); // number of matches, used only with calc_hwe_prob
if ( !args->nmatch ) error("Error: failed to allocate %.1f Mb.\n", args->npairs*sizeof(*args->ncnt)/1e6);
}
At the end of the run gtcheck writes the report with the following command:
But there is no check for args->calc_hwe_prob when accessing args->nmatch[idx]. The two instances of args->nmatch[idx] should be replaced with args->calc_hwe_prob ? args->nmatch[idx] : 0 or something similar
The text was updated successfully, but these errors were encountered:
If you run
bcftools gtcheck --no-HWE-prob
the arrayargs->nmatch
is not initialized:At the end of the run gtcheck writes the report with the following command:
But there is no check for
args->calc_hwe_prob
when accessingargs->nmatch[idx]
. The two instances ofargs->nmatch[idx]
should be replaced withargs->calc_hwe_prob ? args->nmatch[idx] : 0
or something similarThe text was updated successfully, but these errors were encountered: