data

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: GPL-3.0 Imports: 13 Imported by: 4

Documentation

Index

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

Functions

func GetProtID

func GetProtID(symbol string) (string, error)

func GetProtLength added in v1.7.0

func GetProtLength(accession string) (int, error)

func GetProtMapping

func GetProtMapping(dbname, geneid string) (string, error)

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 GraphicMetadata struct {
	Description string `json:"description"`
	Identifier  string `json:"identifier"`
}

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 InterProFragment struct {
	Start      json.Number `json:"start"`
	End        json.Number `json:"end"`
	SeqFeature string      `json:"seq_feature"`
}

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 InterProMetaData struct {
	Accession string `json:"accession"`
	Name      string `json:"name"`
	Type      string `json:"type"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL