Documentation ¶
Index ¶
- Constants
- Variables
- func GetProtID(symbol string) (string, error)
- func GetProtLength(accession string) (int, error)
- func GetProtMapping(dbname, geneid string) (string, error)
- type GraphicFeature
- type GraphicMetadata
- type GraphicResponse
- type InterProEntry
- type InterProEntryResponse
- type InterProExtraField
- type InterProFeature
- type InterProFragment
- type InterProLocation
- type InterProMatch
- type InterProMetaData
- type UniProtResponse
- type UniProtSequence
Constants ¶
View Source
const PfamLink = "https://www.ebi.ac.uk/interpro/entry/pfam/%s"
View Source
const PfamURL = "https://www.ebi.ac.uk/interpro/api/entry/pfam/protein/uniprot/%s/?extra_fields=short_name&page_size=100"
View Source
const SequenceFeaturesURL = "https://www.ebi.ac.uk/interpro/api/protein/UniProt/%s/?extra_features=true"
View Source
const UNIPROTRESTURL = "" /* 135-byte string literal not displayed */
Variables ¶
View Source
var MotifNames = map[string]string{
"disorder": "Disordered region",
"low_complexity": "Low complexity region",
"sig_p": "Signal peptide region",
"coiled_coil": "Coiled-coil motif",
"transmembrane": "Transmembrane region",
}
MotifNames has human-readable names
- mostly from http://pfam-legacy.xfam.org/help#tabview=tab9
Functions ¶
func GetProtLength ¶ added in v1.7.0
func GetProtMapping ¶
Types ¶
type GraphicFeature ¶ added in v1.5.0
type GraphicFeature struct { Color string `json:"colour"` Text string `json:"text"` Type string `json:"type"` Start json.Number `json:"start"` End json.Number `json:"end"` Link string `json:"href"` Metadata GraphicMetadata `json:"metadata"` }
GraphicFeature is a generic representation of various feature responses
func GetPfamProteinMatches ¶ added in v1.7.0
func GetPfamProteinMatches(accession string) ([]GraphicFeature, error)
func GetSequenceFeatures ¶ added in v1.7.0
func GetSequenceFeatures(accession string) ([]GraphicFeature, error)
type GraphicMetadata ¶ added in v1.5.0
type GraphicResponse ¶ added in v1.5.0
type GraphicResponse struct { Length json.Number `json:"length"` Metadata GraphicMetadata `json:"metadata"` Motifs []GraphicFeature `json:"motifs"` Regions []GraphicFeature `json:"regions"` }
func GetLocalGraphicData ¶ added in v1.5.0
func GetLocalGraphicData(filename string) (*GraphicResponse, error)
type InterProEntry ¶ added in v1.7.0
type InterProEntry struct { Metadata InterProMetaData `json:"metadata"` Matches []InterProMatch `json:"proteins"` ExtraFields InterProExtraField `json:"extra_fields"` }
type InterProEntryResponse ¶ added in v1.7.0
type InterProEntryResponse struct {
Entries []InterProEntry `json:"results"`
}
type InterProExtraField ¶ added in v1.7.0
type InterProExtraField struct {
ShortName string `json:"short_name"`
}
type InterProFeature ¶ added in v1.7.0
type InterProFeature struct { Accession string `json:"accession"` Database string `json:"source_database"` Locations []InterProLocation `json:"locations"` }
type InterProFragment ¶ added in v1.7.0
type InterProLocation ¶ added in v1.7.0
type InterProLocation struct {
Fragments []InterProFragment `json:"fragments"`
}
type InterProMatch ¶ added in v1.7.0
type InterProMatch struct {
Locations []InterProLocation `json:"entry_protein_locations"`
}
type InterProMetaData ¶ added in v1.7.0
type UniProtResponse ¶ added in v1.7.0
type UniProtResponse struct {
Sequence UniProtSequence `json:"sequence"`
}
type UniProtSequence ¶ added in v1.7.0
type UniProtSequence struct {
Length int `json:"length"`
}
Click to show internal directories.
Click to hide internal directories.