Skip to content

Commit

Permalink
add attributes to tokenized containers
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Apr 27, 2023
1 parent 35c9d64 commit ac5ab8c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/ArcGraphModel.IO/ISA/Tokenization.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,22 @@ module Tokenization =
let parseLine (line : FsCell seq) =
match line |> Seq.toList |> List.filter (fun c -> c.Value <> "") with
| [] -> seq []
| [Container (ContainerBase.investigation) container]
| [Container (ContainerBase.investigationContacts) container]
| [Container (ContainerBase.investigationPublication) container]
| [Container (ContainerBase.study) container]
| [Container (ContainerBase.investigationPublication) container] ->
container
|> CvAttributeCollection.tryAddAttribute (CvParam(Terms.investigation,""))
|> ignore
[container] |> Seq.cast<ICvBase>
| [Container (ContainerBase.studyContacts) container]
| [Container (ContainerBase.studyAssays) container]
| [Container (ContainerBase.studyDesignDescriptors) container]
| [Container (ContainerBase.studyFactors) container] ->
container
|> CvAttributeCollection.tryAddAttribute (CvParam(Terms.study,""))
|> ignore
[container] |> Seq.cast<ICvBase>
| [Container (ContainerBase.investigation) container]
| [Container (ContainerBase.study) container] ->
[container] |> Seq.cast<ICvBase>
| line ->
convertTokens line
Expand Down

0 comments on commit ac5ab8c

Please sign in to comment.