void chromAnnMapAdd(struct chromAnnMap *cam, struct chromAnn *ca) /* add a record to the table. */ { /* don't add if zero-length, they can't select */ if (ca->start < ca->end) genomeRangeTreeAddValList(cam->ranges, ca->chrom, ca->start, ca->end, ca); else chromAnnFree(&ca); }
/* add a component to the range map. */ void malnSet_addComp(struct malnSet *malnSet, struct malnComp *comp) { if (malnSet->compRangeMap != NULL) { genomeRangeTreeAddValList(malnSet->compRangeMap, comp->seq->orgSeqName, comp->chromStart, comp->chromEnd, slRefNew(comp)); } }