gofasta

package module
v0.0.0-...-e776ef6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2015 License: MIT Imports: 8 Imported by: 7

README

===============================================================================
gofasta - Process FASTA files in Go
===============================================================================

-------------------------------------------------------------------------------
About
-------------------------------------------------------------------------------

gofasta is library for processing FASTA [1] files and extracting sequences from
indexed FASTA files in faidx [2] format. 

-------------------------------------------------------------------------------
Install
-------------------------------------------------------------------------------

Fetch from github::

    $ go get github.com/aebruno/gofasta/...

-------------------------------------------------------------------------------
Usage
-------------------------------------------------------------------------------

Extract sequences from indexed fasta file::

    $ faidx /genomes/hg19.fa chr1:1000-100000

Cat FASTA files::

    $ fastcat -fasta test.fasta --count
    $ fastcat --help
    Usage of fastcat:
      -count=false: count sequences
      -fasta="": path to FASTA file
      -id=false: output ids
      -seq=false: output sequences

-------------------------------------------------------------------------------
References
-------------------------------------------------------------------------------

[1] http://en.wikipedia.org/wiki/FASTA_format 

[2] http://samtools.sourceforge.net/samtools.shtml

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimpleParser

func SimpleParser(file *os.File) chan *SeqRecord

Types

type Faidx

type Faidx struct {
	IndexCache map[string][]int64
	// contains filtered or unexported fields
}

func NewFaidx

func NewFaidx(fileName string) (*Faidx, error)

func (*Faidx) Close

func (f *Faidx) Close() error

func (*Faidx) Fetch

func (f *Faidx) Fetch(chr string, start, end int) ([]byte, error)

type SeqRecord

type SeqRecord struct {
	Id  string
	Seq string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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