-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework data nodes #356
Rework data nodes #356
Changes from 1 commit
3916bc4
32e1885
eebaf4d
b856188
bc7d952
a55279a
239457a
b54b5a5
db9fbf8
890dfd6
08fcb3b
8c67c36
4b53ff2
e5e666e
ecd9a17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,9 +105,7 @@ | |
| CompositeHeader.Input IOType.Source -> ProcessInput.createSource(value.ToString()) | ||
| CompositeHeader.Input IOType.Sample -> ProcessInput.createSample(value.ToString()) | ||
| CompositeHeader.Input IOType.Material -> ProcessInput.createMaterial(value.ToString()) | ||
| CompositeHeader.Input IOType.ImageFile -> ProcessInput.createImageFile(value.ToString()) | ||
| CompositeHeader.Input IOType.RawDataFile -> ProcessInput.createRawData(value.ToString()) | ||
| CompositeHeader.Input IOType.DerivedDataFile -> ProcessInput.createDerivedData(value.ToString()) | ||
| CompositeHeader.Input IOType.Data -> ProcessInput.createRawData(value.ToString()) | ||
| _ -> | ||
failwithf "Could not parse input header %O" header | ||
|
||
|
@@ -117,9 +115,9 @@ | |
match header with | ||
| CompositeHeader.Output IOType.Sample -> ProcessOutput.createSample(value.ToString()) | ||
| CompositeHeader.Output IOType.Material -> ProcessOutput.createMaterial(value.ToString()) | ||
| CompositeHeader.Output IOType.ImageFile -> ProcessOutput.createImageFile(value.ToString()) | ||
| CompositeHeader.Output IOType.RawDataFile -> ProcessOutput.createRawData(value.ToString()) | ||
| CompositeHeader.Output IOType.DerivedDataFile -> ProcessOutput.createDerivedData(value.ToString()) | ||
| CompositeHeader.Output IOType.Data -> ProcessOutput.createImageFile(value.ToString()) | ||
| CompositeHeader.Output IOType.Data -> ProcessOutput.createRawData(value.ToString()) | ||
Check warning on line 119 in src/Core/Conversion.fs
|
||
| CompositeHeader.Output IOType.Data -> ProcessOutput.createDerivedData(value.ToString()) | ||
Check warning on line 120 in src/Core/Conversion.fs
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do! |
||
| _ -> | ||
failwithf "Could not parse output header %O" header | ||
|
||
|
@@ -167,9 +165,9 @@ | |
| ProcessInput.Data d -> | ||
let dataType = d.DataType.Value | ||
match dataType with | ||
| DataFile.ImageFile -> CompositeHeader.Input IOType.ImageFile, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.RawDataFile -> CompositeHeader.Input IOType.RawDataFile, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.DerivedDataFile -> CompositeHeader.Input IOType.DerivedDataFile, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.ImageFile -> CompositeHeader.Input IOType.Data, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.RawDataFile -> CompositeHeader.Input IOType.Data, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.DerivedDataFile -> CompositeHeader.Input IOType.Data, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
|
||
/// Convert an ISA ProcessOutput to a CompositeHeader and Cell tuple | ||
let decomposeProcessOutput (po : ProcessOutput) : CompositeHeader*CompositeCell = | ||
|
@@ -179,9 +177,9 @@ | |
| ProcessOutput.Data d -> | ||
let dataType = d.DataType.Value | ||
match dataType with | ||
| DataFile.ImageFile -> CompositeHeader.Output IOType.ImageFile, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.RawDataFile -> CompositeHeader.Output IOType.RawDataFile, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.DerivedDataFile -> CompositeHeader.Output IOType.DerivedDataFile, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.ImageFile -> CompositeHeader.Output IOType.Data, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.RawDataFile -> CompositeHeader.Output IOType.Data, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
| DataFile.DerivedDataFile -> CompositeHeader.Output IOType.Data, CompositeCell.FreeText (d.Name |> Option.defaultValue "") | ||
|
||
|
||
/// This function creates a string containing the name and the ontology short-string of the given ontology annotation term | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace ARCtrl | ||
|
||
open System.Collections.Generic | ||
open ARCtrl.Helper | ||
open ARCtrl | ||
|
||
module DataMapAux = | ||
|
||
[<Literal>] | ||
let dataMapName = "DataMap" | ||
|
||
let explicationHeader = CompositeHeader.Parameter | ||
|
||
let allowedHeaders = 1 | ||
|
||
let validate (headers : ResizeArray<CompositeHeader>) (values : System.Collections.Generic.Dictionary<int*int,CompositeCell>) = | ||
|
||
1 | ||
|
||
type DataMap(headers: ResizeArray<CompositeHeader>, values: System.Collections.Generic.Dictionary<int*int,CompositeCell>) = | ||
|
||
let _ = DataMapAux.validate headers values | ||
|
||
let table = ArcTable(DataMapAux.dataMapName, headers, values) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.