fasta

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: 8 Imported by: 3

Documentation

Overview

package fasta converts DNA sequence files in FASTA format into a set of DNA sequences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FASTAtoLinearDNASeqs

func FASTAtoLinearDNASeqs(fastaFile wtype.File) (seqs []wtype.DNASequence, err error)

This will retrieve seq from FASTA file

func FASTAtoPlasmidDNASeqs

func FASTAtoPlasmidDNASeqs(file wtype.File) (seqs []wtype.DNASequence, err error)

This will retrieve sequences from a FASTA file of type wtype.File and set all sequences to plasmids

func FastaContentstoDNASequences

func FastaContentstoDNASequences(data []byte) (seqs []wtype.DNASequence, err error)

Convert the contents of a sequence file in Fasta format to an array of DNASequence. If the header does not contain the key words PLASMID, CIRCULAR or VECTOR the sequence will be assumed to be linear.

func FastaToDNASequences

func FastaToDNASequences(sequenceFile wtype.File) (seqs []wtype.DNASequence, err error)

Convert a sequence file in Fasta format to an array of DNASequence. If the header does not contain the key words PLASMID, CIRCULAR or VECTOR the sequence will be assumed to be linear.

func Fastatocsv

func Fastatocsv(inputfilename wtype.File, outputfileprefix string) (csvfile *os.File, err error)

func RetrieveSeqFromFASTA

func RetrieveSeqFromFASTA(id string, fastaFile wtype.File) (seq wtype.DNASequence, err error)

This will retrieve seq from FASTA file using the sequence ID found in the file

Types

type Fasta

type Fasta struct {
	Id   string
	Desc string
	Seq  string
}

Fasta represents the intermediate structure containing contents of Fasta file as strings

Jump to

Keyboard shortcuts

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