Documentation ¶
Overview ¶
package fasta converts DNA sequence files in FASTA format into a set of DNA sequences.
Index ¶
- func FASTAtoLinearDNASeqs(fastaFile wtype.File) (seqs []wtype.DNASequence, err error)
- func FASTAtoPlasmidDNASeqs(file wtype.File) (seqs []wtype.DNASequence, err error)
- func FastaContentstoDNASequences(data []byte) (seqs []wtype.DNASequence, err error)
- func FastaToDNASequences(sequenceFile wtype.File) (seqs []wtype.DNASequence, err error)
- func Fastatocsv(inputfilename wtype.File, outputfileprefix string) (csvfile *os.File, err error)
- func RetrieveSeqFromFASTA(id string, fastaFile wtype.File) (seq wtype.DNASequence, err error)
- type Fasta
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 RetrieveSeqFromFASTA ¶
This will retrieve seq from FASTA file using the sequence ID found in the file