bug in vcf display

1 view
Skip to first unread message

Belinda M. Giardine

unread,
Oct 11, 2016, 11:36:59 AM10/11/16
to genome...@soe.ucsc.edu
I found a bug related to the detail page of a vcf file. Not all vcfs have
the genotype in the format of GT. When they don't the display gets the
alleles but gives the wrong information for the counts. By initializing
the variables, it comes up as unknown which is better than the wrong
answer.

Snip from code:
gt->id = vcff->genotypeIds[i];
gt->infoCount = gtWordCount;
gt->infoElements = vcfFileAlloc(vcff, gtWordCount * sizeof(struct
vcfInfoElement));
int j;
gt->hapIxA = -1; //initialize
gt->hapIxB = -1;
for (j = 0; j < gtWordCount; j++)
{
// Special parsing of genotype:


I added the initialization for the hapIxA and hapIxB to our mirror.

Belinda

Angie Hinrichs

unread,
Oct 11, 2016, 12:41:20 PM10/11/16
to Belinda M. Giardine, genome...@soe.ucsc.edu
Hi Belinda,

Thanks for the fix!  I have updated our latest source and rebuilt CGIs on genome-test.cse.ucsc.edu -- can you try your VCF there?  

Angie


Reply all
Reply to author
Forward
0 new messages