Documentation ¶
Overview ¶
Package to read and write SAM format files
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Regex = regexp.MustCompile(`^[\n\r]*[@[A-Z][A-Z][ \t]+[\S \t]+[\n\r]]*`)
)
Functions ¶
func NewReader ¶
func NewReader(f file.SectionReader) seq.ReadRewinder
Returns a new Sam format reader using r.
func NewReaderName ¶
func NewReaderName(name string) (r seq.ReadRewinder, err error)
Returns a new Sam format reader using a filename.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Sam sequence format reader type.
func (*Reader) GetReadOffset ¶
Read a single sequence and return read offset for indexing.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Fasta sequence format writer type.
func NewWriter ¶
func NewWriter(f io.WriteCloser, width int) *Writer
Returns a new sam format writer using f.
func NewWriterName ¶
Returns a new sam format writer using a filename, truncating any existing file. If appending is required use NewWriter and os.OpenFile.
Click to show internal directories.
Click to hide internal directories.