Safe Haskell | None |
---|---|
Language | Haskell2010 |
SequenceTools.PileupCaller
Synopsis
- callToDosage :: Char -> Char -> Call -> Maybe Int
- data Call
- callGenotypeFromPileup :: CallingMode -> Int -> String -> IO Call
- callMajorityAllele :: Bool -> Int -> String -> IO Call
- findMajorityAlleles :: String -> [Char]
- callRandomAllele :: String -> IO Call
- callRandomDiploid :: String -> IO Call
- dosageToEigenstratGeno :: Bool -> Maybe Int -> GenoEntry
- freqSumToEigenstrat :: Bool -> FreqSumEntry -> (EigenstratSnpEntry, GenoLine)
- data CallingMode
- data TransitionsMode
- filterTransitions :: Monad m => TransitionsMode -> Pipe FreqSumEntry FreqSumEntry m ()
- cleanSSdamageAllSamples :: Char -> Char -> [String] -> [[Strand]] -> [String]
Documentation
callToDosage :: Char -> Char -> Call -> Maybe Int Source #
a function to turn a call into the dosage of non-reference alleles
A datatype to represent a single genotype call
Constructors
HaploidCall Char | |
DiploidCall Char Char | |
MissingCall |
callGenotypeFromPileup :: CallingMode -> Int -> String -> IO Call Source #
Make a call from alleles
callMajorityAllele :: Bool -> Int -> String -> IO Call Source #
Sample the majority allele, or one of the majority alleles
findMajorityAlleles :: String -> [Char] Source #
Find the majority allele(s)
dosageToEigenstratGeno :: Bool -> Maybe Int -> GenoEntry Source #
convert a Dosage to an eigenstrat-encoded genotype
freqSumToEigenstrat :: Bool -> FreqSumEntry -> (EigenstratSnpEntry, GenoLine) Source #
convert a freqSum entry to an eigenstrat SNP entry
data CallingMode Source #
A datatype to specify the calling mode
Constructors
MajorityCalling Bool | |
RandomCalling | |
RandomDiploidCalling |
data TransitionsMode Source #
Constructors
TransitionsMissing | |
SkipTransitions | |
SingleStrandMode | |
AllSites |
Instances
Eq TransitionsMode Source # | |
Defined in SequenceTools.PileupCaller Methods (==) :: TransitionsMode -> TransitionsMode -> Bool # (/=) :: TransitionsMode -> TransitionsMode -> Bool # |
filterTransitions :: Monad m => TransitionsMode -> Pipe FreqSumEntry FreqSumEntry m () Source #