struct slName *annoAssemblySeqNames(struct annoAssembly *aa) /* Return a list of sequence names in this assembly. */ { struct slName *seqNames = twoBitSeqNames(aa->twoBitPath); slSort(&seqNames, slNameCmp); return seqNames; }
void addTwoBit(char *file, struct hash *fileHash, struct hash *seqHash) /* Add a 2bit file to hashes. */ { struct twoBitFile *lf = twoBitOpen(file); char *rFile = hashStoreName(fileHash, file); struct slName *names = twoBitSeqNames(file); struct slName *name; for(name = names;name;name = name->next) { struct seqFilePos *sfp; AllocVar(sfp); hashAddSaveName(seqHash, name->name, sfp, &sfp->name); sfp->file = rFile; sfp->isTwoBit = TRUE; sfp->pos = 0; } slFreeList(&names); twoBitClose(&lf); }