collapse-duplication-0.4.0.1: Collapse the duplication output into clones and return their frequencies.

Safe HaskellNone
LanguageHaskell2010

Collapse

Synopsis

Documentation

printToInfo :: PrintITD -> ITDInfo Source #

Convert PrintITD to ITDInfo.

gather :: [ITDInfo] -> [[[ITDInfo]]] Source #

Gather all reads of the same subject, then same structure (same duplication and spacer location and length) together.

gatherWiggle :: Method -> Wiggle -> [ITDInfo] -> [[[ITDInfo]]] Source #

Gather all reads of approximately the same subject then same structure (same duplication and spacer location and length) together, depending on the amount of wiggle room for the whole set, then collect by sample.

getLabelMap :: [ITDInfo] -> Map Label Int Source #

Gather all reads of the same label together into a map of how large a label is.

collapse :: ID -> Int -> [ITDInfo] -> PrintWithCloneID Source #

Collapse a list of reads into one read with some additional information about the group, assuming the group was gathered.

addCloneIDs :: Entity -> ID -> Int -> [ITDInfo] -> [PrintWithCloneID] Source #

Add a new clone label to the reads: unique IDs across the input.