Documentation ¶
Overview ¶
Package blastm8 allows reading and parsing of m8-formatted blast files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Procfile ¶
func Procfile(iblast *bufio.Reader, queryChan chan<- *BlastBlock)
ProcFile reads the query results from a blast m8-formatted file and passes the results to the queryChan channel. What is passed is the raw block of lines corresponding to a single query in the blast file.
Types ¶
type BlastBlock ¶
type BlastBlock struct {
// contains filtered or unexported fields
}
BlastBlock represents a block of Blast hits
type Header ¶
type Header []byte
Header represents a Query or Subject -- typical headers of nr/nt as they appear in blast-m8 results
type Hit ¶
type Hit struct {
// contains filtered or unexported fields
}
Hit gives single Blast hit information
type QueryRes ¶
QueryRes has the needed information about the hits of a query
func ParseRecord ¶
func ParseRecord(bb BlastBlock, scLim float64) *QueryRes
ParseRecord parses the lines for a query (blast m8-formatted) and write the information in a QueryRes Only the lines with bit score greater than the best score * scLim are processed