Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- findWithError :: (Eq a, Ord a, Show a) => a -> Map a b -> b
- bamToFasta :: Maybe AccessionMap -> Maybe MatchMap -> Text -> Maybe Headers -> BamRow -> [Text]
- appendHeader :: Maybe Headers -> Line -> Line
- fastaToMap :: Char -> [FastaSequence] -> AccessionMap
- getMatchMap :: [BamRow] -> MatchMap
- nub' :: (Eq a, Ord a) => [a] -> [a]
- decodeSAMFlag :: Int -> String
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.
decodeSAMFlag :: Int -> String Source #
Decode a SAM flag into the bit representation (as a string).