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

Poseidon.SequencingSource

Synopsis

Documentation

data AccessionID Source #

A datatype to represent AccessionIDs in a ssf file

Instances

Instances details
Generic AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep AccessionID :: Type -> Type #

Show AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser AccessionID

ToField AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: AccessionID -> Field

Eq AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

Ord AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionID Source # 
Instance details

Defined in Poseidon.SequencingSource

newtype JURI Source #

A datatype to represent URIs in a ssf file

Constructors

JURI String 

Instances

Instances details
Generic JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep JURI :: Type -> Type #

Methods

from :: JURI -> Rep JURI x #

to :: Rep JURI x -> JURI #

Show JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

showsPrec :: Int -> JURI -> ShowS #

show :: JURI -> String #

showList :: [JURI] -> ShowS #

FromField JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser JURI

ToField JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: JURI -> Field

Eq JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

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

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

Ord JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

compare :: JURI -> JURI -> Ordering #

(<) :: JURI -> JURI -> Bool #

(<=) :: JURI -> JURI -> Bool #

(>) :: JURI -> JURI -> Bool #

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

max :: JURI -> JURI -> JURI #

min :: JURI -> JURI -> JURI #

type Rep JURI Source # 
Instance details

Defined in Poseidon.SequencingSource

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

data SSFUDG Source #

A datatype to represent UDG in a ssf file

Constructors

SSFMinus 
SSFHalf 
SSFPlus 

Instances

Instances details
Bounded SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

Enum SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

Generic SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep SSFUDG :: Type -> Type #

Methods

from :: SSFUDG -> Rep SSFUDG x #

to :: Rep SSFUDG x -> SSFUDG #

Show SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser SSFUDG

ToField SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: SSFUDG -> Field

Eq SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

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

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

Ord SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SSFUDG Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SSFUDG = D1 ('MetaData "SSFUDG" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (C1 ('MetaCons "SSFMinus" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SSFHalf" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SSFPlus" 'PrefixI 'False) (U1 :: Type -> Type)))

data SSFLibraryBuilt Source #

A datatype to represent Library_Built in a janno file

Constructors

SSFDS 
SSFSS 

Instances

Instances details
Bounded SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

Enum SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

Generic SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep SSFLibraryBuilt :: Type -> Type #

Show SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser SSFLibraryBuilt

ToField SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: SSFLibraryBuilt -> Field

Eq SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

