@nfdi4plants/swate-components
Version:
Customizable React components for ontology annotation, based on Swate and the ARC.
60 lines • 3.24 kB
TypeScript
import { Option } from '@fable-org/fable-library-js/Option.js';
import { int32 } from '@fable-org/fable-library-js/Int32.js';
import { OntologyAnnotation } from '../../ARCtrl.Core.3.0.0-beta.12/OntologyAnnotation.fs.js';
import { Component } from '../../ARCtrl.Core.3.0.0-beta.12/Process/Component.fs.js';
import { FSharpList } from '@fable-org/fable-library-js/List.js';
import { ProtocolParameter } from '../../ARCtrl.Core.3.0.0-beta.12/Process/ProtocolParameter.fs.js';
/**
* If the value matches the default, a None is returned, else a Some is returned
*/
export declare function Option_fromValueWithDefault<$a>(d: $a, v: $a): Option<$a>;
/**
* Applies the function f on the value of the option if it exists, else applies it on the default value. If the result value matches the default, a None is returned
*/
export declare function Option_mapDefault<T>(d: T, f: ((arg0: T) => T), o: Option<T>): Option<T>;
/**
* Returns the length of a subpropertylist from the aggregated strings
*
* In ISATab format, some subproperties which are stored as lists in ISAJson are stored as semicolon delimited tables
*
* These strings should either contain the same number of semicolon delimited elements or be empty.
*/
export declare function OntologyAnnotation_getLengthOfAggregatedStrings(separator: string, strings: string[]): int32;
/**
* Returns a list of ISAJson OntologyAnnotation objects from ISATab aggregated strings
*/
export declare function OntologyAnnotation_fromAggregatedStrings(separator: string, terms: string, source: string, accessions: string): OntologyAnnotation[];
/**
* Returns the aggregated ISATab OntologyAnnotation Name, ontology source and Accession number from a list of ISAJson OntologyAnnotation objects
*/
export declare function OntologyAnnotation_toAggregatedStrings(separator: string, oas: OntologyAnnotation[]): {
TermAccessionNumberAgg: string;
TermNameAgg: string;
TermSourceREFAgg: string;
};
/**
* Returns a list of ISAJson Component objects from ISATab aggregated strings
*/
export declare function Component_fromAggregatedStrings(separator: string, names: string, terms: string, source: string, accessions: string): FSharpList<Component>;
/**
* Returns the aggregated ISATAb Component Name, Ontology Annotation value, Accession number and ontology source from a list of ISAJson Component objects
*/
export declare function Component_toAggregatedStrings(separator: string, cs: FSharpList<Component>): {
NameAgg: string;
TermAccessionNumberAgg: string;
TermNameAgg: string;
TermSourceREFAgg: string;
};
/**
* Returns a list of ISAJson ProtocolParameter objects from ISATab aggregated strings
*/
export declare function ProtocolParameter_fromAggregatedStrings(separator: string, terms: string, source: string, accessions: string): ProtocolParameter[];
/**
* Returns the aggregated ISATAb Ontology Annotation value, Accession number and ontology source from a list of ISAJson ProtocolParameter objects
*/
export declare function ProtocolParameter_toAggregatedStrings(separator: string, oas: FSharpList<ProtocolParameter>): {
TermAccessionNumberAgg: string;
TermNameAgg: string;
TermSourceREFAgg: string;
};
//# sourceMappingURL=Conversions.fs.d.ts.map