databio

package module
v0.0.0-...-457a45f Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

README

datab.io

Please cite this work as

A web portal that does automated identifier translation for bioinformatics.

Use case

Ever find a dataset that looked amazing? Only problem is that it uses Gene IDs that you aren't familiar with... With https://datab.io you can just upload the data file, it will automatically determine what identifiers are present and what they can be translated into. It'll then do the translation for you and export a ZIP file containing everything you need to include in a publication to ensure data provenance including methodological descriptions with citations, versions and timestamps.

License

GPLv3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UploadDirectory is the path to place uploaded files.
	UploadDirectory, _ = filepath.Abs("./uploads")

	// ResultDirectory is the path to place result metadata files.
	ResultDirectory, _ = filepath.Abs("./results")

	// DownloadDirectory is the path to place downloadable files.
	DownloadDirectory, _ = filepath.Abs("./downloads")

	// SourceMapsDirectory is the path to source mapping files.
	SourceMapsDirectory, _ = filepath.Abs("./sources")
)

Functions

func CheckDirectories

func CheckDirectories() error

CheckDirectories creates necessary data directories for processing uploads.

func GetDownloadPath

func GetDownloadPath(filename string) string

GetDownloadPath returns the full path and URL to a downloadable file.

func GetResult

func GetResult(token, resType string, data interface{}) (bool, error)

GetResult reads a result from the specified token. Data argument should be a pointer receiver.

func GetResultPath

func GetResultPath(token string) string

GetResultPath returns the full path to a result file.

func GetUploadPath

func GetUploadPath(filename string) string

GetUploadPath returns the full path to an uploaded file.

func OpenSourceMap

func OpenSourceMap(filename string) (*os.File, error)

OpenSourceMap opens a source mapping file and returns it.

func PutResult

func PutResult(token, resType string, data ...interface{}) error

PutResult writes a result to the specified token. Either a single json-serializable data argument can be provided, or multiple interleaved key-value pairs.

Types

This section is empty.

Directories

Path Synopsis
cmd
web
Command web runs the web service that handles user interactions:
Command web runs the web service that handles user interactions:
Package formats describes the supported data input/output formats.
Package formats describes the supported data input/output formats.

Jump to

Keyboard shortcuts

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