0a812f51e1c6478a53dee82bd97fd46e33399f36 braney Wed Mar 6 14:53:03 2024 -0800 support CRAM in hgc diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 4332ad5..7ce5d10 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -4814,31 +4814,31 @@ genericBigBedClick(conn, tdb, item, start, end, 0); } else if (sameString(type, "bigDbSnp") ) { doBigDbSnp(tdb, item); } else if (sameString(type, "interaction") ) { int num = 12; genericBedClick(conn, tdb, item, start, num); } else if (startsWith("gvf", type)) { doGvf(tdb, item); } - else if (sameString(type, "bam")) + else if (sameString(type, "bam") || sameString(type, "cram")) doBamDetails(tdb, item); else if ( startsWith("longTabix", type)) doLongTabix(tdb, item); else if (sameWord("interact", type) || sameWord("bigInteract", type)) doInteractDetails(tdb, item); } if (imagePath) { char *bigImagePath = trackDbSettingClosestToHome(tdb, ITEM_BIG_IMAGE_PATH); char *bothWords[2]; int shouldBeTwo = chopLine(imagePath, bothWords); if (shouldBeTwo != 2) errAbort("itemImagePath setting for %s track incorrect. Needs to be \"itemImagePath \".", tdb->track); printf("


\n", bothWords[0], item, bothWords[1]); shouldBeTwo = chopLine(bigImagePath, bothWords); @@ -22207,31 +22207,31 @@ genericChainClick(NULL, ct->tdb, item, start, "seq"); else if (sameWord(type, "bigPsl")) genericBigPslClick(NULL, ct->tdb, item, start, end); else if (sameWord(type, "bigMaf")) genericMafClick(NULL, ct->tdb, item, start); else if (sameWord(type, "bigDbSnp")) doBigDbSnp(ct->tdb, item); else if (sameWord(type, "bigBed") || sameWord(type, "bigGenePred") || sameWord(type, "bigLolly")) bigBedCustomClick(ct->tdb); else if (startsWith("bigRmsk", type)) doBigRmskRepeat(ct->tdb, item); else if (sameWord(type, "bigBarChart") || sameWord(type, "barChart")) doBarChartDetails(ct->tdb, item); else if (sameWord(type, "bigInteract") || sameWord(type, "interact")) doInteractDetails(ct->tdb, item); -else if (sameWord(type, "bam")) +else if (sameWord(type, "bam") || sameWord(type, "cram")) doBamDetails(ct->tdb, itemName); else if (sameWord(type, "vcfTabix") || sameWord(type, "vcfPhasedTrio")) doVcfTabixDetails(ct->tdb, itemName); else if (sameWord(type, "vcf")) doVcfDetails(ct->tdb, itemName); else if (sameWord(type, "makeItems")) doMakeItemsDetails(ct, fileName); // fileName is first word, which is, go figure, id else if (ct->wiggle) { if (ct->dbTrack) { struct sqlConnection *conn = hAllocConn(CUSTOM_TRASH); genericWiggleClick(conn, ct->tdb, fileItem, start); hFreeConn(&conn); }