chr: common homologous regions
This package contains functions for fast search of homologous regions shared by multiple closely related genomes. The interface of chr consists of the Intersect function and the Parameters struct:
chr.Intersect(chr.Parameters)The function returns a slice of pointers to fasta sequences []*fasta.Sequence. The type fasta is defined in the fasta package.
type Parameters struct {
Reference []*fasta.Sequence
QueryPaths []string
Threshold float64
ShustrPval float64
NumThreads int
}Fields of this data structure contain parameters used to call Intersect(). The parameters include:
- reference slice of
fastasequences - paths to queries
- a threshold, the minimum fraction of intersecting genomes
- a p-value of the shustring length (needed for
sus.Quantile) - number of threads (maximum threads used for parallel query processing)