2e471ecc6491cba1ecd8ac9330d40f71910e0c0f angie Wed Apr 17 22:45:03 2013 -0700 typo fix in comment diff --git src/hg/inc/variant.h src/hg/inc/variant.h index f31091c..5aa7e70 100644 --- src/hg/inc/variant.h +++ src/hg/inc/variant.h @@ -1,40 +1,39 @@ -/* variant.h -- a generic variant. Meant to be capture information that's - * in VCF or pgSNP */ +/* variant.h -- a generic variant. Meant to capture information that's in VCF or pgSNP. */ #ifndef VARIANT_H #define VARIANT_H #include "pgSnp.h" struct allele // a single allele in a variant. { struct allele *next; struct variant *variant; int length; char *sequence; }; struct variant // a single variant { struct variant *next; /* Next in singly linked list. */ char *chrom; /* Chromosome */ unsigned chromStart; /* Start position in chrom */ unsigned chromEnd; /* End position in chrom */ unsigned numAlleles; /* the number of alleles */ struct allele *alleles; /* alleles */ }; struct variant *variantNew(char *chrom, unsigned start, unsigned end, unsigned numAlleles, char *slashSepAlleles, struct lm *lm); /* Create a variant from basic information that is easy to extract from most other variant * formats: coords, allele count, and string of slash-separated alleles. */ struct variant *variantFromPgSnp(struct pgSnp *pgSnp, struct lm *lm); /* convert pgSnp record to variant record */ struct allele *alleleClip(struct allele *allele, int sx, int ex); /* clip allele to be inside region defined by sx..ex. Returns * pointer to new allele which should be freed by alleleFree, or variantFree */ #endif /* VARIANT_H*/