sequence-formats-1.7.1: A package with basic parsing utilities for several Bioinformatic data formats.
Safe HaskellSafe-Inferred
LanguageHaskell2010

SequenceFormats.RareAlleleHistogram

Description

A module to read and write allele sharing histograms, as defined here: https://rarecoal-docs.readthedocs.io/en/latest/rarecoal.html#histogram-files

Synopsis

Documentation

data RareAlleleHistogram Source #

A datatype to represent an Allele Sharing Histogram:

Constructors

RareAlleleHistogram 

Fields

readHistogramFromHandle :: MonadIO m => Handle -> m RareAlleleHistogram Source #

Read a histogram from a File Handle.

type SitePattern = [Int] Source #

A simple type synonym for the SitePattern, represented as a list of Integers that represents each pattern across the branches.

readHistogram :: MonadIO m => FilePath -> m RareAlleleHistogram Source #

Read a histogram from a FilePath

writeHistogramStdOut :: MonadIO m => RareAlleleHistogram -> m () Source #

Write a histogram to the stdout

writeHistogramFile :: MonadIO m => FilePath -> RareAlleleHistogram -> m () Source #

Write a histogram to a file

showSitePattern :: SitePattern -> String Source #

A simple function to convert a pattern into a String.