poseidon-hs-1.6.0.0: A package with tools for working with Poseidon genotype data
Safe HaskellSafe-Inferred
LanguageHaskell2010

Poseidon.Janno

Synopsis

Documentation

data JannoRow Source #

A data type to represent a sample/janno file row See https://github.com/poseidon-framework/poseidon2-schema/blob/master/janno_columns.tsv for more details

Constructors

JannoRow 

Fields

Instances

Instances details
Generic JannoRow Source # 
Instance details

Defined in Poseidon.Janno

Associated Types

type Rep JannoRow :: Type -> Type #

Methods

from :: JannoRow -> Rep JannoRow x #

to :: Rep JannoRow x -> JannoRow #

Show JannoRow Source # 
Instance details

Defined in Poseidon.Janno

DefaultOrdered JannoRow Source # 
Instance details

Defined in Poseidon.Janno

Methods

headerOrder :: JannoRow -> Header

FromNamedRecord JannoRow Source # 
Instance details

Defined in Poseidon.Janno

Methods

parseNamedRecord :: NamedRecord -> Parser JannoRow

ToNamedRecord JannoRow Source # 
Instance details

Defined in Poseidon.Janno

Methods

toNamedRecord :: JannoRow -> NamedRecord

Generic JannoRow Source # 
Instance details

Defined in Poseidon.Janno

Associated Types

type Code JannoRow :: [[Type]]

Methods

from :: JannoRow -> Rep JannoRow

to :: Rep JannoRow -> JannoRow

HasDatatypeInfo JannoRow Source # 
Instance details

Defined in Poseidon.Janno

Associated Types

type DatatypeInfoOf JannoRow :: DatatypeInfo

Methods

datatypeInfo :: proxy JannoRow -> DatatypeInfo (Code JannoRow)

Eq JannoRow Source # 
Instance details

Defined in Poseidon.Janno

type Rep JannoRow Source # 
Instance details

Defined in Poseidon.Janno

