-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from nfdi4plants/arcCommanderMigration
Small fixes and additions
- Loading branch information
Showing
4 changed files
with
238 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
namespace arcIO.NET.Converter | ||
|
||
open ISADotNet | ||
open ISADotNet.QueryModel | ||
open FsSpreadsheet.DSL | ||
open LitXml | ||
|
||
|
||
type ARCconverter = | ||
| ARCtoCSV of (QInvestigation -> QStudy -> QAssay -> SheetEntity<Workbook>) | ||
| ARCtoTSV of (QInvestigation -> QStudy -> QAssay -> SheetEntity<Workbook>) | ||
| ARCtoXLSX of (QInvestigation -> QStudy -> QAssay -> SheetEntity<Workbook>) | ||
| ARCtoXML of (QInvestigation -> QStudy -> QAssay -> LitXml.XmlPart) | ||
//| ARCtoJSON of QInvestigation -> QStudy -> QAssay -> | ||
|
||
member this.ConvertCSV(i,s,a) = | ||
match this with | ||
| ARCtoCSV f -> f i s a | ||
| _ -> failwith "could not convert to csv" | ||
|
||
member this.ConvertTSV(i,s,a) = | ||
match this with | ||
| ARCtoTSV f -> f i s a | ||
| _ -> failwith "could not convert to tsv" | ||
|
||
member this.ConvertXLSX(i,s,a) = | ||
match this with | ||
| ARCtoXLSX f -> f i s a | ||
| _ -> failwith "could not convert to xlsx" | ||
|
||
member this.ConvertXML(i,s,a) = | ||
match this with | ||
| ARCtoXML f -> f i s a | ||
| _ -> failwith "could not convert to xml" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters