eutils

package
v0.0.0-...-77310ea Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleId

type ArticleId struct {
	IdType  string
	IdTypeN int
	Value   int
}

type Author

type Author struct {
	Name     string
	AuthType string
}

type Authors

type Authors struct {
	Authors    []Author
	LastAuthor string
}

type DocumentSummary

type DocumentSummary struct {
	Uid             string `xml:"uid,attr"`
	PubDate         string
	Source          string
	Authors         []Authors
	Title           string
	SortTitle       string
	Volume          string
	Issue           string
	Pages           string
	Lang            string `xml:"Lang>string"`
	NlmUniqueID     int
	ISSN            string
	ESSN            string
	PubType         string `xml:"PubType>flag"`
	RecordStatus    string
	PubStatus       int
	ArticleIds      []ArticleId
	History         []PubMedPubDate
	Attributes      string `xml:"Attributes>flag"`
	PmcRefCount     int
	FullJournalName string
	ViewCount       int
	DocType         string
	SortPubDate     string
	SortFirstAuthor string

	Name              string
	Description       string
	Status            int
	CurrentId         int
	Chromosome        int
	GeneticSource     string
	OtherAliases      string
	OtherDesignations string
	Mim               int `xml:"Mim>int"`
	GenomicInfo
	Summary  string
	ChrSort  int
	ChrStart int
	Organism
	LocationHist []LocationHistType
}

func GeneSummary

func GeneSummary(id string) (*DocumentSummary, error)

type DocumentSummarySet

type DocumentSummarySet struct {
	DbBuild         string
	Status          string `xml:"status,attr"`
	DocumentSummary []DocumentSummary
}

type GenomicInfo

type GenomicInfo struct {
	ChrLoc    int
	ChrAccVer string
	ChrStart  int
	ChrEnd    int
	ExonCount int
}

type Id

type Id struct {
	Id string `xml:",int"`
}

type LocationHistType

type LocationHistType struct {
	AnnotationRelease int
	AssemblyAccVer    string
	ChrAccVer         string
	ChrStart          int
	ChrEnd            int
}

type Organism

type Organism struct {
	ScientificName string
	CommonName     string
	TaxId          int
}

type PubMedPubDate

type PubMedPubDate struct {
	PubStatus string
	Date      string
}

type SearchResult

type SearchResult struct {
	Count    int
	RetMax   int
	RetStart int
	IdList   []int `xml:"IdList>Id"`
}
func Search(terms []string) (*SearchResult, error)

type SummaryResult

type SummaryResult struct {
	DocumentSummarySet DocumentSummarySet
}

func Summary

func Summary(r *SearchResult) (*SummaryResult, error)

type TermSet

type TermSet struct {
	Term    string
	Field   string
	Count   int
	Explode string
	OP      string
}

type Translation

type Translation struct {
	From string
	To   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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