chemist-preprocessor-0.1.0.0: Chemist Raw Data Preprocessor
Safe HaskellSafe-Inferred
LanguageHaskell2010

Models

Description

This module defines the core data types and structures used throughout the application for representing chemical reactions, mechanisms, and interactants. It includes various identifiers, relationship types, and masks for data handling, as well as details on the process and health checks.

Exports

Synopsis

Documentation

data ACCELERATE #

def - the default value for ACCELERATE corresponds to Standard Temperature and Pressure (STP): - temperature = 273.15 K (Kelvin) - pressure = 101.325 kPa (kilopascals)

Constructors

ACCELERATE 

Fields

Instances

Instances details
FromJSON ACCELERATE # 
Instance details

Defined in Models.Chemical

ToJSON ACCELERATE # 
Instance details

Defined in Models.Chemical

Generic ACCELERATE # 
Instance details

Defined in Models.Chemical

Associated Types

type Rep ACCELERATE :: Type -> Type #

Show ACCELERATE # 
Instance details

Defined in Models.Chemical

Default ACCELERATE # 
Instance details

Defined in Models.Chemical

Methods

def :: ACCELERATE #

Eq ACCELERATE # 
Instance details

Defined in Models.Chemical

ElemInteractant (ACCELERATE, Identity) #

Converts a Neo4j relationship of type ACCELERATE to a Haskell ACCELERATE and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep ACCELERATE # 
Instance details

Defined in Models.Chemical

