@nfdi4plants/arctrl 1.0.0-alpha6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCtrl.js +257 -0
- package/Contract/Contract.js +95 -0
- package/Contracts/Contracts.ARCtrl.js +35 -0
- package/Contracts/Contracts.ArcAssay.js +65 -0
- package/Contracts/Contracts.ArcInvestigation.js +58 -0
- package/Contracts/Contracts.ArcStudy.js +65 -0
- package/Contracts/Contracts.Git.js +91 -0
- package/FileSystem/Commit.js +18 -0
- package/FileSystem/DefaultGitignore.js +3 -0
- package/FileSystem/FileSystem.js +53 -0
- package/FileSystem/FileSystemTree.js +223 -0
- package/FileSystem/Path.js +38 -0
- package/FileSystemTree.js +51 -0
- package/ISA/ISA/ArcTypes/ArcTable.js +744 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1142 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +380 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2018 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +42 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +358 -0
- package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
- package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
- package/ISA/ISA/Builder/Types.js +243 -0
- package/ISA/ISA/Fable.js +50 -0
- package/ISA/ISA/Helper.js +326 -0
- package/ISA/ISA/Identifier.js +76 -0
- package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
- package/ISA/ISA/JsonTypes/Assay.js +620 -0
- package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
- package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
- package/ISA/ISA/JsonTypes/Comment.js +58 -0
- package/ISA/ISA/JsonTypes/CommentList.js +139 -0
- package/ISA/ISA/JsonTypes/Component.js +158 -0
- package/ISA/ISA/JsonTypes/Data.js +55 -0
- package/ISA/ISA/JsonTypes/DataFile.js +68 -0
- package/ISA/ISA/JsonTypes/Factor.js +128 -0
- package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
- package/ISA/ISA/JsonTypes/Investigation.js +204 -0
- package/ISA/ISA/JsonTypes/Material.js +66 -0
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
- package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
- package/ISA/ISA/JsonTypes/Person.js +137 -0
- package/ISA/ISA/JsonTypes/Process.js +401 -0
- package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
- package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
- package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
- package/ISA/ISA/JsonTypes/Protocol.js +277 -0
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
- package/ISA/ISA/JsonTypes/Publication.js +105 -0
- package/ISA/ISA/JsonTypes/Sample.js +71 -0
- package/ISA/ISA/JsonTypes/Source.js +54 -0
- package/ISA/ISA/JsonTypes/Study.js +942 -0
- package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
- package/ISA/ISA/JsonTypes/URI.js +19 -0
- package/ISA/ISA/JsonTypes/Value.js +210 -0
- package/ISA/ISA/Regex.js +588 -0
- package/ISA/ISA.Json/Assay.js +123 -0
- package/ISA/ISA.Json/Comment.js +84 -0
- package/ISA/ISA.Json/ConverterOptions.js +33 -0
- package/ISA/ISA.Json/Data.js +271 -0
- package/ISA/ISA.Json/Decode.js +46 -0
- package/ISA/ISA.Json/Factor.js +194 -0
- package/ISA/ISA.Json/GEncode.js +15 -0
- package/ISA/ISA.Json/Investigation.js +132 -0
- package/ISA/ISA.Json/Material.js +233 -0
- package/ISA/ISA.Json/Ontology.js +204 -0
- package/ISA/ISA.Json/Person.js +204 -0
- package/ISA/ISA.Json/Process.js +291 -0
- package/ISA/ISA.Json/Protocol.js +242 -0
- package/ISA/ISA.Json/Publication.js +92 -0
- package/ISA/ISA.Json/Study.js +230 -0
- package/ISA/ISA.Json/Validation/Fable.js +69 -0
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
- package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
- package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
- package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
- package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
- package/README.md +277 -0
- package/SemVer.js +60 -0
- package/Templates/Templates.Json.js +40 -0
- package/Templates/Templates.Spreadsheet.js +315 -0
- package/Templates/Templates.js +179 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
- package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
- package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
- package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
- package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Async.js +158 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
- package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
- package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
- package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
- package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
- package/fable_modules/fable-library.4.1.4/Char.js +169 -0
- package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
- package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
- package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
- package/fable_modules/fable-library.4.1.4/Date.js +451 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
- package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
- package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
- package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
- package/fable_modules/fable-library.4.1.4/Double.js +46 -0
- package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
- package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
- package/fable_modules/fable-library.4.1.4/Event.js +93 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
- package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
- package/fable_modules/fable-library.4.1.4/Global.js +8 -0
- package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
- package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
- package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
- package/fable_modules/fable-library.4.1.4/List.js +1273 -0
- package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Long.js +46 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
- package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
- package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
- package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Native.js +8 -0
- package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
- package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
- package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Option.js +96 -0
- package/fable_modules/fable-library.4.1.4/README.md +3 -0
- package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
- package/fable_modules/fable-library.4.1.4/Random.js +170 -0
- package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Range.js +45 -0
- package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
- package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
- package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
- package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
- package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
- package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
- package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
- package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
- package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
- package/fable_modules/fable-library.4.1.4/String.js +540 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
- package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
- package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
- package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
- package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
- package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
- package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
- package/fable_modules/fable-library.4.1.4/Types.js +208 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
- package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
- package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
- package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
- package/fable_modules/fable-library.4.1.4/Util.js +662 -0
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
- package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
- package/fable_modules/fable-library.4.1.4/package.json +23 -0
- package/fable_modules/project_cracked.json +1 -0
- package/package.json +22 -0
package/ISA/ISA/Regex.js
ADDED
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { create, match } from "../../fable_modules/fable-library.4.1.4/RegExp.js";
|
|
2
|
+
import { value as value_1, map, some } from "../../fable_modules/fable-library.4.1.4/Option.js";
|
|
3
|
+
import { parse } from "../../fable_modules/fable-library.4.1.4/Int32.js";
|
|
4
|
+
|
|
5
|
+
export const Pattern_ExcelNumberFormat = `"(?<${"numberFormat"}>(.*?))"`;
|
|
6
|
+
|
|
7
|
+
export const Pattern_TermAnnotationShortPattern = `(?<${"idspace"}>\\w+?):(?<${"localid"}>\\w+)`;
|
|
8
|
+
|
|
9
|
+
export const Pattern_TermAnnotationURIPattern = `http://purl.obolibrary.org/obo/(?<${"idspace"}>\\w+?)_(?<${"localid"}>\\w+)`;
|
|
10
|
+
|
|
11
|
+
export const Pattern_TermAnnotationURIPattern_lessRestrictive = `.*\\/(?<${"idspace"}>\\w+?)[:_](?<${"localid"}>\\w+)`;
|
|
12
|
+
|
|
13
|
+
export const Pattern_IOTypePattern = `(Input|Output)\\s\\[(?<${"iotype"}>.+)\\]`;
|
|
14
|
+
|
|
15
|
+
export const Pattern_InputPattern = `Input\\s\\[(?<${"iotype"}>.+)\\]`;
|
|
16
|
+
|
|
17
|
+
export const Pattern_OutputPattern = `Output\\s\\[(?<${"iotype"}>.+)\\]`;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Matches, if the input string matches the given regex pattern.
|
|
21
|
+
*/
|
|
22
|
+
export function ActivePatterns_$007CRegex$007C_$007C(pattern, input) {
|
|
23
|
+
const m = match(create(pattern), input.trim());
|
|
24
|
+
if (m != null) {
|
|
25
|
+
return m;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return void 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Matches any column header starting with some text, followed by one whitespace and a term name inside squared brackets.
|
|
34
|
+
*/
|
|
35
|
+
export function ActivePatterns_$007CReferenceColumnHeader$007C_$007C(input) {
|
|
36
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(Term Source REF|Term Accession Number)\\s\\((?<id>.*)\\)", input);
|
|
37
|
+
if (activePatternResult != null) {
|
|
38
|
+
const r = activePatternResult;
|
|
39
|
+
return {
|
|
40
|
+
Annotation: (r.groups && r.groups.id) || "",
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return void 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Matches any column header starting with some text, followed by one whitespace and a term name inside squared brackets.
|
|
50
|
+
*/
|
|
51
|
+
export function ActivePatterns_$007CTermColumn$007C_$007C(input) {
|
|
52
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<termcolumntype>.+)\\s\\[(?<termname>.+)\\]", input);
|
|
53
|
+
if (activePatternResult != null) {
|
|
54
|
+
const r = activePatternResult;
|
|
55
|
+
return {
|
|
56
|
+
TermColumnType: (r.groups && r.groups.termcolumntype) || "",
|
|
57
|
+
TermName: (r.groups && r.groups.termname) || "",
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return void 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Matches a "Unit" column header.
|
|
67
|
+
*/
|
|
68
|
+
export function ActivePatterns_$007CUnitColumnHeader$007C_$007C(input) {
|
|
69
|
+
if (ActivePatterns_$007CRegex$007C_$007C("Unit", input) != null) {
|
|
70
|
+
return some(void 0);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return void 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Matches a "Parameter [Term]" or "Parameter Value [Term]" column header and returns the Term string.
|
|
79
|
+
*/
|
|
80
|
+
export function ActivePatterns_$007CParameterColumnHeader$007C_$007C(input) {
|
|
81
|
+
const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
|
|
82
|
+
if (activePatternResult != null) {
|
|
83
|
+
const r = activePatternResult;
|
|
84
|
+
const matchValue = r.TermColumnType;
|
|
85
|
+
switch (matchValue) {
|
|
86
|
+
case "Parameter":
|
|
87
|
+
case "Parameter Value":
|
|
88
|
+
return r.TermName;
|
|
89
|
+
default:
|
|
90
|
+
return void 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return void 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Matches a "Factor [Term]" or "Factor Value [Term]" column header and returns the Term string.
|
|
100
|
+
*/
|
|
101
|
+
export function ActivePatterns_$007CFactorColumnHeader$007C_$007C(input) {
|
|
102
|
+
const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
|
|
103
|
+
if (activePatternResult != null) {
|
|
104
|
+
const r = activePatternResult;
|
|
105
|
+
const matchValue = r.TermColumnType;
|
|
106
|
+
switch (matchValue) {
|
|
107
|
+
case "Factor":
|
|
108
|
+
case "Factor Value":
|
|
109
|
+
return r.TermName;
|
|
110
|
+
default:
|
|
111
|
+
return void 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return void 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Matches a "Characteristic [Term]" or "Characteristics [Term]" or "Characteristics Value [Term]" column header and returns the Term string.
|
|
121
|
+
*/
|
|
122
|
+
export function ActivePatterns_$007CCharacteristicColumnHeader$007C_$007C(input) {
|
|
123
|
+
const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
|
|
124
|
+
if (activePatternResult != null) {
|
|
125
|
+
const r = activePatternResult;
|
|
126
|
+
const matchValue = r.TermColumnType;
|
|
127
|
+
switch (matchValue) {
|
|
128
|
+
case "Characteristic":
|
|
129
|
+
case "Characteristics":
|
|
130
|
+
case "Characteristics Value":
|
|
131
|
+
return r.TermName;
|
|
132
|
+
default:
|
|
133
|
+
return void 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
return void 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Matches a "Component [Term]" or "Component Value [Term]" column header and returns the Term string.
|
|
143
|
+
*/
|
|
144
|
+
export function ActivePatterns_$007CComponentColumnHeader$007C_$007C(input) {
|
|
145
|
+
const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
|
|
146
|
+
if (activePatternResult != null) {
|
|
147
|
+
const r = activePatternResult;
|
|
148
|
+
const matchValue = r.TermColumnType;
|
|
149
|
+
switch (matchValue) {
|
|
150
|
+
case "Component":
|
|
151
|
+
case "Component Value":
|
|
152
|
+
return r.TermName;
|
|
153
|
+
default:
|
|
154
|
+
return void 0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
return void 0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Matches a short term string and returns the term source ref and the annotation number strings.
|
|
164
|
+
*
|
|
165
|
+
* Example: "MS:1003022" --> term source ref: "MS"; annotation number: "1003022"
|
|
166
|
+
*/
|
|
167
|
+
export function ActivePatterns_$007CTermAnnotationShort$007C_$007C(input) {
|
|
168
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, input);
|
|
169
|
+
if (activePatternResult != null) {
|
|
170
|
+
const value = activePatternResult;
|
|
171
|
+
return {
|
|
172
|
+
IDSpace: (value.groups && value.groups.idspace) || "",
|
|
173
|
+
LocalID: (value.groups && value.groups.localid) || "",
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return void 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Matches a term string (either short or URI) and returns the term source ref and the annotation number strings.
|
|
183
|
+
*
|
|
184
|
+
* Example 1: "MS:1003022" --> term source ref: "MS"; annotation number: "1003022"
|
|
185
|
+
*
|
|
186
|
+
* Example 2: "http://purl.obolibrary.org/obo/MS_1003022" --> term source ref: "MS"; annotation number: "1003022"
|
|
187
|
+
*/
|
|
188
|
+
export function ActivePatterns_$007CTermAnnotation$007C_$007C(input) {
|
|
189
|
+
let matchResult, value;
|
|
190
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, input);
|
|
191
|
+
if (activePatternResult != null) {
|
|
192
|
+
matchResult = 0;
|
|
193
|
+
value = activePatternResult;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern, input);
|
|
197
|
+
if (activePatternResult_1 != null) {
|
|
198
|
+
matchResult = 0;
|
|
199
|
+
value = activePatternResult_1;
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern_lessRestrictive, input);
|
|
203
|
+
if (activePatternResult_2 != null) {
|
|
204
|
+
matchResult = 0;
|
|
205
|
+
value = activePatternResult_2;
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
matchResult = 1;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
switch (matchResult) {
|
|
213
|
+
case 0:
|
|
214
|
+
return {
|
|
215
|
+
IDSpace: (value.groups && value.groups.idspace) || "",
|
|
216
|
+
LocalID: (value.groups && value.groups.localid) || "",
|
|
217
|
+
};
|
|
218
|
+
default:
|
|
219
|
+
return void 0;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Matches a "Term Source REF (ShortTerm)" column header and returns the ShortTerm as Term Source Ref and Annotation Number.
|
|
225
|
+
*
|
|
226
|
+
* Example: "Term Source REF (MS:1003022)" --> term source ref: "MS"; annotation number: "1003022"
|
|
227
|
+
*/
|
|
228
|
+
export function ActivePatterns_$007CTSRColumnHeader$007C_$007C(input) {
|
|
229
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("Term Source REF\\s\\((?<id>.*)\\)", input);
|
|
230
|
+
if (activePatternResult != null) {
|
|
231
|
+
const r = activePatternResult;
|
|
232
|
+
const matchValue = (r.groups && r.groups.id) || "";
|
|
233
|
+
const activePatternResult_1 = ActivePatterns_$007CTermAnnotation$007C_$007C(matchValue);
|
|
234
|
+
if (activePatternResult_1 != null) {
|
|
235
|
+
const r_1 = activePatternResult_1;
|
|
236
|
+
return r_1;
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
return {
|
|
240
|
+
IDSpace: "",
|
|
241
|
+
LocalID: "",
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
return void 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Matches a "Term Accession Number (ShortTerm)" column header and returns the ShortTerm as Term Source Ref and Annotation Number.
|
|
252
|
+
*
|
|
253
|
+
* Example: "Term Accession Number (MS:1003022)" --> term source ref: "MS"; annotation number: "1003022"
|
|
254
|
+
*/
|
|
255
|
+
export function ActivePatterns_$007CTANColumnHeader$007C_$007C(input) {
|
|
256
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("Term Accession Number\\s\\((?<id>.*)\\)", input);
|
|
257
|
+
if (activePatternResult != null) {
|
|
258
|
+
const r = activePatternResult;
|
|
259
|
+
const matchValue = (r.groups && r.groups.id) || "";
|
|
260
|
+
const activePatternResult_1 = ActivePatterns_$007CTermAnnotation$007C_$007C(matchValue);
|
|
261
|
+
if (activePatternResult_1 != null) {
|
|
262
|
+
const r_1 = activePatternResult_1;
|
|
263
|
+
return r_1;
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
return {
|
|
267
|
+
IDSpace: "",
|
|
268
|
+
LocalID: "",
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
return void 0;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Matches a "Input [InputType]" column header and returns the InputType as string.
|
|
279
|
+
*/
|
|
280
|
+
export function ActivePatterns_$007CInputColumnHeader$007C_$007C(input) {
|
|
281
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_InputPattern, input);
|
|
282
|
+
if (activePatternResult != null) {
|
|
283
|
+
const r = activePatternResult;
|
|
284
|
+
return (r.groups && r.groups.iotype) || "";
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
return void 0;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Matches a "Output [OutputType]" column header and returns the OutputType as string.
|
|
293
|
+
*/
|
|
294
|
+
export function ActivePatterns_$007COutputColumnHeader$007C_$007C(input) {
|
|
295
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_OutputPattern, input);
|
|
296
|
+
if (activePatternResult != null) {
|
|
297
|
+
const r = activePatternResult;
|
|
298
|
+
return (r.groups && r.groups.iotype) || "";
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
return void 0;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Matches auto-generated readable table names. Mainly used in ArcAssay.addTable(). Default tables will get such a name.
|
|
307
|
+
*
|
|
308
|
+
* Will match "New Table 10" and return the number `10`.
|
|
309
|
+
*/
|
|
310
|
+
export function ActivePatterns_$007CAutoGeneratedTableName$007C_$007C(input) {
|
|
311
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^New\\sTable\\s(?<number>\\d+)$", input);
|
|
312
|
+
if (activePatternResult != null) {
|
|
313
|
+
const r = activePatternResult;
|
|
314
|
+
return parse((r.groups && r.groups.number) || "", 511, false, 32);
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
return void 0;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export function tryParseReferenceColumnHeader(str) {
|
|
322
|
+
const matchValue = str.trim();
|
|
323
|
+
const activePatternResult = ActivePatterns_$007CReferenceColumnHeader$007C_$007C(matchValue);
|
|
324
|
+
if (activePatternResult != null) {
|
|
325
|
+
const v = activePatternResult;
|
|
326
|
+
return v;
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
return void 0;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export function tryParseTermAnnotationShort(str) {
|
|
334
|
+
const matchValue = str.trim();
|
|
335
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, matchValue);
|
|
336
|
+
if (activePatternResult != null) {
|
|
337
|
+
const value = activePatternResult;
|
|
338
|
+
return {
|
|
339
|
+
IDSpace: (value.groups && value.groups.idspace) || "",
|
|
340
|
+
LocalID: (value.groups && value.groups.localid) || "",
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
return void 0;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* This function can be used to extract `IDSPACE:LOCALID` (or: `Term Accession`) from Swate header strings or obofoundry conform URI strings.
|
|
350
|
+
*
|
|
351
|
+
* **Example 1:** "http://purl.obolibrary.org/obo/GO_000001" --> "GO:000001"
|
|
352
|
+
*
|
|
353
|
+
* **Example 2:** "Term Source REF (NFDI4PSO:0000064)" --> "NFDI4PSO:0000064"
|
|
354
|
+
*/
|
|
355
|
+
export function tryParseTermAnnotation(str) {
|
|
356
|
+
const matchValue = str.trim();
|
|
357
|
+
let matchResult, value;
|
|
358
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, matchValue);
|
|
359
|
+
if (activePatternResult != null) {
|
|
360
|
+
matchResult = 0;
|
|
361
|
+
value = activePatternResult;
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern, matchValue);
|
|
365
|
+
if (activePatternResult_1 != null) {
|
|
366
|
+
matchResult = 0;
|
|
367
|
+
value = activePatternResult_1;
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationURIPattern_lessRestrictive, matchValue);
|
|
371
|
+
if (activePatternResult_2 != null) {
|
|
372
|
+
matchResult = 0;
|
|
373
|
+
value = activePatternResult_2;
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
matchResult = 1;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
switch (matchResult) {
|
|
381
|
+
case 0:
|
|
382
|
+
return {
|
|
383
|
+
IDSpace: (value.groups && value.groups.idspace) || "",
|
|
384
|
+
LocalID: (value.groups && value.groups.localid) || "",
|
|
385
|
+
};
|
|
386
|
+
default:
|
|
387
|
+
return void 0;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Tries to parse 'str' to term accession and returns it in the format `Some "termsourceref:localtan"`. Exmp.: `Some "MS:000001"`
|
|
393
|
+
*/
|
|
394
|
+
export function tryGetTermAnnotationShortString(str) {
|
|
395
|
+
return map((r) => ((r.IDSpace + ":") + r.LocalID), tryParseTermAnnotation(str));
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Parses 'str' to term accession and returns it in the format "termsourceref:localtan". Exmp.: "MS:000001"
|
|
400
|
+
*/
|
|
401
|
+
export function getTermAnnotationShortString(str) {
|
|
402
|
+
const matchValue = tryGetTermAnnotationShortString(str);
|
|
403
|
+
if (matchValue == null) {
|
|
404
|
+
throw new Error(`Unable to parse '${str}' to term accession.`);
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
return matchValue;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* This function is used to parse Excel numberFormat string to term name.
|
|
413
|
+
*
|
|
414
|
+
* **Example 1:** "0.00 "degree Celsius"" --> "degree Celsius"
|
|
415
|
+
*/
|
|
416
|
+
export function tryParseExcelNumberFormat(headerStr) {
|
|
417
|
+
const matchValue = headerStr.trim();
|
|
418
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_ExcelNumberFormat, matchValue);
|
|
419
|
+
if (activePatternResult != null) {
|
|
420
|
+
const value = activePatternResult;
|
|
421
|
+
return (value.groups && value.groups.numberFormat) || "";
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
return void 0;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* This function is used to match both Input and Output columns and capture the IOType as `iotype` group.
|
|
430
|
+
*
|
|
431
|
+
* **Example 1:** "Input [Sample]" --> "Sample"
|
|
432
|
+
*/
|
|
433
|
+
export function tryParseIOTypeHeader(headerStr) {
|
|
434
|
+
const matchValue = headerStr.trim();
|
|
435
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_IOTypePattern, matchValue);
|
|
436
|
+
if (activePatternResult != null) {
|
|
437
|
+
const value = activePatternResult;
|
|
438
|
+
return (value.groups && value.groups.iotype) || "";
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
return void 0;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Matches any column header starting with some text, followed by one whitespace and a term name inside squared brackets.
|
|
447
|
+
*/
|
|
448
|
+
export function tryParseTermColumn(input) {
|
|
449
|
+
const activePatternResult = ActivePatterns_$007CTermColumn$007C_$007C(input);
|
|
450
|
+
if (activePatternResult != null) {
|
|
451
|
+
const r = activePatternResult;
|
|
452
|
+
return r;
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
return void 0;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Matches a "Unit" column header.
|
|
461
|
+
*/
|
|
462
|
+
export function tryParseUnitColumnHeader(input) {
|
|
463
|
+
const activePatternResult = ActivePatterns_$007CUnitColumnHeader$007C_$007C(input);
|
|
464
|
+
if (activePatternResult != null) {
|
|
465
|
+
const r = value_1(activePatternResult);
|
|
466
|
+
return some(void 0);
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
return void 0;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Matches a "Parameter [Term]" or "Parameter Value [Term]" column header and returns the Term string.
|
|
475
|
+
*/
|
|
476
|
+
export function tryParseParameterColumnHeader(input) {
|
|
477
|
+
const activePatternResult = ActivePatterns_$007CParameterColumnHeader$007C_$007C(input);
|
|
478
|
+
if (activePatternResult != null) {
|
|
479
|
+
const r = activePatternResult;
|
|
480
|
+
return r;
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
return void 0;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Matches a "Factor [Term]" or "Factor Value [Term]" column header and returns the Term string.
|
|
489
|
+
*/
|
|
490
|
+
export function tryParseFactorColumnHeader(input) {
|
|
491
|
+
const activePatternResult = ActivePatterns_$007CFactorColumnHeader$007C_$007C(input);
|
|
492
|
+
if (activePatternResult != null) {
|
|
493
|
+
const r = activePatternResult;
|
|
494
|
+
return r;
|
|
495
|
+
}
|
|
496
|
+
else {
|
|
497
|
+
return void 0;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Matches a "Characteristic [Term]" or "Characteristics [Term]" or "Characteristics Value [Term]" column header and returns the Term string.
|
|
503
|
+
*/
|
|
504
|
+
export function tryParseCharacteristicColumnHeader(input) {
|
|
505
|
+
const activePatternResult = ActivePatterns_$007CCharacteristicColumnHeader$007C_$007C(input);
|
|
506
|
+
if (activePatternResult != null) {
|
|
507
|
+
const r = activePatternResult;
|
|
508
|
+
return r;
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
return void 0;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Matches a "Component [Term]" or "Characteristics [Term]" or "Component Value [Term]" column header and returns the Term string.
|
|
517
|
+
*/
|
|
518
|
+
export function tryParseComponentColumnHeader(input) {
|
|
519
|
+
const activePatternResult = ActivePatterns_$007CComponentColumnHeader$007C_$007C(input);
|
|
520
|
+
if (activePatternResult != null) {
|
|
521
|
+
const r = activePatternResult;
|
|
522
|
+
return r;
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
return void 0;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Matches a "Term Source REF (ShortTerm)" column header and returns the ShortTerm as Term Source Ref and Annotation Number.
|
|
531
|
+
*
|
|
532
|
+
* Example: "Term Source REF (MS:1003022)" --> term source ref: "MS"; annotation number: "1003022"
|
|
533
|
+
*/
|
|
534
|
+
export function tryParseTSRColumnHeader(input) {
|
|
535
|
+
const activePatternResult = ActivePatterns_$007CTSRColumnHeader$007C_$007C(input);
|
|
536
|
+
if (activePatternResult != null) {
|
|
537
|
+
const r = activePatternResult;
|
|
538
|
+
return r;
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
return void 0;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Matches a "Term Accession Number (ShortTerm)" column header and returns the ShortTerm as Term Source Ref and Annotation Number.
|
|
547
|
+
*
|
|
548
|
+
* Example: "Term Accession Number (MS:1003022)" --> term source ref: "MS"; annotation number: "1003022"
|
|
549
|
+
*/
|
|
550
|
+
export function tryParseTANColumnHeader(input) {
|
|
551
|
+
const activePatternResult = ActivePatterns_$007CTANColumnHeader$007C_$007C(input);
|
|
552
|
+
if (activePatternResult != null) {
|
|
553
|
+
const r = activePatternResult;
|
|
554
|
+
return r;
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
return void 0;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Matches a "Input [InputType]" column header and returns the InputType as string.
|
|
563
|
+
*/
|
|
564
|
+
export function tryParseInputColumnHeader(input) {
|
|
565
|
+
const activePatternResult = ActivePatterns_$007CInputColumnHeader$007C_$007C(input);
|
|
566
|
+
if (activePatternResult != null) {
|
|
567
|
+
const r = activePatternResult;
|
|
568
|
+
return r;
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
return void 0;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Matches a "Output [OutputType]" column header and returns the OutputType as string.
|
|
577
|
+
*/
|
|
578
|
+
export function tryParseOutputColumnHeader(input) {
|
|
579
|
+
const activePatternResult = ActivePatterns_$007COutputColumnHeader$007C_$007C(input);
|
|
580
|
+
if (activePatternResult != null) {
|
|
581
|
+
const r = activePatternResult;
|
|
582
|
+
return r;
|
|
583
|
+
}
|
|
584
|
+
else {
|
|
585
|
+
return void 0;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|