Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Observation = Observation EpidemicEvent
- data ReconstructedTree
- maybeReconstructedTree :: EpidemicTree -> Either String ReconstructedTree
- newtype PointProcessEvents = PointProcessEvents [Observation]
- pointProcessEvents :: EpidemicTree -> PointProcessEvents
- reconstructedTreeEvents :: ReconstructedTree -> [Observation]
- observedEvents :: [EpidemicEvent] -> Either String [Observation]
- aggregated :: [TimeInterval] -> [TimeInterval] -> [Observation] -> [Observation]
Documentation
newtype Observation Source #
A wrapper for an EpidemicEvent
to indicate that this is an even that was
observed rather than just an event of the epidemic process.
Instances
data ReconstructedTree Source #
A representation of the reconstructed tree, ie the tree where the leaves correspond to sequenced observations.
Instances
Eq ReconstructedTree Source # | |
Defined in Epidemic.Types.Observations (==) :: ReconstructedTree -> ReconstructedTree -> Bool # (/=) :: ReconstructedTree -> ReconstructedTree -> Bool # | |
Show ReconstructedTree Source # | |
Defined in Epidemic.Types.Observations showsPrec :: Int -> ReconstructedTree -> ShowS # show :: ReconstructedTree -> String # showList :: [ReconstructedTree] -> ShowS # | |
Newick ReconstructedTree Source # | |
Defined in Epidemic.Types.Newick asNewickString :: (AbsoluteTime, Person) -> ReconstructedTree -> Maybe (Builder, [EpidemicEvent]) Source # |
maybeReconstructedTree :: EpidemicTree -> Either String ReconstructedTree Source #
The reconstructed phylogeny obtained by pruning an EpidemicTree
which
contains represents the transmission tree of the epidemic. In the case where
there are no sequenced samples in the epidemic then there is no tree to
reconstruct which is why this function is in the either monad.
newtype PointProcessEvents Source #
A representation of the events that can be observed in an epidemic but which are not included in the reconstructed tree, ie the unsequenced observations.
pointProcessEvents :: EpidemicTree -> PointProcessEvents Source #
Extract the events from an epidemic tree which are observed but not part of the reconstructed tree, ie the ones that are not sequenced.
reconstructedTreeEvents :: ReconstructedTree -> [Observation] Source #
A sorted list of all of the observations in the reconstructed tree.
observedEvents :: [EpidemicEvent] -> Either String [Observation] Source #
The events that were observed during the epidemic, ie those in the reconstructed tree and any unsequenced samples. If this is not possible an error message will be returned.
aggregated :: [TimeInterval] -> [TimeInterval] -> [Observation] -> [Observation] Source #
Aggregate the sequenced and unsequenced individual level samples