Closed Freymaurer closed 5 months ago
type CompositeHeader with
// https://fable.io/docs/javascript/features.html#u2-u3--u9
// U2 is an erased union type, allowing seemless integration into js syntax
/// <summary>
/// Can pass header as `U2.Case1 compositeHeader` or `U2.Case2 string` or (requires `open Fable.Core.JsInterop`) `!^compositeHeader` or `!^string`
/// </summary>
/// <param name="header"></param>
static member getUITooltip(header:U2<CompositeHeader,string>) =
match header with
| U2.Case1 (Component _) | U2.Case2 "Component" ->
"Component columns are used to describe physical components of a experiment, e.g. instrument names, software names, and reagents names."
| U2.Case1 (Characteristic _) | U2.Case2 "Characteristic" ->
"Characteristic columns are used for study descriptions and describe inherent properties of the source material, e.g. a certain strain or organism part."
| U2.Case1 (Factor _)| U2.Case2 "Factor" ->
"Use Factor columns to describe independent variables that result in a specific output of your experiment, e.g. the light intensity under which an organism was grown."
| U2.Case1 (Parameter _) | U2.Case2 "Parameter" ->
"Parameter columns describe steps in your experimental workflow, e.g. the centrifugation time or the temperature used for your assay."
| U2.Case1 (ProtocolType) | U2.Case2 "ProtocolType" ->
"Defines the protocol type according to your preferred endpoint repository."
| U2.Case1 (ProtocolDescription) | U2.Case2 "ProtocolDescription" ->
"Describe the protocol in free text."
| U2.Case1 (ProtocolUri) | U2.Case2 "ProtocolUri" ->
"Web or local address where the in-depth protocol is stored."
| U2.Case1 (ProtocolVersion) | U2.Case2 "ProtocolVersion" ->
"Defines the protocol version."
| U2.Case1 (ProtocolREF) | U2.Case2 "ProtocolREF" ->
"Defines the protocol name."
| U2.Case1 (Performer) | U2.Case2 "Performer" ->
"Defines the protocol performer."
| U2.Case1 (Date) | U2.Case2 "Date" ->
"Defines the date the protocol was performed."
| U2.Case1 (Input _) | U2.Case2 "Input" ->
"Only one input column per table. E.g. experimental samples or files."
| U2.Case1 (Output _) |U2.Case2 "Output" ->
"Only one output column per table. E.g. experimental samples or files."
| U2.Case1 (FreeText _) | U2.Case2 "FreeText" ->
"Placeholder"
| U2.Case1 (Comment _) | U2.Case2 "Comment" ->
"Comment"
| _ -> failwith $"Unable to parse combination to existing CompositeHeader: `{header}`"
I think referencing the specification or relevant docs is more elegant so i'll just close this one 🤔
Contact Details
No response
Is your feature request related to a problem?
s
Describe the solution you would like!
Additional context!
No response
Host
Applies to All
Host Details
s