6ec964d05444b3c2f8147cd678de79ec5254b97a hiram Wed Feb 27 15:49:57 2019 -0800 output data from bigBed and bigWig track types for native database track refs #18869 diff --git src/hg/hubApi/hubApi.c src/hg/hubApi/hubApi.c index 55fb6c2..6f40732 100644 --- src/hg/hubApi/hubApi.c +++ src/hg/hubApi/hubApi.c @@ -578,48 +578,57 @@ slSort(&helList, hashElCmpIntValDesc); for (hel = helList; hel; hel = hel->next) { hPrintf("
  • %d - %s
  • \n", ptToInt(hel->val), hel->name); } hPrintf(" \n"); } hPrintf("\n"); hPrintf("

    \n"); } // static void tracksForUcscDb(char * db) static void showExamples(char *url, struct trackHubGenome *hubGenome, char *ucscDb) { hPrintf("

    Example URLs to return json data structures:

    \n"); + +hPrintf("

    listing functions

    \n"); hPrintf("
      \n"); hPrintf("
    1. list public hubs /cgi-bin/hubApi/list/publicHubs
    2. \n"); hPrintf("
    3. list database genomes /cgi-bin/hubApi/list/ucscGenomes
    4. \n"); hPrintf("
    5. list genomes from specified hub /cgi-bin/hubApi/list/hubGenomes?hubUrl=%s
    6. \n", url, url); hPrintf("
    7. list tracks from specified hub and genome /cgi-bin/hubApi/list/tracks?hubUrl=%s&genome=%s
    8. \n", url, url, hubGenome->name, url, hubGenome->name); hPrintf("
    9. list tracks from specified UCSC database /cgi-bin/hubApi/list/tracks?db=%s
    10. \n", ucscDb, ucscDb); hPrintf("
    11. list chromosomes from specified UCSC database /cgi-bin/hubApi/list/chromosomes?db=%s
    12. \n", ucscDb, ucscDb); hPrintf("
    13. list chromosomes from specified track from UCSC databaset /cgi-bin/hubApi/list/chromosomes?db=%s&track=gap
    14. \n", ucscDb, ucscDb); +hPrintf("
    \n"); + +hPrintf("

    getData functions

    \n"); +hPrintf("
      \n"); hPrintf("
    1. get sequence from specified database and chromosome /cgi-bin/hubApi/getData/sequence?db=%s&chrom=chrM
    2. \n", ucscDb, ucscDb); hPrintf("
    3. get sequence from specified database, chromosome with start,end coordinates /cgi-bin/hubApi/getData/sequence?db=%s&chrom=chrM&start=0&end=128
    4. \n", ucscDb, ucscDb); hPrintf("
    5. get entire track data from specified database and track name (gold == Assembly) /cgi-bin/hubApi/getData/track?db=%s&track=gold
    6. \n", ucscDb, ucscDb); hPrintf("
    7. get track data from specified database, chromosome and track name (gold == Assembly) /cgi-bin/hubApi/getData/track?db=%s&chrom=chrM&track=gold
    8. \n", ucscDb, ucscDb); -hPrintf("
    9. get track data from specified database, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?db=%s&chrom=chr1&track=gold&start=107680&end=186148
    10. \n", ucscDb, ucscDb); +hPrintf("
    11. get track data from specified database, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?db=%s&chrom=chrI&track=gold&start=107680&end=186148
    12. \n", defaultDb, defaultDb); hPrintf("
    13. get entire track data from specified hub and track name /cgi-bin/hubApi/getData/track?hubUrl=http://genome-test.gi.ucsc.edu/~hiram/hubs/GillBejerano/hub.txt&genome=hg19&track=ultraConserved
    14. \n"); hPrintf("
    15. get track data from specified hub, chromosome and track name (full chromosome) /cgi-bin/hubApi/getData/track?hubUrl=http://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/hub.txt&genome=_araTha1&chrom=chrCp&track=assembly_
    16. \n"); hPrintf("
    17. get track data from specified hub, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?hubUrl=http://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/hub.txt&genome=_araTha1&chrom=chr1&track=assembly_&start=0&end=14309681
    18. \n"); hPrintf("
    19. get all track data from specified hub and track name /cgi-bin/hubApi/getData/track?hubUrl=http://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/hub.txt&genome=_araTha1&track=gc5Base
    20. \n"); hPrintf("
    21. get track data from specified hub, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?hubUrl=http://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/hub.txt&genome=_araTha1&chrom=chrMt&track=gc5Base&start=143600&end=143685
    22. \n"); +hPrintf("
    23. get bigWig track data from specified database, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?db=%s&chrom=chrI&track=gc5BaseBw&start=107680&end=186148
    24. \n", defaultDb, defaultDb); +hPrintf("
    25. get bigBed track data from specified database, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?db=%s&chrom=chrII&track=ncbiRefSeqOther&start=14334626&end=14979625
    26. \n", defaultDb, defaultDb); + hPrintf("
    \n"); hPrintf("

    Example URLs to generate errors:

    \n"); hPrintf("
  • get track data from specified hub, chromosome, track name, start and end coordinates /cgi-bin/hubApi/getData/track?hubUrl=http://genome-test.gi.ucsc.edu/~hiram/hubs/Plants/hub.txt&genome=_araTha1&chrom=chrI&track=assembly_&start=0&end=14309681
  • \n"); hPrintf("
      \n"); hPrintf("
    \n"); } /* static void showExamples() */ static void showCartDump() /* for information purposes only during development, will become obsolete */ { hPrintf("

    cart dump

    "); hPrintf("
    \n");
     cartDump(cart);
     hPrintf("
    \n");