Ord SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SSFLibraryBuilt Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SSFLibraryBuilt = D1 ('MetaData "SSFLibraryBuilt" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (C1 ('MetaCons "SSFDS" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SSFSS" 'PrefixI 'False) (U1 :: Type -> Type))

newtype SeqSourceRows Source #

A data type to represent a seqSourceFile

Instances

Instances details
Monoid SeqSourceRows Source # 
Instance details

Defined in Poseidon.SequencingSource

Semigroup SeqSourceRows Source # 
Instance details

Defined in Poseidon.SequencingSource

Generic SeqSourceRows Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep SeqSourceRows :: Type -> Type #

Show SeqSourceRows Source # 
Instance details

Defined in Poseidon.SequencingSource

Eq SeqSourceRows Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SeqSourceRows Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SeqSourceRows = D1 ('MetaData "SeqSourceRows" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "SeqSourceRows" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSeqSourceRowList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SeqSourceRow])))

newtype AccessionIDRun Source #

Instances

Instances details
Generic AccessionIDRun Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep AccessionIDRun :: Type -> Type #

Show AccessionIDRun Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField AccessionIDRun Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser AccessionIDRun

ToField AccessionIDRun Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: AccessionIDRun -> Field

Eq AccessionIDRun Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionIDRun Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionIDRun = D1 ('MetaData "AccessionIDRun" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "AccessionIDRun" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRunAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccessionID)))

newtype AccessionIDSample Source #

Instances

Instances details
Generic AccessionIDSample Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep AccessionIDSample :: Type -> Type #

Show AccessionIDSample Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField AccessionIDSample Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser AccessionIDSample

ToField AccessionIDSample Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: AccessionIDSample -> Field

Eq AccessionIDSample Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionIDSample Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionIDSample = D1 ('MetaData "AccessionIDSample" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "AccessionIDSample" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSampleAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccessionID)))

newtype AccessionIDStudy Source #

Instances

Instances details
Generic AccessionIDStudy Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep AccessionIDStudy :: Type -> Type #

Show AccessionIDStudy Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField AccessionIDStudy Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser AccessionIDStudy

ToField AccessionIDStudy Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: AccessionIDStudy -> Field

Eq AccessionIDStudy Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionIDStudy Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep AccessionIDStudy = D1 ('MetaData "AccessionIDStudy" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'True) (C1 ('MetaCons "AccessionIDStudy" 'PrefixI 'True) (S1 ('MetaSel ('Just "getStudyAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccessionID)))

newtype SimpleDate Source #

A datatype for calendar dates

Constructors

SimpleDate Day 

Instances

Instances details
Generic SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep SimpleDate :: Type -> Type #

Show SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

FromField SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser SimpleDate

ToField SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: SimpleDate -> Field

Eq SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

Ord SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SimpleDate Source # 
Instance details

Defined in Poseidon.SequencingSource

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

newtype MD5 Source #

A datatype to represent MD5 hashes

Constructors

MD5 String 

Instances

Instances details
Generic MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep MD5 :: Type -> Type #

Methods

from :: MD5 -> Rep MD5 x #

to :: Rep MD5 x -> MD5 #

Show MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

showsPrec :: Int -> MD5 -> ShowS #

show :: MD5 -> String #

showList :: [MD5] -> ShowS #

FromField MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseField :: Field -> Parser MD5

ToField MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toField :: MD5 -> Field

Eq MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

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

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

Ord MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

compare :: MD5 -> MD5 -> Ordering #

(<) :: MD5 -> MD5 -> Bool #

(<=) :: MD5 -> MD5 -> Bool #

(>) :: MD5 -> MD5 -> Bool #

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

max :: MD5 -> MD5 -> MD5 #

min :: MD5 -> MD5 -> MD5 #

type Rep MD5 Source # 
Instance details

Defined in Poseidon.SequencingSource

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

data SeqSourceRow Source #

A data type to represent a row in the seqSourceFile See https://github.com/poseidon-framework/poseidon2-schema/blob/master/seqSourceFile_columns.tsv for more details

Instances

Instances details
Generic SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

Associated Types

type Rep SeqSourceRow :: Type -> Type #

Show SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

DefaultOrdered SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

headerOrder :: SeqSourceRow -> Header

FromNamedRecord SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

parseNamedRecord :: NamedRecord -> Parser SeqSourceRow

ToNamedRecord SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

Methods

toNamedRecord :: SeqSourceRow -> NamedRecord

Eq SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SeqSourceRow Source # 
Instance details

Defined in Poseidon.SequencingSource

type Rep SeqSourceRow = D1 ('MetaData "SeqSourceRow" "Poseidon.SequencingSource" "poseidon-hs-1.6.0.0-CwGty8Kh6aTIT5Pu2ecao6" 'False) (C1 ('MetaCons "SeqSourceRow" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "sPoseidonID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe JannoStringList)) :*: S1 ('MetaSel ('Just "sUDG") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SSFUDG))) :*: (S1 ('MetaSel ('Just "sLibraryBuilt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SSFLibraryBuilt)) :*: (S1 ('MetaSel ('Just "sSampleAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AccessionIDSample)) :*: S1 ('MetaSel ('Just "sStudyAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AccessionIDStudy))))) :*: ((S1 ('MetaSel ('Just "sRunAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AccessionIDRun)) :*: (S1 ('MetaSel ('Just "sSampleAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "sSecondarySampleAccession") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))) :*: (S1 ('MetaSel ('Just "sFirstPublic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SimpleDate)) :*: (S1 ('MetaSel ('Just "sLastUpdated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SimpleDate)) :*: S1 ('MetaSel ('Just "sInstrumentModel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))) :*: (((S1 ('MetaSel ('Just "sLibraryLayout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "sLibrarySource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "sInstrumentPlatform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))) :*: (S1 ('MetaSel ('Just "sLibraryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "sLibraryStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "sFastqFTP") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JURI)))))) :*: ((S1 ('MetaSel ('Just "sFastqASPERA") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JURI))) :*: (S1 ('MetaSel ('Just "sFastqBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn Integer))) :*: S1 ('MetaSel ('Just "sFastqMD5") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn MD5))))) :*: (S1 ('MetaSel ('Just "sReadCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "sSubmittedFTP") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (ListColumn JURI))) :*: S1 ('MetaSel ('Just "sAdditionalColumns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CsvNamedRecord)))))))

writeSeqSourceFile :: FilePath -> SeqSourceRows -> IO () Source #

A function to write one seqSourceFile

readSeqSourceFile :: FilePath -> PoseidonIO SeqSourceRows Source #

A function to read one seqSourceFile

readSeqSourceFileRow :: FilePath -> (Int, ByteString) -> PoseidonIO (Either PoseidonException SeqSourceRow) Source #

A function to read one row of a seqSourceFile