type Rep JannoRow = D1 ('MetaData "JannoRow" "Poseidon.Janno" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (C1 ('MetaCons "JannoRow" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "jPoseidonID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "jGeneticSex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GeneticSex)) :*: (S1 ('MetaSel ('Just "jGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ListColumn GroupName)) :*: (S1 ('MetaSel ('Just "jAlternativeIDs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoAlternativeID))) :*: S1 ('MetaSel ('Just "jRelationTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoRelationTo)))))) :*: ((S1 ('MetaSel ('Just "jRelationDegree") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoRelationDegree))) :*: (S1 ('MetaSel ('Just "jRelationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoRelationType))) :*: S1 ('MetaSel ('Just "jRelationNote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoRelationNote)))) :*: (S1 ('MetaSel ('Just "jCollectionID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoCollectionID)) :*: (S1 ('MetaSel ('Just "jCountry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoCountry)) :*: S1 ('MetaSel ('Just "jCountryISO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoCountryISO)))))) :*: (((S1 ('MetaSel ('Just "jLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoLocation)) :*: (S1 ('MetaSel ('Just "jSite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoSite)) :*: S1 ('MetaSel ('Just "jLatitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoLatitude)))) :*: (S1 ('MetaSel ('Just "jLongitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoLongitude)) :*: (S1 ('MetaSel ('Just "jDateType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDateType)) :*: S1 ('MetaSel ('Just "jDateC14Labnr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoDateC14Labnr)))))) :*: ((S1 ('MetaSel ('Just "jDateC14UncalBP") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoDateC14UncalBP))) :*: (S1 ('MetaSel ('Just "jDateC14UncalBPErr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoDateC14UncalBPErr))) :*: S1 ('MetaSel ('Just "jDateBCADStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDateBCADStart)))) :*: (S1 ('MetaSel ('Just "jDateBCADMedian") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDateBCADMedian)) :*: (S1 ('MetaSel ('Just "jDateBCADStop") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDateBCADStop)) :*: S1 ('MetaSel ('Just "jDateNote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDateNote))))))) :*: ((((S1 ('MetaSel ('Just "jMTHaplogroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoMTHaplogroup)) :*: (S1 ('MetaSel ('Just "jYHaplogroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoYHaplogroup)) :*: S1 ('MetaSel ('Just "jSourceTissue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoSourceTissue))))) :*: (S1 ('MetaSel ('Just "jNrLibraries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoNrLibraries)) :*: (S1 ('MetaSel ('Just "jLibraryNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoLibraryName))) :*: S1 ('MetaSel ('Just "jCaptureType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoCaptureType)))))) :*: ((S1 ('MetaSel ('Just "jUDG") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoUDG)) :*: (S1 ('MetaSel ('Just "jLibraryBuilt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoLibraryBuilt)) :*: S1 ('MetaSel ('Just "jGenotypePloidy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoGenotypePloidy)))) :*: (S1 ('MetaSel ('Just "jDataPreparationPipelineURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDataPreparationPipelineURL)) :*: (S1 ('MetaSel ('Just "jEndogenous") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoEndogenous)) :*: S1 ('MetaSel ('Just "jNrSNPs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoNrSNPs)))))) :*: (((S1 ('MetaSel ('Just "jCoverageOnTargets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoCoverageOnTargets)) :*: (S1 ('MetaSel ('Just "jDamage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoDamage)) :*: S1 ('MetaSel ('Just "jContamination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoContamination))))) :*: (S1 ('MetaSel ('Just "jContaminationErr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoContaminationErr))) :*: (S1 ('MetaSel ('Just "jContaminationMeas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoContaminationMeas))) :*: S1 ('MetaSel ('Just "jContaminationNote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoContaminationNote))))) :*: ((S1 ('MetaSel ('Just "jGeneticSourceAccessionIDs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoGeneticSourceAccessionID))) :*: (S1 ('MetaSel ('Just "jPrimaryContact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoPrimaryContact)) :*: S1 ('MetaSel ('Just "jPublication") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoPublication))))) :*: (S1 ('MetaSel ('Just "jComments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoComment)) :*: (S1 ('MetaSel ('Just "jKeywords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JannoKeyword))) :*: S1 ('MetaSel ('Just "jAdditionalColumns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CsvNamedRecord))))))))
type Code JannoRow Source # 
Instance details

Defined in Poseidon.Janno

type DatatypeInfoOf JannoRow Source # 
Instance details

Defined in Poseidon.Janno