type Rep ACCELERATE = D1 ('MetaData "ACCELERATE" "Models.Chemical" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ACCELERATE" 'PrefixI 'True) (S1 ('MetaSel ('Just "temperature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Float]) :*: S1 ('MetaSel ('Just "pressure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Float])))

data Catalyst #

Instances

Instances details
FromJSON Catalyst # 
Instance details

Defined in Models.Chemical

ToJSON Catalyst # 
Instance details

Defined in Models.Chemical

Generic Catalyst # 
Instance details

Defined in Models.Chemical

Associated Types

type Rep Catalyst :: Type -> Type #

Methods

from :: Catalyst -> Rep Catalyst x #

to :: Rep Catalyst x -> Catalyst #

Show Catalyst # 
Instance details

Defined in Models.Chemical

Default Catalyst # 
Instance details

Defined in Models.Chemical

Methods

def :: Catalyst #

Eq Catalyst # 
Instance details

Defined in Models.Chemical

ElemInteractant (Catalyst, Identity) #

Converts a Neo4j node with label Catalyst to a Haskell Catalyst and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep Catalyst # 
Instance details

Defined in Models.Chemical

type Rep Catalyst = D1 ('MetaData "Catalyst" "Models.Chemical" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Catalyst" 'PrefixI 'True) (S1 ('MetaSel ('Just "catalystId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CatalystID) :*: (S1 ('MetaSel ('Just "catalystSmiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "catalystName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))

data Molecule #

Instances

Instances details
FromJSON Molecule # 
Instance details

Defined in Models.Chemical

ToJSON Molecule # 
Instance details

Defined in Models.Chemical

Generic Molecule # 
Instance details

Defined in Models.Chemical

Associated Types

type Rep Molecule :: Type -> Type #

Methods

from :: Molecule -> Rep Molecule x #

to :: Rep Molecule x -> Molecule #

Show Molecule # 
Instance details

Defined in Models.Chemical

Eq Molecule # 
Instance details

Defined in Models.Chemical

ElemInteractant (Molecule, Identity) #

Converts a Neo4j node with label Molecule to a Haskell Molecule and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep Molecule # 
Instance details

Defined in Models.Chemical

type Rep Molecule = D1 ('MetaData "Molecule" "Models.Chemical" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Molecule" 'PrefixI 'True) (S1 ('MetaSel ('Just "moleculeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MoleculeID) :*: (S1 ('MetaSel ('Just "moleculeSmiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "moleculeIupacName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))))

newtype PRODUCT_FROM #

Constructors

PRODUCT_FROM 

Fields

Instances

Instances details
FromJSON PRODUCT_FROM # 
Instance details

Defined in Models.Chemical

ToJSON PRODUCT_FROM # 
Instance details

Defined in Models.Chemical

Generic PRODUCT_FROM # 
Instance details

Defined in Models.Chemical

Associated Types

type Rep PRODUCT_FROM :: Type -> Type #

Show PRODUCT_FROM # 
Instance details

Defined in Models.Chemical

Eq PRODUCT_FROM # 
Instance details

Defined in Models.Chemical

ElemInteractant (PRODUCT_FROM, Identity) #

Converts a Neo4j relationship of type PRODUCT_FROM to a Haskell PRODUCT_FROM and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep PRODUCT_FROM # 
Instance details

Defined in Models.Chemical

type Rep PRODUCT_FROM = D1 ('MetaData "PRODUCT_FROM" "Models.Chemical" "chemist-preprocessor-0.1.0.0-inplace" 'True) (C1 ('MetaCons "PRODUCT_FROM" 'PrefixI 'True) (S1 ('MetaSel ('Just "productAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)))

newtype REAGENT_IN #

Constructors

REAGENT_IN 

Fields

Instances

Instances details
FromJSON REAGENT_IN # 
Instance details

Defined in Models.Chemical

ToJSON REAGENT_IN # 
Instance details

Defined in Models.Chemical

Generic REAGENT_IN # 
Instance details

Defined in Models.Chemical

Associated Types

type Rep REAGENT_IN :: Type -> Type #

Show REAGENT_IN # 
Instance details

Defined in Models.Chemical

Eq REAGENT_IN # 
Instance details

Defined in Models.Chemical

ElemInteractant (REAGENT_IN, Identity) #

Converts a Neo4j relationship of type REAGENT_IN to a Haskell REAGENT_IN and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep REAGENT_IN # 
Instance details

Defined in Models.Chemical

type Rep REAGENT_IN = D1 ('MetaData "REAGENT_IN" "Models.Chemical" "chemist-preprocessor-0.1.0.0-inplace" 'True) (C1 ('MetaCons "REAGENT_IN" 'PrefixI 'True) (S1 ('MetaSel ('Just "reagentAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)))

data Reaction #

Constructors

Reaction 

Instances

Instances details
FromJSON Reaction # 
Instance details

Defined in Models.Chemical

ToJSON Reaction # 
Instance details

Defined in Models.Chemical

Generic Reaction # 
Instance details

Defined in Models.Chemical

Associated Types

type Rep Reaction :: Type -> Type #

Methods

from :: Reaction -> Rep Reaction x #

to :: Rep Reaction x -> Reaction #

Show Reaction # 
Instance details

Defined in Models.Chemical

Eq Reaction # 
Instance details

Defined in Models.Chemical

ElemInteractant (Reaction, Identity) #

Converts a Neo4j node with label Reaction to a Haskell Reaction and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep Reaction # 
Instance details

Defined in Models.Chemical

type Rep Reaction = D1 ('MetaData "Reaction" "Models.Chemical" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Reaction" 'PrefixI 'True) (S1 ('MetaSel ('Just "reactionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReactionID) :*: S1 ('MetaSel ('Just "reactionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))

data Interactant #

Primary type for Reaction explanation

Instances

Instances details
FromJSON Interactant # 
Instance details

Defined in Models.Interactant

ToJSON Interactant # 
Instance details

Defined in Models.Interactant

Generic Interactant # 
Instance details

Defined in Models.Interactant

Associated Types

type Rep Interactant :: Type -> Type #

Show Interactant # 
Instance details

Defined in Models.Interactant

Eq Interactant # 
Instance details

Defined in Models.Interactant

ElemInteractant (Interactant, Identity) #

Converts a Neo4j node to a Haskell Interactant based on its label (if Node) or type (if URelationship).

Instance details

Defined in Domain.Converter.Instances

type Rep Interactant # 
Instance details

Defined in Models.Interactant

data Explain #

Primary type for Mechanism explanation

Instances

Instances details
Generic Explain # 
Instance details

Defined in Models.Interactant

Associated Types

type Rep Explain :: Type -> Type #

Methods

from :: Explain -> Rep Explain x #

to :: Rep Explain x -> Explain #

Show Explain # 
Instance details

Defined in Models.Interactant

Eq Explain # 
Instance details

Defined in Models.Interactant

Methods

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

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

type Rep Explain # 
Instance details

Defined in Models.Interactant

type Rep Explain = D1 ('MetaData "Explain" "Models.Interactant" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "EMechanism" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Mechanism)) :+: C1 ('MetaCons "EStage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Stage)))

newtype NodeMask #

Constructors

NodeMask 

Instances

Instances details
Show NodeMask # 
Instance details

Defined in Models.Mask

InteractantElem NodeMask #

Converts a node interactant to a NodeMask.

Instance details

Defined in Domain.Converter.Instances

Eq NodeMask # 
Instance details

Defined in Models.Mask

data PathMask #

Instances

Instances details
FromJSON PathMask # 
Instance details

Defined in Models.Mask

ToJSON PathMask # 
Instance details

Defined in Models.Mask

Generic PathMask # 
Instance details

Defined in Models.Mask

Associated Types

type Rep PathMask :: Type -> Type #

Methods

from :: PathMask -> Rep PathMask x #

to :: Rep PathMask x -> PathMask #

Show PathMask # 
Instance details

Defined in Models.Mask

ElemInteractant PathMask #

Converts a Neo4j path to a Haskell PathMask (Introduce PathMask instance to avoid introducing a new typeclass for a pseudo-collection of Interactant's).

Instance details

Defined in Domain.Converter.Instances

Eq PathMask # 
Instance details

Defined in Models.Mask

type Rep PathMask # 
Instance details

Defined in Models.Mask

type Rep PathMask = D1 ('MetaData "PathMask" "Models.Mask" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PathMask" 'PrefixI 'True) (S1 ('MetaSel ('Just "pathNodesMask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Interactant]) :*: (S1 ('MetaSel ('Just "pathRelationshipsMask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Interactant]) :*: S1 ('MetaSel ('Just "pathSequenceMask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]))))

newtype RelMask #

Constructors

RelMask 

Instances

Instances details
Show RelMask # 
Instance details

Defined in Models.Mask

InteractantElem RelMask #

Converts a relation of Interactants to a RelMask.

Instance details

Defined in Domain.Converter.Instances

Eq RelMask # 
Instance details

Defined in Models.Mask

Methods

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

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

data ReactionDetails #

Instances

Instances details
FromJSON ReactionDetails # 
Instance details

Defined in Models.Process

ToJSON ReactionDetails # 
Instance details

Defined in Models.Process

Generic ReactionDetails # 
Instance details

Defined in Models.Process

Associated Types

type Rep ReactionDetails :: Type -> Type #

Show ReactionDetails # 
Instance details

Defined in Models.Process

Eq ReactionDetails # 
Instance details

Defined in Models.Process

type Rep ReactionDetails # 
Instance details

Defined in Models.Process

type Rep ReactionDetails = D1 ('MetaData "ReactionDetails" "Models.Process" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ReactionDetails" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reaction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Reaction) :*: S1 ('MetaSel ('Just "inboundReagents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(REAGENT_IN, Molecule)])) :*: (S1 ('MetaSel ('Just "outboundProducts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(PRODUCT_FROM, Molecule)]) :*: S1 ('MetaSel ('Just "conditions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(ACCELERATE, Catalyst)]))))

data MechanismDetails #

Instances

Instances details
FromJSON MechanismDetails # 
Instance details

Defined in Models.Process

ToJSON MechanismDetails # 
Instance details

Defined in Models.Process

Generic MechanismDetails # 
Instance details

Defined in Models.Process

Associated Types

type Rep MechanismDetails :: Type -> Type #

Show MechanismDetails # 
Instance details

Defined in Models.Process

Eq MechanismDetails # 
Instance details

Defined in Models.Process

type Rep MechanismDetails # 
Instance details

Defined in Models.Process

type Rep MechanismDetails = D1 ('MetaData "MechanismDetails" "Models.Process" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MechanismDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "mechanismContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Mechanism, FOLLOW)) :*: S1 ('MetaSel ('Just "stageInteractants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Stage, [Interactant])])))

data ProcessDetails #

Instances

Instances details
FromJSON ProcessDetails # 
Instance details

Defined in Models.Process

ToJSON ProcessDetails # 
Instance details

Defined in Models.Process

Generic ProcessDetails # 
Instance details

Defined in Models.Process

Associated Types

type Rep ProcessDetails :: Type -> Type #

Show ProcessDetails # 
Instance details

Defined in Models.Process

Eq ProcessDetails # 
Instance details

Defined in Models.Process

type Rep ProcessDetails # 
Instance details

Defined in Models.Process

type Rep ProcessDetails = D1 ('MetaData "ProcessDetails" "Models.Process" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ProcessDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "reactionDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReactionDetails) :*: S1 ('MetaSel ('Just "mechanismDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MechanismDetails)))

type ReactionNode = Node #

Represents a node in a reaction graph

type MechanismNode = Node #

Represents a node in a mechanism graph

type StageID = Int #

data Mechanism #

Instances

Instances details
FromJSON Mechanism # 
Instance details

Defined in Models.Mechanism

ToJSON Mechanism # 
Instance details

Defined in Models.Mechanism

Generic Mechanism # 
Instance details

Defined in Models.Mechanism

Associated Types

type Rep Mechanism :: Type -> Type #

Show Mechanism # 
Instance details

Defined in Models.Mechanism

Eq Mechanism # 
Instance details

Defined in Models.Mechanism

ElemInteractant (Mechanism, Identity) #

Converts a Neo4j node with label Mechanism to a Haskell Mechanism and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep Mechanism # 
Instance details

Defined in Models.Mechanism

type Rep Mechanism = D1 ('MetaData "Mechanism" "Models.Mechanism" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Mechanism" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mechanismId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MechanismID) :*: S1 ('MetaSel ('Just "mechanismName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :*: (S1 ('MetaSel ('Just "mechanismType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "mechanismActivationEnergy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float))))

newtype FOLLOW #

Constructors

FOLLOW 

Fields

Instances

Instances details
FromJSON FOLLOW # 
Instance details

Defined in Models.Mechanism

ToJSON FOLLOW # 
Instance details

Defined in Models.Mechanism

Generic FOLLOW # 
Instance details

Defined in Models.Mechanism

Associated Types

type Rep FOLLOW :: Type -> Type #

Methods

from :: FOLLOW -> Rep FOLLOW x #

to :: Rep FOLLOW x -> FOLLOW #

Show FOLLOW # 
Instance details

Defined in Models.Mechanism

Eq FOLLOW # 
Instance details

Defined in Models.Mechanism

Methods

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

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

ElemInteractant (FOLLOW, Identity) #

Converts a Neo4j relationship of type FOLLOW to a Haskell FOLLOW and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep FOLLOW # 
Instance details

Defined in Models.Mechanism

type Rep FOLLOW = D1 ('MetaData "FOLLOW" "Models.Mechanism" "chemist-preprocessor-0.1.0.0-inplace" 'True) (C1 ('MetaCons "FOLLOW" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))

data Stage #

Instances

Instances details
FromJSON Stage # 
Instance details

Defined in Models.Mechanism

ToJSON Stage # 
Instance details

Defined in Models.Mechanism

Generic Stage # 
Instance details

Defined in Models.Mechanism

Associated Types

type Rep Stage :: Type -> Type #

Methods

from :: Stage -> Rep Stage x #

to :: Rep Stage x -> Stage #

Show Stage # 
Instance details

Defined in Models.Mechanism

Methods

showsPrec :: Int -> Stage -> ShowS #

show :: Stage -> String #

showList :: [Stage] -> ShowS #

Eq Stage # 
Instance details

Defined in Models.Mechanism

Methods

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

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

ElemInteractant (Stage, Identity) #

Converts a Neo4j node with label Stage to a Haskell Stage and its Identity.

Instance details

Defined in Domain.Converter.Instances

type Rep Stage # 
Instance details

Defined in Models.Mechanism

type Rep Stage = D1 ('MetaData "Stage" "Models.Mechanism" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Stage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "stageOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StageID) :*: S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :*: (S1 ('MetaSel ('Just "stageDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "stageProducts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]))))

data INCLUDE #

Constructors

INCLUDE 

Instances

Instances details
FromJSON INCLUDE # 
Instance details

Defined in Models.Mechanism

ToJSON INCLUDE # 
Instance details

Defined in Models.Mechanism

Generic INCLUDE # 
Instance details

Defined in Models.Mechanism

Associated Types

type Rep INCLUDE :: Type -> Type #

Methods

from :: INCLUDE -> Rep INCLUDE x #

to :: Rep INCLUDE x -> INCLUDE #

Show INCLUDE # 
Instance details

Defined in Models.Mechanism

Eq INCLUDE # 
Instance details

Defined in Models.Mechanism

Methods

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

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

ElemInteractant (INCLUDE, Identity, Identity) #

Converts a Neo4j relationship of type INCLUDE to a Haskell INCLUDE and its two Identity values.

Instance details

Defined in Domain.Converter.Instances

type Rep INCLUDE # 
Instance details

Defined in Models.Mechanism

type Rep INCLUDE = D1 ('MetaData "INCLUDE" "Models.Mechanism" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "INCLUDE" 'PrefixI 'False) (U1 :: Type -> Type))

data HealthCheck #

Constructors

HealthCheck 

Fields

Instances

Instances details
FromJSON HealthCheck # 
Instance details

Defined in Models.Common

ToJSON HealthCheck # 
Instance details

Defined in Models.Common

Generic HealthCheck # 
Instance details

Defined in Models.Common

Associated Types

type Rep HealthCheck :: Type -> Type #

Show HealthCheck # 
Instance details

Defined in Models.Common

type Rep HealthCheck # 
Instance details

Defined in Models.Common

type Rep HealthCheck = D1 ('MetaData "HealthCheck" "Models.Common" "chemist-preprocessor-0.1.0.0-inplace" 'False) (C1 ('MetaCons "HealthCheck" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))