idmapper

package
v0.0.0-...-82247c3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TargetColumns = []string{"UniProtKB-AC", "UniProtKB-ID", "GeneID", "Ensembl", "Symbol", "LocusTag", "Synonyms"}

Functions

func Load

func Load(mappingFileDir string) map[string]*ConversionTable

Types

type ConversionTable

type ConversionTable struct {
	MappingTable map[string]map[string]*MappingEntry
}

type IdMapper

type IdMapper struct {
	Tables  map[string]*ConversionTable
	Species string
}

func NewIdMapper

func NewIdMapper(resourceFile string) (mapper IdMapper)

func (IdMapper) Map

func (mapper IdMapper) Map(values []string, filter []string) MappingResult

type Mapper

type Mapper interface {
	Map(values []string, filter []string) MappingResult
}

type MappingEntry

type MappingEntry struct {
	In      string                 `json:"in"`
	InType  string                 `json:"inType"`
	Species string                 `json:"species"`
	Matches map[string]interface{} `json:"matches"`
}

type MappingResult

type MappingResult struct {
	Matched   []MappingEntry `json:"matched"`
	Unmatched []string       `json:"unmatched"`
}

Jump to

Keyboard shortcuts

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