Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllAreEqual ¶
AllAreEqual returns true if two []pFasta data structures are determined to be equal, false otherwise. Two []pFasta data structures are said to be equal if: (1) they are of the same length. (2) Each component pFasta struct in 'a' is equal to the pFasta struct at the corresponding index in 'b'. See the documentation for 'Equal' for a complete definition of the criterion for pFasta struct equality. Note that pFasta equality is parameterized by a user-specified relative 'precision'.
func IsEqual ¶
IsEqual returns true if two input pFasta structs are 'equal', false otherwise. Two input pFasta structs are said to be equal if they have the same name, have the same number of bases in their sequence, and for each base, the base probabilities are equal within a user-specified level of relative precision.
func ReadPfaHeader ¶
ReadPfaHeader parses the header of a pFasta format file from an input *bufio.Reader.
Types ¶
type PFasta ¶
type PFasta struct { Name string Seq []pDna.Float32Base }
PFasta is the probabilistic analog of fasta, which represents sequences of pDna bases rather than dna bases.
func Extract ¶
func Extract(input []PFasta, start int, end int, outputName string, chrom string, takeCoords bool) PFasta
Extract returns a new pFa that is a subsequence of the input pFa, defined by a start (inclusive) and end (exclusive) position, like in bed; makes memory copy
func ExtractBed ¶
ExtractBed returns a pFa that has a list of subsequences of the input pFa defined by the regions in the bed region takeCoords specifies if name fields in output should be original names in region or identified by ChromStart and ChromEnd