示例#1
0
void findContigsWithClones(char *cloneFile, char *ooDir, char *snoopIn)
/* findContigsWithClones - find contigs that contain clones. */
{
struct slName *el;
cloneList = readAllLines(cloneFile);
for (el = cloneList; el != NULL; el = el->next)
    chopSuffix(el->name);
snoopFileName = snoopIn;
ooToAllContigs(ooDir, doContig);
}
示例#2
0
void checkGoldDupes(char *ooDir, char *goldFileName)
/* checkGoldDupes - Check gold files in assembly for duplicates. */
{
cloneHash = newHash(16);
fragHash = newHash(18);
contigHash = newHash(10);
chromHash = newHash(5);
goldName = goldFileName;
ooToAllContigs(ooDir, doContig);
if (errCount == 0)
    printf("No duplicates found\n");
else
    errAbort("%d duplicates found", errCount);
}
void ooCloneEnds(char *gsDir, char *spFile, char *ooDir)
/* ooCloneEnds - create cloneEnds files in each contig in ooDir. */
{
cloneHash = newHash(15);
readFinfFiles(gsDir);
addPhaseInfo(gsDir);
addBacEndInfo(spFile);
printf("Writing cloneEnds to contigs in %s\n", ooDir);

#ifdef SOMETIMES
    {
    struct clone *clone;
    uglyf("Zeroing out gs info\n");
    for (clone = cloneList; clone != NULL; clone = clone->next)
        {
	clone->gsList = NULL;
	}
    }
#endif /* SOMETIMES */

ooToAllContigs(ooDir, oneContig);
}