export

package
v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0, BSD-3-Clause, + 1 more Imports: 18 Imported by: 0

Documentation

Overview

Package export provides functions for exporting common file formats into the Antha File type.

Index

Constants

View Source
const (
	// ANTHAPATH indicates a file should be exported into the $HOME/.antha directory.
	ANTHAPATH bool = true
	// LOCAL indicates a file should be exported into the directory from which the program is run.
	LOCAL bool = false
)

Variables

This section is empty.

Functions

func Binary

func Binary(data []byte, filename string) (wtype.File, error)

Binary export bytes into a file.

func CSV

func CSV(records [][]string, filename string) (wtype.File, error)

CSV exports a matrix of string data as a csv file.

func Fasta

func Fasta(dir string, seq wtype.BioSequence) (wtype.File, string, error)

Fasta exports a sequence to a txt file in Fasta format.

func FastaAndSeqReports

func FastaAndSeqReports(assemblyparameters enzymes.Assemblyparameters) (fastafiles []wtype.File, summaryfiles []wtype.File, err error)

FastaAndSeqReports simultaneously exports multiple Fasta files and summary files for a TypeIIs assembly design.

func FastaSerial

func FastaSerial(makeinanthapath bool, dir string, seqs []wtype.DNASequence) (wtype.File, string, error)

FastaSerial exports multiple sequences in fasta format into a specified txt file. The makeinanthapath argument specifies whether a copy of the file should be saved locally or to the anthapath in a specified sub directory directory.

func FastaSerialfromMultipleAssemblies

func FastaSerialfromMultipleAssemblies(dirname string, multipleassemblyparameters []enzymes.Assemblyparameters) (wtype.File, string, error)

FastaSerialfromMultipleAssemblies simultaneously export a single Fasta file containing the assembled sequences for a series of TypeIIs assembly designs.

func GenbankSerial

func GenbankSerial(makeinanthapath bool, dir string, seqs []wtype.DNASequence) (wtype.File, string, error)

GenbankSerial exports multiple sequences into a multi-record Genbank format file The makeinanthapath argument specifies whether a copy of the file should be saved locally or to the anthapath in a specified sub directory directory.

func JSON

func JSON(data interface{}, filename string) (anthafile wtype.File, err error)

JSON exports any data as a json object in a file.

func Reader

func Reader(reader io.Reader, filename string) (wtype.File, error)

Reader export an io.Reader into a file.

func SequenceReport

func SequenceReport(dir string, seq wtype.BioSequence) (wtype.File, string, error)

SequenceReport exports a standard report of sequence properties to a txt file.

func TextFile

func TextFile(filename string, lines []string) (wtype.File, error)

TextFile exports data in the format of a set of strings to a file. Each entry in the set of strings represents a line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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