heatitup-complete-0.5.3.3: Find and annotate ITDs with assembly or read pair joining.

Safe HaskellNone
LanguageHaskell2010

Utility

Synopsis

Documentation

findWithError :: (Eq a, Ord a, Show a) => a -> Map a b -> b Source #

Return a specific error when the text key is not found.

bamToFasta :: Maybe AccessionMap -> Maybe MatchMap -> Text -> Maybe Headers -> BamRow -> [Text] Source #

Convert a line in a bam file to a fasta format for duplication input. Uses values from the maps if Assembly.

appendHeader :: Maybe Headers -> Line -> Line Source #

Append a header to the end of the header line in a fasta row.

fastaToMap :: Char -> [FastaSequence] -> AccessionMap Source #

Create a mapping from accession number to sequence. Trinity outputs ' ' as a separator.

getMatchMap :: [BamRow] -> MatchMap Source #

Get a mapping from accession to if the cigar has all matching.

nub' :: (Eq a, Ord a) => [a] -> [a] Source #

Better nub.

decodeSAMFlag :: Int -> String Source #

Decode a SAM flag into the bit representation (as a string).