uniprot

package
v0.0.0-...-40008dc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package uniprot will get uniprot entries for a list of IDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entries

type Entries map[string]Entry

Entries is a map of UniProt IDs with entry information.

func GetProteins

func GetProteins(ids []string, url string) *Entries

GetProteins returns regions

type Entry

type Entry struct {
	Accession          string    `json:"accession"`
	Features           []Feature `json:"features"`
	Gene               Gene
	ID                 string   `json:"id"`
	Organism           Organism `json:"organism"`
	SecondaryAccession []string `json:"secondaryAccession"`
	Sequence           Sequence `json:"sequence"`
}

Entry contains UniProt information for a specific ID.

func (*Entry) ParseAdditionalFields

func (e *Entry) ParseAdditionalFields(body []byte)

ParseAdditionalFields parses other

type Feature

type Feature struct {
	Begin       int    `json:"begin,string"`
	Category    string `json:"category"`
	Description string `json:"description"`
	End         int    `json:"end,string"`
	Type        string `json:"type"`
}

Feature is a sequence topology feature

type Gene

type Gene struct {
	Symbol   string
	Synonyms []string
}

Gene name information.

type Organism

type Organism struct {
	Common     string
	Names      []OrganismName `json:"names"`
	Scientific string
	Taxonomy   int `json:"taxonomy"`
}

Organism information for an entry.

type OrganismName

type OrganismName struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

OrganismName can include common and scientific names.

type Sequence

type Sequence struct {
	Length int `json:"length"`
	Mass   int `json:"mass"`
}

Sequence contains amino acid sequence information.

Jump to

Keyboard shortcuts

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