type DatatypeInfoOf JannoRow = 'ADT "Poseidon.Janno" "JannoRow" '['Record "JannoRow" '['FieldInfo "jPoseidonID", 'FieldInfo "jGeneticSex", 'FieldInfo "jGroupName", 'FieldInfo "jAlternativeIDs", 'FieldInfo "jRelationTo", 'FieldInfo "jRelationDegree", 'FieldInfo "jRelationType", 'FieldInfo "jRelationNote", 'FieldInfo "jCollectionID", 'FieldInfo "jCountry", 'FieldInfo "jCountryISO", 'FieldInfo "jLocation", 'FieldInfo "jSite", 'FieldInfo "jLatitude", 'FieldInfo "jLongitude", 'FieldInfo "jDateType", 'FieldInfo "jDateC14Labnr", 'FieldInfo "jDateC14UncalBP", 'FieldInfo "jDateC14UncalBPErr", 'FieldInfo "jDateBCADStart", 'FieldInfo "jDateBCADMedian", 'FieldInfo "jDateBCADStop", 'FieldInfo "jDateNote", 'FieldInfo "jMTHaplogroup", 'FieldInfo "jYHaplogroup", 'FieldInfo "jSourceTissue", 'FieldInfo "jNrLibraries", 'FieldInfo "jLibraryNames", 'FieldInfo "jCaptureType", 'FieldInfo "jUDG", 'FieldInfo "jLibraryBuilt", 'FieldInfo "jGenotypePloidy", 'FieldInfo "jDataPreparationPipelineURL", 'FieldInfo "jEndogenous", 'FieldInfo "jNrSNPs", 'FieldInfo "jCoverageOnTargets", 'FieldInfo "jDamage", 'FieldInfo "jContamination", 'FieldInfo "jContaminationErr", 'FieldInfo "jContaminationMeas", 'FieldInfo "jContaminationNote", 'FieldInfo "jGeneticSourceAccessionIDs", 'FieldInfo "jPrimaryContact", 'FieldInfo "jPublication", 'FieldInfo "jComments", 'FieldInfo "jKeywords", 'FieldInfo "jAdditionalColumns"]] '['['StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy, 'StrictnessInfo 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy]]

newtype GeneticSex Source #

A datatype for the Genetic_Sex .janno column

Constructors

GeneticSex 

Fields

Instances

Instances details
Show GeneticSex Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField GeneticSex Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser GeneticSex

ToField GeneticSex Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: GeneticSex -> Field

Eq GeneticSex Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord GeneticSex Source # 
Instance details

Defined in Poseidon.ColumnTypes

PresenceCountable GeneticSex Source # 
Instance details

Defined in Poseidon.CLI.Survey

Makeable GeneticSex Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

make :: MonadFail m => Text -> m GeneticSex Source #

newtype GroupName Source #

A datatype for the Group_Name .janno column

Constructors

GroupName Text 

Instances

Instances details
Show GroupName Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField GroupName Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser GroupName

ToField GroupName Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: GroupName -> Field

Eq GroupName Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord GroupName Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable GroupName Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

make :: MonadFail m => Text -> m GroupName Source #

newtype ListColumn a Source #

A general datatype for janno list columns

Constructors

ListColumn 

Fields

Instances

Instances details
Generic (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

Associated Types

type Rep (ListColumn a) :: Type -> Type #

Methods

from :: ListColumn a -> Rep (ListColumn a) x #

to :: Rep (ListColumn a) x -> ListColumn a #

Show a => Show (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

FromField a => FromField (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

Methods

parseField :: Field -> Parser (ListColumn a)

(ToField a, Show a) => ToField (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

Methods

toField :: ListColumn a -> Field

Eq a => Eq (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

Methods

(==) :: ListColumn a -> ListColumn a -> Bool #

(/=) :: ListColumn a -> ListColumn a -> Bool #

Ord a => Ord (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

PresenceCountable (ListColumn a) Source # 
Instance details

Defined in Poseidon.CLI.Survey

type Rep (ListColumn a) Source # 
Instance details

Defined in Poseidon.Janno

type Rep (ListColumn a) = D1 ('MetaData "ListColumn" "Poseidon.Janno" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "ListColumn" 'PrefixI 'True) (S1 ('MetaSel ('Just "getListColumn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a])))

data Sex #

Constructors

Male 
Female 
Unknown 

Instances

Instances details
Show Sex 
Instance details

Defined in SequenceFormats.Eigenstrat

Methods

showsPrec :: Int -> Sex -> ShowS #

show :: Sex -> String #

showList :: [Sex] -> ShowS #

Eq Sex 
Instance details

Defined in SequenceFormats.Eigenstrat

Methods

(==) :: Sex -> Sex -> Bool #

(/=) :: Sex -> Sex -> Bool #

newtype JannoCountryISO Source #

A datatype for countries in ISO-alpha2 code format

Constructors

JannoCountryISO Country 

newtype JannoLatitude Source #

A datatype for the Latitude .janno column

Constructors

JannoLatitude Double 

Instances

Instances details
Generic JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoLatitude :: Type -> Type #

Show JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoLatitude

ToField JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoLatitude -> Field

Eq JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

make :: MonadFail m => Text -> m JannoLatitude Source #

type Rep JannoLatitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoLatitude = D1 ('MetaData "JannoLatitude" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "JannoLatitude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

newtype JannoLongitude Source #

A datatype for the Longitude .janno column

Constructors

JannoLongitude Double 

Instances

Instances details
Generic JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoLongitude :: Type -> Type #

Show JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoLongitude

ToField JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoLongitude -> Field

Eq JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoLongitude Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoLongitude = D1 ('MetaData "JannoLongitude" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "JannoLongitude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data JannoDateType Source #

A datatype for the Date_Type .janno column

Constructors

C14 
Contextual 
Modern 

Instances

Instances details
Bounded JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Enum JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Generic JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoDateType :: Type -> Type #

Show JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoDateType

ToField JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoDateType -> Field

Eq JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

make :: MonadFail m => Text -> m JannoDateType Source #

type Rep JannoDateType Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoDateType = D1 ('MetaData "JannoDateType" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (C1 ('MetaCons "C14" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Contextual" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Modern" 'PrefixI 'False) (U1 :: Type -> Type)))

newtype JannoDateBCADMedian Source #

A datatype for the Date_BC_AD_Median .janno column

Constructors

JannoDateBCADMedian Int 

Instances

Instances details
Generic JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoDateBCADMedian :: Type -> Type #

Show JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoDateBCADMedian

ToField JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoDateBCADMedian -> Field

Eq JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoDateBCADMedian Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoDateBCADMedian = D1 ('MetaData "JannoDateBCADMedian" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "JannoDateBCADMedian" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data JannoCaptureType Source #

A datatype for the Capture_Type .janno column

Instances

Instances details
Bounded JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Enum JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Generic JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoCaptureType :: Type -> Type #

Show JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoCaptureType

ToField JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoCaptureType -> Field

Eq JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoCaptureType Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoCaptureType = D1 ('MetaData "JannoCaptureType" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (((C1 ('MetaCons "Shotgun" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "A1240K" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ArborComplete" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ArborPrimePlus" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ArborAncestralPlus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TwistAncientDNA" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OtherCapture" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReferenceGenome" 'PrefixI 'False) (U1 :: Type -> Type))))

data JannoGenotypePloidy Source #

A datatype for the Genotype_Ploidy .janno column

Constructors

Diploid 
Haploid 

Instances

Instances details
Bounded JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Enum JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Generic JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoGenotypePloidy :: Type -> Type #

Show JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoGenotypePloidy

ToField JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoGenotypePloidy -> Field

Eq JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoGenotypePloidy Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoGenotypePloidy = D1 ('MetaData "JannoGenotypePloidy" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (C1 ('MetaCons "Diploid" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Haploid" 'PrefixI 'False) (U1 :: Type -> Type))

data JannoUDG Source #

A datatype for the UDG .janno column

Constructors

Minus 
Half 
Plus 
Mixed 

Instances

Instances details
Bounded JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Enum JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Generic JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoUDG :: Type -> Type #

Methods

from :: JannoUDG -> Rep JannoUDG x #

to :: Rep JannoUDG x -> JannoUDG #

Show JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoUDG

ToField JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoUDG -> Field

Eq JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

make :: MonadFail m => Text -> m JannoUDG Source #

type Rep JannoUDG Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoUDG = D1 ('MetaData "JannoUDG" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) ((C1 ('MetaCons "Minus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Half" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Plus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mixed" 'PrefixI 'False) (U1 :: Type -> Type)))

data JannoRelationDegree Source #

A datatype for the Relation_Degree .janno column

Instances

Instances details
Bounded JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Enum JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Generic JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoRelationDegree :: Type -> Type #

Show JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoRelationDegree

ToField JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoRelationDegree -> Field

Eq JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoRelationDegree Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoRelationDegree = D1 ('MetaData "JannoRelationDegree" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) ((C1 ('MetaCons "Identical" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "First" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Second" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ThirdToFifth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SixthToTenth" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Unrelated" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OtherDegree" 'PrefixI 'False) (U1 :: Type -> Type))))

data JannoLibraryBuilt Source #

A datatype for the Library_Built .janno column

Constructors

DS 
SS 
MixedSSDS 
Other 

Instances

Instances details
Bounded JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Enum JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Generic JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Associated Types

type Rep JannoLibraryBuilt :: Type -> Type #

Show JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

FromField JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

parseField :: Field -> Parser JannoLibraryBuilt

ToField JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Methods

toField :: JannoLibraryBuilt -> Field

Eq JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Ord JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

Makeable JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoLibraryBuilt Source # 
Instance details

Defined in Poseidon.ColumnTypes

type Rep JannoLibraryBuilt = D1 ('MetaData "JannoLibraryBuilt" "Poseidon.ColumnTypes" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) ((C1 ('MetaCons "DS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SS" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MixedSSDS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (U1 :: Type -> Type)))

readJannoFile :: FilePath -> PoseidonIO JannoRows Source #

A function to load one janno file

createMinimalJanno :: [EigenstratIndEntry] -> JannoRows Source #

A function to create empty janno rows for a set of individuals

createMinimalSample :: EigenstratIndEntry -> JannoRow Source #

A function to create an empty janno row for an individual

newtype CsvNamedRecord Source #

A datatype to collect additional, unpecified .janno file columns (a hashmap in cassava/Data.Csv)

Constructors

CsvNamedRecord NamedRecord 

Instances

Instances details
Generic CsvNamedRecord Source # 
Instance details

Defined in Poseidon.Janno

Associated Types

type Rep CsvNamedRecord :: Type -> Type #

Show CsvNamedRecord Source # 
Instance details

Defined in Poseidon.Janno

Eq CsvNamedRecord Source # 
Instance details

Defined in Poseidon.Janno

PresenceCountable CsvNamedRecord Source # 
Instance details

Defined in Poseidon.CLI.Survey

type Rep CsvNamedRecord Source # 
Instance details

Defined in Poseidon.Janno

type Rep CsvNamedRecord = D1 ('MetaData "CsvNamedRecord" "Poseidon.Janno" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "CsvNamedRecord" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NamedRecord)))

newtype JannoRows Source #

A data type to represent a janno file

Constructors

JannoRows 

Fields

Instances

Instances details
Monoid JannoRows Source # 
Instance details

Defined in Poseidon.Janno

Semigroup JannoRows Source # 
Instance details

Defined in Poseidon.Janno

Generic JannoRows Source # 
Instance details

Defined in Poseidon.Janno

Associated Types

type Rep JannoRows :: Type -> Type #

Show JannoRows Source # 
Instance details

Defined in Poseidon.Janno

Eq JannoRows Source # 
Instance details

Defined in Poseidon.Janno

type Rep JannoRows Source # 
Instance details

Defined in Poseidon.Janno

type Rep JannoRows = D1 ('MetaData "JannoRows" "Poseidon.Janno" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "JannoRows" 'PrefixI 'True) (S1 ('MetaSel ('Just "getJannoRows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [JannoRow])))

filterLookup :: FromField a => NamedRecord -> ByteString -> Parser a Source #

filterLookupOptional :: FromField a => NamedRecord -> ByteString -> Parser (Maybe a) Source #

getCsvNR :: CsvNamedRecord -> NamedRecord Source #

encodingOptions :: EncodeOptions Source #

decodingOptions :: DecodeOptions Source #

explicitNA :: ByteString -> ByteString Source #

A helper functions to replace empty bytestrings values in janno files with explicit "n/a"

renderCsvParseError :: CsvParseError -> String Source #

jannoRows2EigenstratIndEntries :: JannoRows -> [EigenstratIndEntry] Source #

a convenience function to construct Eigenstrat Ind entries out of jannoRows