@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4
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/README.md +2 -0
- package/dist/ts/index.js +63 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
- package/dist/ts/ts/ARC.js +914 -0
- package/dist/ts/ts/Contract/ARC.js +52 -0
- package/dist/ts/ts/Contract/ArcAssay.js +80 -0
- package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
- package/dist/ts/ts/Contract/ArcRun.js +76 -0
- package/dist/ts/ts/Contract/ArcStudy.js +76 -0
- package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
- package/dist/ts/ts/Contract/Contract.js +45 -0
- package/dist/ts/ts/Contract/Datamap.js +221 -0
- package/dist/ts/ts/Contract/Git.js +57 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
- package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
- package/dist/ts/ts/Conversion.js +1247 -0
- package/dist/ts/ts/Core/ArcTypes.js +3393 -0
- package/dist/ts/ts/Core/Comment.js +91 -0
- package/dist/ts/ts/Core/CommentList.js +27 -0
- package/dist/ts/ts/Core/Conversion.js +923 -0
- package/dist/ts/ts/Core/Data.js +179 -0
- package/dist/ts/ts/Core/DataContext.js +108 -0
- package/dist/ts/ts/Core/DataFile.js +50 -0
- package/dist/ts/ts/Core/DataMap.js +53 -0
- package/dist/ts/ts/Core/Helper/Collections.js +323 -0
- package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
- package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
- package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
- package/dist/ts/ts/Core/Helper/Regex.js +296 -0
- package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
- package/dist/ts/ts/Core/Helper/Url.js +32 -0
- package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
- package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
- package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
- package/dist/ts/ts/Core/Person.js +183 -0
- package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
- package/dist/ts/ts/Core/Process/Component.js +121 -0
- package/dist/ts/ts/Core/Process/Factor.js +104 -0
- package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
- package/dist/ts/ts/Core/Process/Material.js +49 -0
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
- package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
- package/dist/ts/ts/Core/Process/Process.js +136 -0
- package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
- package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
- package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
- package/dist/ts/ts/Core/Process/Protocol.js +54 -0
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
- package/dist/ts/ts/Core/Process/Sample.js +44 -0
- package/dist/ts/ts/Core/Process/Source.js +38 -0
- package/dist/ts/ts/Core/Publication.js +108 -0
- package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
- package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
- package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
- package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
- package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
- package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
- package/dist/ts/ts/Core/Template.js +180 -0
- package/dist/ts/ts/Core/Templates.js +75 -0
- package/dist/ts/ts/Core/URI.js +8 -0
- package/dist/ts/ts/Core/Value.js +194 -0
- package/dist/ts/ts/CrossAsync.js +20 -0
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
- package/dist/ts/ts/FileSystem/Path.js +36 -0
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +221 -0
- package/dist/ts/ts/Json/Comment.d.ts +1 -1
- package/dist/ts/ts/Json/Comment.js +112 -0
- package/dist/ts/ts/Json/Data.d.ts +1 -1
- package/dist/ts/ts/Json/Data.js +138 -0
- package/dist/ts/ts/Json/DataFile.d.ts +1 -1
- package/dist/ts/ts/Json/DataFile.js +55 -0
- package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
- package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
- package/dist/ts/ts/Json/Decode.d.ts +2 -2
- package/dist/ts/ts/Json/Decode.js +209 -0
- package/dist/ts/ts/Json/Encode.d.ts +1 -1
- package/dist/ts/ts/Json/Encode.js +65 -0
- package/dist/ts/ts/Json/IDTable.d.ts +1 -1
- package/dist/ts/ts/Json/IDTable.js +28 -0
- package/dist/ts/ts/Json/Investigation.d.ts +1 -1
- package/dist/ts/ts/Json/Investigation.js +229 -0
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
- package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
- package/dist/ts/ts/Json/Person.d.ts +1 -1
- package/dist/ts/ts/Json/Person.js +316 -0
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
- package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Component.js +41 -0
- package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +53 -0
- package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
- package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Material.js +112 -0
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
- package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
- package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Process.js +103 -0
- package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
- package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
- package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +166 -0
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
- package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +165 -0
- package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Source.js +133 -0
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
- package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Value.js +41 -0
- package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +280 -0
- package/dist/ts/ts/Json/Publication.d.ts +1 -1
- package/dist/ts/ts/Json/Publication.js +123 -0
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
- package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
- package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
- package/dist/ts/ts/Json/StringTable.d.ts +1 -1
- package/dist/ts/ts/Json/StringTable.js +66 -0
- package/dist/ts/ts/Json/Study.d.ts +1 -1
- package/dist/ts/ts/Json/Study.js +326 -0
- package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
- package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CellTable.js +53 -0
- package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
- package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
- package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
- package/dist/ts/ts/Json/Table/IOType.js +15 -0
- package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +50 -0
- package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/Json/Table/Templates.js +15 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
- package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
- package/dist/ts/ts/Json.js +171 -0
- package/dist/ts/ts/JsonIO/Assay.js +77 -0
- package/dist/ts/ts/JsonIO/Investigation.js +77 -0
- package/dist/ts/ts/JsonIO/LDObject.js +77 -0
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
- package/dist/ts/ts/JsonIO/Study.js +77 -0
- package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
- package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
- package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
- package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
- package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
- package/dist/ts/ts/ROCrate/Helper.js +7 -0
- package/dist/ts/ts/ROCrate/LDContext.js +288 -0
- package/dist/ts/ts/ROCrate/LDObject.js +855 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
- package/dist/ts/ts/ROCrateIO.d.ts +1 -1
- package/dist/ts/ts/ROCrateIO.js +58 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
- package/dist/ts/ts/Template.Web.js +22 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
- package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
- package/dist/ts/ts/Xlsx.d.ts +1 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +91 -0
- package/dist/ts/ts/Yaml/Encode.js +8 -0
- package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
- package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
- package/package.json +10 -7
- package/dist/ts/__vite-browser-external-2447137e.js +0 -4
- package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
- package/dist/ts/arctrl.cjs.js +0 -5691
- package/dist/ts/arctrl.es.js +0 -35562
- package/dist/ts/arctrl.umd.js +0 -5691
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ofArray, map, empty, cons, reverse } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { value, unwrap, map as map$1, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
4
|
+
import { createMissingIdentifier, Assay_tryIdentifierFromFileName, Run_fileNameFromIdentifier } from '../../Core/Helper/Identifier.js';
|
|
5
|
+
import { Option_fromValueWithDefault, ResizeArray_iter } from '../../Core/Helper/Collections.js';
|
|
6
|
+
import { JsonTypes_decomposeTechnologyPlatform, JsonTypes_composeTechnologyPlatform } from '../../Core/Conversion.js';
|
|
7
|
+
import { ArcRun } from '../../Core/ArcTypes.js';
|
|
8
|
+
import { Comment_fromString, Comment_toString } from './Comment.js';
|
|
9
|
+
import { SparseTable_FromRows_Z5579EC29, SparseTable__TryGetValueDefault_5BAE6133, SparseTable__TryGetValue_11FD62A8, SparseTable_ToRows_759CAFC1, SparseTable_Create_Z2192E64B, SparseTable } from './SparseTable.js';
|
|
10
|
+
import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
11
|
+
import { addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
12
|
+
import { List_distinct } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
13
|
+
import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
14
|
+
|
|
15
|
+
const labels = ofArray(["Identifier", "Title", "Description", "Workflow Identifiers", "Measurement Type", "Measurement Type Term Accession Number", "Measurement Type Term Source REF", "Technology Type", "Technology Type Term Accession Number", "Technology Type Term Source REF", "Technology Platform", "File Name"]);
|
|
16
|
+
function fromString(identifier, title, description, workflowIdentifiers, measurementType, measurementTypeTermSourceREF, measurementTypeTermAccessionNumber, technologyType, technologyTypeTermSourceREF, technologyTypeTermAccessionNumber, technologyPlatform, fileName, comments) {
|
|
17
|
+
let workflowIdentifiers_1;
|
|
18
|
+
if (workflowIdentifiers == null) {
|
|
19
|
+
workflowIdentifiers_1 = [];
|
|
20
|
+
} else {
|
|
21
|
+
const wi = value(workflowIdentifiers);
|
|
22
|
+
const collection = wi.split(";");
|
|
23
|
+
workflowIdentifiers_1 = Array.from(collection);
|
|
24
|
+
}
|
|
25
|
+
const measurementType_1 = OntologyAnnotation.create(unwrap(measurementType), unwrap(measurementTypeTermSourceREF), unwrap(measurementTypeTermAccessionNumber));
|
|
26
|
+
const technologyType_1 = OntologyAnnotation.create(unwrap(technologyType), unwrap(technologyTypeTermSourceREF), unwrap(technologyTypeTermAccessionNumber));
|
|
27
|
+
let identifier_4;
|
|
28
|
+
if (identifier == null) {
|
|
29
|
+
if (fileName == null) {
|
|
30
|
+
identifier_4 = createMissingIdentifier();
|
|
31
|
+
} else {
|
|
32
|
+
const matchValue = Assay_tryIdentifierFromFileName(value(fileName));
|
|
33
|
+
identifier_4 = matchValue != null ? value(matchValue) : createMissingIdentifier();
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
identifier_4 = value(identifier);
|
|
37
|
+
}
|
|
38
|
+
const measurementType_2 = Option_fromValueWithDefault(new OntologyAnnotation(), measurementType_1);
|
|
39
|
+
const technologyType_2 = Option_fromValueWithDefault(new OntologyAnnotation(), technologyType_1);
|
|
40
|
+
const technologyPlatform_1 = map$1(JsonTypes_decomposeTechnologyPlatform, technologyPlatform);
|
|
41
|
+
return ArcRun.make(identifier_4, title, description, measurementType_2, technologyType_2, technologyPlatform_1, workflowIdentifiers_1, [], void 0, [], comments);
|
|
42
|
+
}
|
|
43
|
+
function fromSparseTable(matrix) {
|
|
44
|
+
let comments;
|
|
45
|
+
const collection = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
|
|
46
|
+
comments = Array.from(collection);
|
|
47
|
+
return fromString(SparseTable__TryGetValue_11FD62A8(matrix, ["Identifier", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Title", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Description", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Workflow Identifiers", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Measurement Type", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Measurement Type Term Source REF", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Measurement Type Term Accession Number", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Type", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Type Term Source REF", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Type Term Accession Number", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Platform", 0]), SparseTable__TryGetValue_11FD62A8(matrix, ["File Name", 0]), comments);
|
|
48
|
+
}
|
|
49
|
+
function toSparseTable(run) {
|
|
50
|
+
const matrix = SparseTable_Create_Z2192E64B(void 0, labels, void 0, 2);
|
|
51
|
+
let commentKeys = empty();
|
|
52
|
+
const patternInput = run.Identifier.startsWith("MISSING_IDENTIFIER_") ? ["", ""] : [run.Identifier, Run_fileNameFromIdentifier(run.Identifier)];
|
|
53
|
+
const workflowIdentifiers = join(";", run.WorkflowIdentifiers);
|
|
54
|
+
let mt_1;
|
|
55
|
+
const mt = defaultArg(run.MeasurementType, new OntologyAnnotation());
|
|
56
|
+
mt_1 = OntologyAnnotation.toStringObject(mt, true);
|
|
57
|
+
let tt_1;
|
|
58
|
+
const tt = defaultArg(run.TechnologyType, new OntologyAnnotation());
|
|
59
|
+
tt_1 = OntologyAnnotation.toStringObject(tt, true);
|
|
60
|
+
addToDict(matrix.Matrix, ["Identifier", 1], patternInput[0]);
|
|
61
|
+
addToDict(matrix.Matrix, ["Title", 1], defaultArg(run.Title, ""));
|
|
62
|
+
addToDict(matrix.Matrix, ["Description", 1], defaultArg(run.Description, ""));
|
|
63
|
+
addToDict(matrix.Matrix, ["Workflow Identifiers", 1], workflowIdentifiers);
|
|
64
|
+
addToDict(matrix.Matrix, ["Measurement Type", 1], mt_1.TermName);
|
|
65
|
+
addToDict(matrix.Matrix, ["Measurement Type Term Accession Number", 1], mt_1.TermAccessionNumber);
|
|
66
|
+
addToDict(matrix.Matrix, ["Measurement Type Term Source REF", 1], mt_1.TermSourceREF);
|
|
67
|
+
addToDict(matrix.Matrix, ["Technology Type", 1], tt_1.TermName);
|
|
68
|
+
addToDict(matrix.Matrix, ["Technology Type Term Accession Number", 1], tt_1.TermAccessionNumber);
|
|
69
|
+
addToDict(matrix.Matrix, ["Technology Type Term Source REF", 1], tt_1.TermSourceREF);
|
|
70
|
+
addToDict(matrix.Matrix, ["Technology Platform", 1], defaultArg(map$1(JsonTypes_composeTechnologyPlatform, run.TechnologyPlatform), ""));
|
|
71
|
+
addToDict(matrix.Matrix, ["File Name", 1], patternInput[1]);
|
|
72
|
+
ResizeArray_iter((comment) => {
|
|
73
|
+
const patternInput_1 = Comment_toString(comment);
|
|
74
|
+
const n = patternInput_1[0];
|
|
75
|
+
commentKeys = cons(n, commentKeys);
|
|
76
|
+
addToDict(matrix.Matrix, [n, 1], patternInput_1[1]);
|
|
77
|
+
}, run.Comments);
|
|
78
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
79
|
+
Equals: (x, y) => x === y,
|
|
80
|
+
GetHashCode: stringHash
|
|
81
|
+
})), matrix.ColumnCount);
|
|
82
|
+
}
|
|
83
|
+
function fromRows(lineNumber, rows) {
|
|
84
|
+
const tupledArg = SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber, "Run");
|
|
85
|
+
return [tupledArg[0], tupledArg[1], tupledArg[2], fromSparseTable(tupledArg[3])];
|
|
86
|
+
}
|
|
87
|
+
function toRows(run) {
|
|
88
|
+
return SparseTable_ToRows_759CAFC1(toSparseTable(run), "Run");
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { fromRows, fromSparseTable, fromString, labels, toRows, toSparseTable };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
2
2
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { IEnumerator, IEquatable, IMap } from '@fable-org/fable-library-js/Util.js';
|
|
4
|
-
import { FsRow } from '../../fable_modules/FsSpreadsheet.
|
|
5
|
-
import { RowElement_$union } from '../../fable_modules/FsSpreadsheet.
|
|
4
|
+
import { FsRow } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js';
|
|
5
|
+
import { RowElement_$union } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js';
|
|
6
6
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
7
|
-
import { FsWorksheet } from '../../fable_modules/FsSpreadsheet.
|
|
7
|
+
import { FsWorksheet } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
8
8
|
import { Record } from '@fable-org/fable-library-js/Types.js';
|
|
9
9
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
10
10
|
import { Comment$, Remark } from '../../Core/Comment.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SparseTable.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/Metadata/SparseTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAgC,MAAM,EAAgB,MAAM,uCAAuC,CAAC;AAE3G,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAA6B,MAAM,qCAAqC,CAAC;AAE/G,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SparseTable.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/Metadata/SparseTable.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { iterate, indexed, choose, tryPick, map, tryItem, isEmpty, maxBy, length, delay, append as append$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
|
+
import { value, map as map$1, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { equals, comparePrimitives } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
|
+
import { Record } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
5
|
+
import { FsAddress } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js';
|
|
6
|
+
import { exists, find, cons, empty, append, singleton, map as map$2, initialize } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
7
|
+
import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
8
|
+
import { FsRangeAddress } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js';
|
|
9
|
+
import { Seq_trySkip, Dictionary_tryGetValue } from '../CollectionAux.js';
|
|
10
|
+
import { getItemFromDict, addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
11
|
+
import { Dictionary_init } from '../../Core/Helper/Collections.js';
|
|
12
|
+
import { Remark, Comment$ } from '../../Core/Comment.js';
|
|
13
|
+
import { Comment_$007CComment$007C_$007C, Remark_$007CRemark$007C_$007C, Comment_wrapCommentKey } from './Comment.js';
|
|
14
|
+
|
|
15
|
+
function SparseRowModule_fromValues(v) {
|
|
16
|
+
return indexed(v);
|
|
17
|
+
}
|
|
18
|
+
function SparseRowModule_fromFsRow(r) {
|
|
19
|
+
return choose((c) => {
|
|
20
|
+
if (equals(c.Value, "")) {
|
|
21
|
+
return void 0;
|
|
22
|
+
} else {
|
|
23
|
+
return [c.ColumnNumber - 1, c.ValueAsString()];
|
|
24
|
+
}
|
|
25
|
+
}, r.Cells);
|
|
26
|
+
}
|
|
27
|
+
function SparseRowModule_tryGetValueAt(i, vs) {
|
|
28
|
+
return tryPick((tupledArg) => {
|
|
29
|
+
if (tupledArg[0] === i) {
|
|
30
|
+
return tupledArg[1];
|
|
31
|
+
} else {
|
|
32
|
+
return void 0;
|
|
33
|
+
}
|
|
34
|
+
}, vs);
|
|
35
|
+
}
|
|
36
|
+
function SparseRowModule_writeToSheet(rowI, row, sheet) {
|
|
37
|
+
const fsRow = sheet.RowWithRange(new FsRangeAddress(new FsAddress(rowI, 1), new FsAddress(rowI, 1)), true);
|
|
38
|
+
iterate((tupledArg) => {
|
|
39
|
+
const v = tupledArg[1];
|
|
40
|
+
if (v.trim() !== "") {
|
|
41
|
+
fsRow.Item(tupledArg[0] + 1).SetValueAs(v);
|
|
42
|
+
}
|
|
43
|
+
}, row);
|
|
44
|
+
}
|
|
45
|
+
class SparseTable extends Record {
|
|
46
|
+
constructor(Matrix, Keys, CommentKeys, ColumnCount) {
|
|
47
|
+
super();
|
|
48
|
+
this.Matrix = Matrix;
|
|
49
|
+
this.Keys = Keys;
|
|
50
|
+
this.CommentKeys = CommentKeys;
|
|
51
|
+
this.ColumnCount = ColumnCount | 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function SparseTable__TryGetValue_11FD62A8(this$, key) {
|
|
55
|
+
return Dictionary_tryGetValue(key, this$.Matrix);
|
|
56
|
+
}
|
|
57
|
+
function SparseTable__TryGetValueDefault_5BAE6133(this$, defaultValue, key) {
|
|
58
|
+
if (this$.Matrix.has(key)) {
|
|
59
|
+
return getItemFromDict(this$.Matrix, key);
|
|
60
|
+
} else {
|
|
61
|
+
return defaultValue;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function SparseTable_Create_Z2192E64B(matrix, keys, commentKeys, length) {
|
|
65
|
+
return new SparseTable(defaultArg(matrix, Dictionary_init()), defaultArg(keys, empty()), defaultArg(commentKeys, empty()), defaultArg(length, 0));
|
|
66
|
+
}
|
|
67
|
+
function SparseTable_AddRow(key, values, matrix) {
|
|
68
|
+
iterate((tupledArg) => {
|
|
69
|
+
addToDict(matrix.Matrix, [key, tupledArg[0]], tupledArg[1]);
|
|
70
|
+
}, values);
|
|
71
|
+
const length = (isEmpty(values) ? 0 : 1 + maxBy((tuple) => tuple[0], values, {
|
|
72
|
+
Compare: comparePrimitives
|
|
73
|
+
})[0]) | 0;
|
|
74
|
+
return new SparseTable(matrix.Matrix, append(matrix.Keys, singleton(key)), matrix.CommentKeys, length > matrix.ColumnCount ? length : matrix.ColumnCount);
|
|
75
|
+
}
|
|
76
|
+
function SparseTable_AddEmptyComment(key, matrix) {
|
|
77
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, append(matrix.CommentKeys, singleton(key)), matrix.ColumnCount);
|
|
78
|
+
}
|
|
79
|
+
function SparseTable_AddComment(key, values, matrix) {
|
|
80
|
+
if (length(values) === 0) {
|
|
81
|
+
return SparseTable_AddEmptyComment(key, matrix);
|
|
82
|
+
} else {
|
|
83
|
+
iterate((tupledArg) => {
|
|
84
|
+
addToDict(matrix.Matrix, [key, tupledArg[0]], tupledArg[1]);
|
|
85
|
+
}, values);
|
|
86
|
+
const length = (isEmpty(values) ? 0 : 1 + maxBy((tuple) => tuple[0], values, {
|
|
87
|
+
Compare: comparePrimitives
|
|
88
|
+
})[0]) | 0;
|
|
89
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, append(matrix.CommentKeys, singleton(key)), length > matrix.ColumnCount ? length : matrix.ColumnCount);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function SparseTable_FromRows_Z5579EC29(en, labels, lineNumber, prefix) {
|
|
93
|
+
try {
|
|
94
|
+
const prefix_1 = prefix == null ? "" : value(prefix) + " ";
|
|
95
|
+
const loop = (matrix_mut, remarks_mut, lineNumber_1_mut) => {
|
|
96
|
+
let v_2, k_1;
|
|
97
|
+
loop:
|
|
98
|
+
while (true) {
|
|
99
|
+
const matrix = matrix_mut, remarks = remarks_mut, lineNumber_1 = lineNumber_1_mut;
|
|
100
|
+
if (en["System.Collections.IEnumerator.MoveNext"]()) {
|
|
101
|
+
const row = map((tupledArg) => [tupledArg[0] - 1, tupledArg[1]], en["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
102
|
+
const matchValue = map$1((tuple) => tuple[1], tryItem(0, row));
|
|
103
|
+
const vals = Seq_trySkip(1, row);
|
|
104
|
+
const key = matchValue;
|
|
105
|
+
let matchResult, k, v_1;
|
|
106
|
+
if (key != null) {
|
|
107
|
+
const activePatternResult = Comment_$007CComment$007C_$007C(value(key));
|
|
108
|
+
if (activePatternResult != null) {
|
|
109
|
+
if (vals != null) {
|
|
110
|
+
matchResult = 0;
|
|
111
|
+
k = value(activePatternResult);
|
|
112
|
+
v_1 = value(vals);
|
|
113
|
+
} else {
|
|
114
|
+
matchResult = 1;
|
|
115
|
+
}
|
|
116
|
+
} else {
|
|
117
|
+
matchResult = 1;
|
|
118
|
+
}
|
|
119
|
+
} else {
|
|
120
|
+
matchResult = 1;
|
|
121
|
+
}
|
|
122
|
+
switch (matchResult) {
|
|
123
|
+
case 0: {
|
|
124
|
+
matrix_mut = SparseTable_AddComment(k, v_1, matrix);
|
|
125
|
+
remarks_mut = remarks;
|
|
126
|
+
lineNumber_1_mut = lineNumber_1 + 1;
|
|
127
|
+
continue loop;
|
|
128
|
+
}
|
|
129
|
+
default: {
|
|
130
|
+
let matchResult_1, k_2, k_3, v_3, k_4;
|
|
131
|
+
const activePatternResult_1 = Remark_$007CRemark$007C_$007C(key);
|
|
132
|
+
if (activePatternResult_1 != null) {
|
|
133
|
+
matchResult_1 = 0;
|
|
134
|
+
k_2 = value(activePatternResult_1);
|
|
135
|
+
} else if (key != null) {
|
|
136
|
+
if (vals != null) {
|
|
137
|
+
if (v_2 = value(vals), k_1 = value(key), exists((label) => k_1 === prefix_1 + label, labels)) {
|
|
138
|
+
matchResult_1 = 1;
|
|
139
|
+
k_3 = value(key);
|
|
140
|
+
v_3 = value(vals);
|
|
141
|
+
} else {
|
|
142
|
+
matchResult_1 = 2;
|
|
143
|
+
k_4 = value(key);
|
|
144
|
+
}
|
|
145
|
+
} else {
|
|
146
|
+
matchResult_1 = 2;
|
|
147
|
+
k_4 = value(key);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
matchResult_1 = 3;
|
|
151
|
+
}
|
|
152
|
+
switch (matchResult_1) {
|
|
153
|
+
case 0: {
|
|
154
|
+
matrix_mut = matrix;
|
|
155
|
+
remarks_mut = cons(Remark.make(lineNumber_1, k_2), remarks);
|
|
156
|
+
lineNumber_1_mut = lineNumber_1 + 1;
|
|
157
|
+
continue loop;
|
|
158
|
+
}
|
|
159
|
+
case 1: {
|
|
160
|
+
matrix_mut = SparseTable_AddRow(find((label_1) => k_3 === prefix_1 + label_1, labels), v_3, matrix);
|
|
161
|
+
remarks_mut = remarks;
|
|
162
|
+
lineNumber_1_mut = lineNumber_1 + 1;
|
|
163
|
+
continue loop;
|
|
164
|
+
}
|
|
165
|
+
case 2:
|
|
166
|
+
return [k_4, lineNumber_1, remarks, matrix];
|
|
167
|
+
default:
|
|
168
|
+
return [void 0, lineNumber_1, remarks, matrix];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
} else {
|
|
173
|
+
return [void 0, lineNumber_1, remarks, matrix];
|
|
174
|
+
}
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
return loop(SparseTable_Create_Z2192E64B(), empty(), lineNumber);
|
|
179
|
+
} catch (err) {
|
|
180
|
+
const arg_1 = err.message;
|
|
181
|
+
return toFail(printf("Error parsing block in investigation file starting from line number %i: %s"))(lineNumber)(arg_1);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function SparseTable_ToRows_759CAFC1(matrix, prefix) {
|
|
185
|
+
const prefix_1 = prefix == null ? "" : value(prefix) + " ";
|
|
186
|
+
return delay(() => append$1(map((key) => SparseRowModule_fromValues(cons(prefix_1 + key, initialize(matrix.ColumnCount - 1, (i) => SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [key, i + 1])))), matrix.Keys), delay(() => map((key_1) => SparseRowModule_fromValues(cons(Comment_wrapCommentKey(key_1), initialize(matrix.ColumnCount - 1, (i_1) => SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [key_1, i_1 + 1])))), matrix.CommentKeys))));
|
|
187
|
+
}
|
|
188
|
+
function SparseTable_GetEmptyComments_3ECCA699(matrix) {
|
|
189
|
+
const collection = map$2((key) => Comment$.create(key), matrix.CommentKeys);
|
|
190
|
+
return Array.from(collection);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export { SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseRowModule_writeToSheet, SparseTable, SparseTable_AddComment, SparseTable_AddEmptyComment, SparseTable_AddRow, SparseTable_Create_Z2192E64B, SparseTable_FromRows_Z5579EC29, SparseTable_GetEmptyComments_3ECCA699, SparseTable_ToRows_759CAFC1, SparseTable__TryGetValueDefault_5BAE6133, SparseTable__TryGetValue_11FD62A8 };
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { Record } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
+
import { ofSeq, empty, append, ofArray, map, cons, reverse } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
|
+
import { defaultArg, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
5
|
+
import { collect, delay, append as append$1, singleton } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
|
+
import { Comment_fromString, Comment_toString } from './Comment.js';
|
|
7
|
+
import { SparseTable_FromRows_Z5579EC29, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_ToRows_759CAFC1, SparseTable_Create_Z2192E64B, SparseTable, SparseRowModule_fromValues } from './SparseTable.js';
|
|
8
|
+
import { createMissingIdentifier, Study_fileNameFromIdentifier } from '../../Core/Helper/Identifier.js';
|
|
9
|
+
import { addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
10
|
+
import { Option_fromValueWithDefault, ResizeArray_iter } from '../../Core/Helper/Collections.js';
|
|
11
|
+
import { List_distinct } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
12
|
+
import { ArcStudy } from '../../Core/ArcTypes.js';
|
|
13
|
+
import { fromRows as fromRows$6, toRows as toRows$1 } from './DesignDescriptors.js';
|
|
14
|
+
import { fromRows as fromRows$5, toRows as toRows$2 } from './Publication.js';
|
|
15
|
+
import { fromRows as fromRows$4, toRows as toRows$3 } from './Factors.js';
|
|
16
|
+
import { fromRows as fromRows$3, toRows as toRows$4 } from './Assays.js';
|
|
17
|
+
import { fromRows as fromRows$2, toRows as toRows$5 } from './Protocols.js';
|
|
18
|
+
import { fromRows as fromRows$1, toRows as toRows$6 } from './Contacts.js';
|
|
19
|
+
import { ARCtrl_ArcTable__ArcTable_GetProtocols, ARCtrl_ArcTable__ArcTable_GetProcesses } from '../../Core/Conversion.js';
|
|
20
|
+
import { getFactors } from '../../Core/Process/ProcessSequence.js';
|
|
21
|
+
|
|
22
|
+
class StudyInfo extends Record {
|
|
23
|
+
constructor(Identifier, Title, Description, SubmissionDate, PublicReleaseDate, FileName, Comments) {
|
|
24
|
+
super();
|
|
25
|
+
this.Identifier = Identifier;
|
|
26
|
+
this.Title = Title;
|
|
27
|
+
this.Description = Description;
|
|
28
|
+
this.SubmissionDate = SubmissionDate;
|
|
29
|
+
this.PublicReleaseDate = PublicReleaseDate;
|
|
30
|
+
this.FileName = FileName;
|
|
31
|
+
this.Comments = Comments;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function StudyInfo_create(identifier, title, description, submissionDate, publicReleaseDate, fileName, comments) {
|
|
35
|
+
return new StudyInfo(identifier, title, description, submissionDate, publicReleaseDate, fileName, comments);
|
|
36
|
+
}
|
|
37
|
+
function StudyInfo_get_Labels() {
|
|
38
|
+
return ofArray(["Study Identifier", "Study Title", "Study Description", "Study Submission Date", "Study Public Release Date", "Study File Name"]);
|
|
39
|
+
}
|
|
40
|
+
function StudyInfo_FromSparseTable_3ECCA699(matrix) {
|
|
41
|
+
const comments = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
|
|
42
|
+
return StudyInfo_create(SparseTable__TryGetValueDefault_5BAE6133(matrix, createMissingIdentifier(), ["Study Identifier", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Study Title", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Study Description", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Study Submission Date", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Study Public Release Date", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Study File Name", 0]), comments);
|
|
43
|
+
}
|
|
44
|
+
function StudyInfo_ToSparseTable_1680536E(study) {
|
|
45
|
+
const matrix = SparseTable_Create_Z2192E64B(void 0, StudyInfo_get_Labels(), void 0, 2);
|
|
46
|
+
let commentKeys = empty();
|
|
47
|
+
const patternInput = study.Identifier.startsWith("MISSING_IDENTIFIER_") ? ["", ""] : [study.Identifier, Study_fileNameFromIdentifier(study.Identifier)];
|
|
48
|
+
addToDict(matrix.Matrix, ["Study Identifier", 1], patternInput[0]);
|
|
49
|
+
addToDict(matrix.Matrix, ["Study Title", 1], defaultArg(study.Title, ""));
|
|
50
|
+
addToDict(matrix.Matrix, ["Study Description", 1], defaultArg(study.Description, ""));
|
|
51
|
+
addToDict(matrix.Matrix, ["Study Submission Date", 1], defaultArg(study.SubmissionDate, ""));
|
|
52
|
+
addToDict(matrix.Matrix, ["Study Public Release Date", 1], defaultArg(study.PublicReleaseDate, ""));
|
|
53
|
+
addToDict(matrix.Matrix, ["Study File Name", 1], patternInput[1]);
|
|
54
|
+
ResizeArray_iter((comment) => {
|
|
55
|
+
const patternInput_1 = Comment_toString(comment);
|
|
56
|
+
const n = patternInput_1[0];
|
|
57
|
+
commentKeys = cons(n, commentKeys);
|
|
58
|
+
addToDict(matrix.Matrix, [n, 1], patternInput_1[1]);
|
|
59
|
+
}, study.Comments);
|
|
60
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
61
|
+
Equals: (x, y) => x === y,
|
|
62
|
+
GetHashCode: stringHash
|
|
63
|
+
})), matrix.ColumnCount);
|
|
64
|
+
}
|
|
65
|
+
function StudyInfo_fromRows(lineNumber, rows) {
|
|
66
|
+
const tupledArg = SparseTable_FromRows_Z5579EC29(rows, StudyInfo_get_Labels(), lineNumber);
|
|
67
|
+
return [tupledArg[0], tupledArg[1], tupledArg[2], StudyInfo_FromSparseTable_3ECCA699(tupledArg[3])];
|
|
68
|
+
}
|
|
69
|
+
function StudyInfo_toRows_1680536E(study) {
|
|
70
|
+
return SparseTable_ToRows_759CAFC1(StudyInfo_ToSparseTable_1680536E(study));
|
|
71
|
+
}
|
|
72
|
+
function fromParts(studyInfo, designDescriptors, publications, factors, assays, protocols, contacts) {
|
|
73
|
+
const assayIdentifiers = map((assay) => assay.Identifier, assays);
|
|
74
|
+
let arcstudy;
|
|
75
|
+
const title = Option_fromValueWithDefault("", studyInfo.Title);
|
|
76
|
+
const description = Option_fromValueWithDefault("", studyInfo.Description);
|
|
77
|
+
const submissionDate = Option_fromValueWithDefault("", studyInfo.SubmissionDate);
|
|
78
|
+
const publicReleaseDate = Option_fromValueWithDefault("", studyInfo.PublicReleaseDate);
|
|
79
|
+
const publications_1 = Array.from(publications);
|
|
80
|
+
const contacts_1 = Array.from(contacts);
|
|
81
|
+
const studyDesignDescriptors = Array.from(designDescriptors);
|
|
82
|
+
const registeredAssayIdentifiers = Array.from(assayIdentifiers);
|
|
83
|
+
const comments = Array.from(studyInfo.Comments);
|
|
84
|
+
arcstudy = ArcStudy.make(studyInfo.Identifier, title, description, submissionDate, publicReleaseDate, publications_1, contacts_1, studyDesignDescriptors, [], void 0, registeredAssayIdentifiers, comments);
|
|
85
|
+
if (arcstudy.isEmpty && arcstudy.Identifier === "") {
|
|
86
|
+
return void 0;
|
|
87
|
+
} else {
|
|
88
|
+
return [arcstudy, assays];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function fromRows(lineNumber, en) {
|
|
92
|
+
const loop = (lastLine_mut, studyInfo_mut, designDescriptors_mut, publications_mut, factors_mut, assays_mut, protocols_mut, contacts_mut, remarks_mut, lineNumber_1_mut) => {
|
|
93
|
+
loop:
|
|
94
|
+
while (true) {
|
|
95
|
+
const lastLine = lastLine_mut, studyInfo = studyInfo_mut, designDescriptors = designDescriptors_mut, publications = publications_mut, factors = factors_mut, assays = assays_mut, protocols = protocols_mut, contacts = contacts_mut, remarks = remarks_mut, lineNumber_1 = lineNumber_1_mut;
|
|
96
|
+
let matchResult, k_12;
|
|
97
|
+
if (lastLine != null) {
|
|
98
|
+
switch (value(lastLine)) {
|
|
99
|
+
case "STUDY DESIGN DESCRIPTORS": {
|
|
100
|
+
matchResult = 0;
|
|
101
|
+
value(lastLine);
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
case "STUDY PUBLICATIONS": {
|
|
105
|
+
matchResult = 1;
|
|
106
|
+
value(lastLine);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case "STUDY FACTORS": {
|
|
110
|
+
matchResult = 2;
|
|
111
|
+
value(lastLine);
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
case "STUDY ASSAYS": {
|
|
115
|
+
matchResult = 3;
|
|
116
|
+
value(lastLine);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
case "STUDY PROTOCOLS": {
|
|
120
|
+
matchResult = 4;
|
|
121
|
+
value(lastLine);
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
case "STUDY CONTACTS": {
|
|
125
|
+
matchResult = 5;
|
|
126
|
+
value(lastLine);
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
default: {
|
|
130
|
+
matchResult = 6;
|
|
131
|
+
k_12 = lastLine;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
} else {
|
|
135
|
+
matchResult = 6;
|
|
136
|
+
k_12 = lastLine;
|
|
137
|
+
}
|
|
138
|
+
switch (matchResult) {
|
|
139
|
+
case 0: {
|
|
140
|
+
const patternInput = fromRows$6("Study Design", lineNumber_1 + 1, en);
|
|
141
|
+
lastLine_mut = patternInput[0];
|
|
142
|
+
studyInfo_mut = studyInfo;
|
|
143
|
+
designDescriptors_mut = patternInput[3];
|
|
144
|
+
publications_mut = publications;
|
|
145
|
+
factors_mut = factors;
|
|
146
|
+
assays_mut = assays;
|
|
147
|
+
protocols_mut = protocols;
|
|
148
|
+
contacts_mut = contacts;
|
|
149
|
+
remarks_mut = append(remarks, patternInput[2]);
|
|
150
|
+
lineNumber_1_mut = patternInput[1];
|
|
151
|
+
continue loop;
|
|
152
|
+
}
|
|
153
|
+
case 1: {
|
|
154
|
+
const patternInput_1 = fromRows$5("Study Publication", lineNumber_1 + 1, en);
|
|
155
|
+
lastLine_mut = patternInput_1[0];
|
|
156
|
+
studyInfo_mut = studyInfo;
|
|
157
|
+
designDescriptors_mut = designDescriptors;
|
|
158
|
+
publications_mut = patternInput_1[3];
|
|
159
|
+
factors_mut = factors;
|
|
160
|
+
assays_mut = assays;
|
|
161
|
+
protocols_mut = protocols;
|
|
162
|
+
contacts_mut = contacts;
|
|
163
|
+
remarks_mut = append(remarks, patternInput_1[2]);
|
|
164
|
+
lineNumber_1_mut = patternInput_1[1];
|
|
165
|
+
continue loop;
|
|
166
|
+
}
|
|
167
|
+
case 2: {
|
|
168
|
+
const patternInput_2 = fromRows$4("Study Factor", lineNumber_1 + 1, en);
|
|
169
|
+
lastLine_mut = patternInput_2[0];
|
|
170
|
+
studyInfo_mut = studyInfo;
|
|
171
|
+
designDescriptors_mut = designDescriptors;
|
|
172
|
+
publications_mut = publications;
|
|
173
|
+
factors_mut = patternInput_2[3];
|
|
174
|
+
assays_mut = assays;
|
|
175
|
+
protocols_mut = protocols;
|
|
176
|
+
contacts_mut = contacts;
|
|
177
|
+
remarks_mut = append(remarks, patternInput_2[2]);
|
|
178
|
+
lineNumber_1_mut = patternInput_2[1];
|
|
179
|
+
continue loop;
|
|
180
|
+
}
|
|
181
|
+
case 3: {
|
|
182
|
+
const patternInput_3 = fromRows$3("Study Assay", lineNumber_1 + 1, en);
|
|
183
|
+
lastLine_mut = patternInput_3[0];
|
|
184
|
+
studyInfo_mut = studyInfo;
|
|
185
|
+
designDescriptors_mut = designDescriptors;
|
|
186
|
+
publications_mut = publications;
|
|
187
|
+
factors_mut = factors;
|
|
188
|
+
assays_mut = patternInput_3[3];
|
|
189
|
+
protocols_mut = protocols;
|
|
190
|
+
contacts_mut = contacts;
|
|
191
|
+
remarks_mut = append(remarks, patternInput_3[2]);
|
|
192
|
+
lineNumber_1_mut = patternInput_3[1];
|
|
193
|
+
continue loop;
|
|
194
|
+
}
|
|
195
|
+
case 4: {
|
|
196
|
+
const patternInput_4 = fromRows$2("Study Protocol", lineNumber_1 + 1, en);
|
|
197
|
+
lastLine_mut = patternInput_4[0];
|
|
198
|
+
studyInfo_mut = studyInfo;
|
|
199
|
+
designDescriptors_mut = designDescriptors;
|
|
200
|
+
publications_mut = publications;
|
|
201
|
+
factors_mut = factors;
|
|
202
|
+
assays_mut = assays;
|
|
203
|
+
protocols_mut = patternInput_4[3];
|
|
204
|
+
contacts_mut = contacts;
|
|
205
|
+
remarks_mut = append(remarks, patternInput_4[2]);
|
|
206
|
+
lineNumber_1_mut = patternInput_4[1];
|
|
207
|
+
continue loop;
|
|
208
|
+
}
|
|
209
|
+
case 5: {
|
|
210
|
+
const patternInput_5 = fromRows$1("Study Person", lineNumber_1 + 1, en);
|
|
211
|
+
lastLine_mut = patternInput_5[0];
|
|
212
|
+
studyInfo_mut = studyInfo;
|
|
213
|
+
designDescriptors_mut = designDescriptors;
|
|
214
|
+
publications_mut = publications;
|
|
215
|
+
factors_mut = factors;
|
|
216
|
+
assays_mut = assays;
|
|
217
|
+
protocols_mut = protocols;
|
|
218
|
+
contacts_mut = patternInput_5[3];
|
|
219
|
+
remarks_mut = append(remarks, patternInput_5[2]);
|
|
220
|
+
lineNumber_1_mut = patternInput_5[1];
|
|
221
|
+
continue loop;
|
|
222
|
+
}
|
|
223
|
+
default:
|
|
224
|
+
return [k_12, lineNumber_1, remarks, fromParts(studyInfo, designDescriptors, publications, factors, assays, protocols, contacts)];
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const patternInput_6 = StudyInfo_fromRows(lineNumber, en);
|
|
229
|
+
return loop(patternInput_6[0], patternInput_6[3], empty(), empty(), empty(), empty(), empty(), empty(), patternInput_6[2], patternInput_6[1]);
|
|
230
|
+
}
|
|
231
|
+
function toRows(study, assays) {
|
|
232
|
+
const protocols = ofSeq(collect(ARCtrl_ArcTable__ArcTable_GetProtocols, study.Tables));
|
|
233
|
+
const factors = ofSeq(collect((f) => getFactors(ARCtrl_ArcTable__ArcTable_GetProcesses(f)), study.Tables));
|
|
234
|
+
const assays_1 = defaultArg(assays, ofSeq(study.GetRegisteredAssaysOrIdentifier()));
|
|
235
|
+
return delay(() => append$1(StudyInfo_toRows_1680536E(study), delay(() => append$1(singleton(SparseRowModule_fromValues(["STUDY DESIGN DESCRIPTORS"])), delay(() => append$1(toRows$1("Study Design", ofSeq(study.StudyDesignDescriptors)), delay(() => append$1(singleton(SparseRowModule_fromValues(["STUDY PUBLICATIONS"])), delay(() => append$1(toRows$2("Study Publication", ofSeq(study.Publications)), delay(() => append$1(singleton(SparseRowModule_fromValues(["STUDY FACTORS"])), delay(() => append$1(toRows$3("Study Factor", factors), delay(() => append$1(singleton(SparseRowModule_fromValues(["STUDY ASSAYS"])), delay(() => append$1(toRows$4("Study Assay", assays_1), delay(() => append$1(singleton(SparseRowModule_fromValues(["STUDY PROTOCOLS"])), delay(() => append$1(toRows$5("Study Protocol", protocols), delay(() => append$1(singleton(SparseRowModule_fromValues(["STUDY CONTACTS"])), delay(() => toRows$6("Study Person", ofSeq(study.Contacts)))))))))))))))))))))))))));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export { StudyInfo, StudyInfo_FromSparseTable_3ECCA699, StudyInfo_ToSparseTable_1680536E, StudyInfo_create, StudyInfo_fromRows, StudyInfo_get_Labels, StudyInfo_toRows_1680536E, fromParts, fromRows, toRows };
|