b0d399498f44f25274a920db635078590582230e gperez2 Tue Jul 2 15:18:44 2024 -0700 Adding documentation and an example for getting the reverse complement sequence using the API, refs #26691 diff --git src/hg/htdocs/goldenPath/help/api.html src/hg/htdocs/goldenPath/help/api.html index 188a380..0b3c991 100755 --- src/hg/htdocs/goldenPath/help/api.html +++ src/hg/htdocs/goldenPath/help/api.html @@ -112,30 +112,32 @@
Endpoint function | Required | Optional |
---|---|---|
/list/publicHubs | (none) | (none) |
/list/ucscGenomes | (none) | (none) |
/list/hubGenomes | hubUrl | (none) |
/list/files | genome | format=text, maxItemsOutput |
/list/tracks | genome or (hubUrl and genome) | trackLeavesOnly=1 |
/list/chromosomes | genome or (hubUrl and genome) | track |
/list/schema | (genome or (hubUrl and genome)) and track | (none) |
/getData/sequence | (genome or (hubUrl and genome)) and chrom | start and -end |
/getData/sequence | (genome or (hubUrl and genome)) and chrom | start, end, and +revComp=1 |
/getData/track | (genome or (hubUrl and genome)) and track | chrom, (start and end), maxItemsOutput, jsonOutputArrays |
/search | search and genome | categories=helpDocs, categories=publicHubs, categories=trackDb |
The hubUrl and genome parameters are required together to specify a unique genome in an assembly or track hub. The genome for a track hub will usually be a UCSC database genome. Assembly hubs will have their own unique genome sequences. Specify genome without a hubUrl to refer to a UCSC Genome Browser assembly.
Using the chrom=<name> parameter will limit the request to the single specified chromosome. To limit the request to a specific position, both start=4321 and end=5678 must be given together. +Using the revComp=1 parameter returns the reverse complement.
The /list/files endpoint only works for UCSC hosted genome assemblies, not for external hosted assembly hubs.
Any extra parameters not allowed in a function will be flagged as an error.