Documentation ¶
Index ¶
Constants ¶
View Source
const Server = "https://rest.ensembl.org"
Variables ¶
View Source
var FiletypeMap = map[string]MimeType{ "compgen": Json, "info": Json, "lookup": Json, "mapping": Json, "sequence": Fasta, "ontology": Json, "overlap": Json, "taxonomy": Json, }
View Source
var ModuleMap = map[string]map[string]string{
"compgen": {
"homology_species_gene_id": "homology_id",
},
"info": {
"species": "species",
},
"lookup": {
"symbol_post": "symbol",
"lookup_post": "id",
},
"mapping": {
"assembly_cdna": "cdna2gen",
"assembly_cds": "cds2gen",
"assembly_translation": "prot2gen",
"assembly_map": "asm2asm",
},
"ontology": {
"ontology_id": "id",
"ontology_name": "name",
},
"overlap": {
"overlap_id": "id",
"overlap_region": "region",
},
"taxonomy": {
"taxonomy_classification": "classification",
"taxonomy_id": "term",
},
"sequence": {
"sequence_id_post": "id",
"sequence_region": "region",
},
}
Functions ¶
func LoadApiData ¶
Types ¶
type ApiEndpoint ¶
type ApiTable ¶
type ApiTable map[string][]ApiEndpoint
var Table ApiTable
func (ApiTable) FindEndpoint ¶
func (at ApiTable) FindEndpoint(section, name string) (res *ApiEndpoint, err error)
type Request ¶
type Request struct { Endpoint *ApiEndpoint Params map[string]any ContentType MimeType }
func MakeRequest ¶
Click to show internal directories.
Click to hide internal directories.