pfam

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: 5 Imported by: 0

Documentation

Overview

Package pfam will get regions for a list of UniProt IDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	End      int      `json:"end"`
	Metadata Metadata `json:"metadata"`
	Name     string
	Start    int `json:"start"`
}

Domain contains protein domain information.

type Features

type Features map[string]Regions

Features is a map of UniProt IDs with domain and motif information.

func GetRegions

func GetRegions(ids []string, url string) *Features

GetRegions returns regions

type Metadata

type Metadata struct {
	Identified string `json:"identifier"`
}

Metadata for domain.

type Motif

type Motif struct {
	End   int    `json:"end"`
	Name  string `json:"type"`
	Start int    `json:"start"`
}

Motif contains protein motif/region information.

type Regions

type Regions struct {
	Domains []Domain `json:"regions"`
	Motifs  []Motif  `json:"motifs"`
}

Regions contains sequence level domain and region information.

type Response

type Response []Regions

Response for data received from Pfam.

func (*Response) AddDomainNames

func (r *Response) AddDomainNames()

AddDomainNames attaches the metadata identfier to the Domain struct.

Jump to

Keyboard shortcuts

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