Пример #1
0
void printLinkPair(PM_link_pair* LP, char ** bamNames, char ** contigNames)
{
    printf("===\n(%s, %s, %d links)\n",  contigNames[LP->cid_1], contigNames[LP->cid_2], LP->numLinks);
    PM_link_info* LI = LP->LI;
    do {
        printf("\t");
        printLinkInfo(LI, bamNames);
        printf("\n");
    } while(getNextLinkInfo(&LI));
}
Пример #2
0
void printLinks(cfuhash_table_t * linkHash,
                char ** bamNames,
                char ** contigNames) {
    BM_LinkWalker walker;
    int ret_val = initLinkWalker(&walker, linkHash);
    if(ret_val)
        printf("#cid_1\tcid_2\tpos_1\trev_1\tpos_2\trev_2\tfile\n");
        while(ret_val != 0) {
            printf("%s\t%s\t",
                   contigNames[walker.pair->cid1],
                   contigNames[walker.pair->cid2]);
            printLinkInfo(walker.LI, bamNames);
            ret_val = stepLinkWalker(&walker);
        }
        destroyLinkWalker(&walker);
}