Skip to content

mnsmar/fasta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

fasta

Installation

go get github.com/mnsmar/fasta

Description

A library that provides handling of FASTA-encoded files for the Go language.

Example

f := "foo.fa"
r := NewReader(os.Open(f))

for {
    record, err := r.Read()
    if err == io.EOF {
        break
    }
    if err != nil {
        log.Fatal(err)
    }

    fmt.Printf("%s\n", record.Name())
    fmt.Printf("%s\n", record.Seq())
}

About

Convenient handling of FASTA-encoded files for the Go language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages