terms

package
v0.0.0-...-f9e32f2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package terms maps gene identifiers between types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapperCMD

func MapperCMD(options map[string]interface{})

MapperCMD is a wrapper for the CLI.

Types

type Mapper

type Mapper struct {
	Converted           map[string]string
	FromType            string
	PossibleConversions map[string][]string

	ToType      string
	Unconverted []string
	// contains filtered or unexported fields
}

Mapper structure for setting options for mapping and retrieving results.

func CreateMapper

func CreateMapper() *Mapper

CreateMapper creates a structure for mapping between geen identifiers.

func (*Mapper) Convert

func (m *Mapper) Convert(ids []string) error

Convert gene identifiers from Map.FromType to Map.ToType. Types must be one of (case insensitive) accession (uniprot, eg P31946), biogrid, ensemblgene, ensemblprotein, entrez (gene ID), hgnc, id (uniprot, eg 1433B_HUMAN), refseqmrna, refseqprotein or symbol.

func (*Mapper) Load

func (m *Mapper) Load(file string)

Load mapping file in JSON format.

Jump to

Keyboard shortcuts

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