Documentation ¶
Overview ¶
Package export provides functions for exporting common file formats into the Antha File type.
Index ¶
- Constants
- func Binary(data []byte, filename string) (wtype.File, error)
- func CSV(records [][]string, filename string) (wtype.File, error)
- func Fasta(dir string, seq wtype.BioSequence) (wtype.File, string, error)
- func FastaAndSeqReports(assemblyparameters enzymes.Assemblyparameters) (fastafiles []wtype.File, summaryfiles []wtype.File, err error)
- func FastaSerial(makeinanthapath bool, dir string, seqs []wtype.DNASequence) (wtype.File, string, error)
- func FastaSerialfromMultipleAssemblies(dirname string, multipleassemblyparameters []enzymes.Assemblyparameters) (wtype.File, string, error)
- func GenbankSerial(makeinanthapath bool, dir string, seqs []wtype.DNASequence) (wtype.File, string, error)
- func JSON(data interface{}, filename string) (anthafile wtype.File, err error)
- func Reader(reader io.Reader, filename string) (wtype.File, error)
- func SequenceReport(dir string, seq wtype.BioSequence) (wtype.File, string, error)
- func TextFile(filename string, lines []string) (wtype.File, error)
Constants ¶
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 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 SequenceReport ¶
SequenceReport exports a standard report of sequence properties to a txt file.
Types ¶
This section is empty.