4c9ae67ea6e03ec3069cea012398793046e9ff2a giardine Tue Sep 21 15:00:29 2010 -0700 Adds new track type bedDetail to custom and resident tracks, also adds pgSnp (personal genome SNPs) as custom track type. bedDetail is bed4 to bed12, with 2 extra fields for an ID and description for hgc clicks. diff --git src/hg/lib/pgSnp.c src/hg/lib/pgSnp.c index e3c90d0..b6590f2 100644 --- src/hg/lib/pgSnp.c +++ src/hg/lib/pgSnp.c @@ -623,3 +623,35 @@ } } +char *pgSnpAutoSqlString = +"table pgSnp" +"\"personal genome SNP\"" +" (" +" ushort bin; \"A field to speed indexing\"" +" string chrom; \"Chromosome\"" +" uint chromStart; \"Start position in chrom\"" +" uint chromEnd; \"End position in chrom\"" +" string name; \"alleles ACTG[/ACTG]\"" +" int alleleCount; \"number of alleles\"" +" string alleleFreq; \"comma separated list of frequency of each allele\"" +" string alleleScores; \"comma separated list of quality scores\"" +" )" +; + +struct pgSnp *pgSnpLoadNoBin(char **row) +/* load pgSnp struct from row without bin */ +{ +struct pgSnp *ret; + +AllocVar(ret); +ret->bin = 0; +ret->chrom = cloneString(row[0]); +ret->chromStart = sqlUnsigned(row[1]); +ret->chromEnd = sqlUnsigned(row[2]); +ret->name = cloneString(row[3]); +ret->alleleCount = sqlSigned(row[4]); +ret->alleleFreq = cloneString(row[5]); +ret->alleleScores = cloneString(row[6]); +return ret; +} +