-
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.
remove deprecated ARCtrl.NET project and rename to ARCtrl.Querymodel
- Loading branch information
Showing
62 changed files
with
24 additions
and
2,010 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
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 |
---|---|---|
@@ -1,45 +1,38 @@ | ||
# ARCtrl.NET | ||
# ARCtrl.Querymodel | ||
|
||
<a href="https://www.nuget.org/packages/ARCtrl/"><img alt="Nuget" src="https://img.shields.io/nuget/v/ARCtrl?logo=nuget&color=%234fb3d9"></a> | ||
> [!NOTE] | ||
> Filesystem Access has been implemented in ARCtrl since v2.3.0, even transpilable to JS and Python. ARCtrl.NET is therefore deprecated and this repository hosts only ARCtrl.Querymodel. | ||
This library functions as an IO wrapper for the [ARCtrl](https://github.com/nfdi4plants/ARCtrl) library in .NET. | ||
|
||
<a href="https://www.nuget.org/packages/ARCtrl.Querymodel/"><img alt="Nuget" src="https://img.shields.io/nuget/v/ARCtrl.Querymodel?logo=nuget&color=%234fb3d9"></a> | ||
|
||
Adds querying functionality to the core [ARCtrl](https://github.com/nfdi4plants/ARCtrl) package in .NET. | ||
|
||
The documentation for the actual functions for manipulating the ARC datamodel can be found [here](https://github.com/nfdi4plants/ARCtrl/tree/main/docs/scripts_fsharp). | ||
|
||
## Usage | ||
|
||
```fsharp | ||
#r "nuget: ARCtrl.NET" | ||
open ARCtrl.NET | ||
open ARCtrl | ||
open ARCtrl.QueryModel | ||
open ARCtrl.ISA | ||
let i = ArcInvestigation("Dummy Investigation") | ||
let arcPath = "" | ||
let arc = ARC.load(arcPath) | ||
let isa = arc.ISA.Value | ||
isa.InitStudy("MyStudy") | ||
i.ArcTables.Values().WithName("Dummy Header").First.ValueText | ||
arc.Write(arcPath) | ||
i.GetAssay("Dummy Assay").LastSamples | ||
``` | ||
|
||
## Development | ||
|
||
`./build.cmd runtests` | ||
|
||
## ARCtrl.Querymodel | ||
#### Requirements | ||
|
||
```fsharp | ||
open ARCtrl | ||
open ARCtrl.QueryModel | ||
open ARCtrl.ISA | ||
- [.NET SDK](https://dotnet.microsoft.com/en-us/download) | ||
- verify with `dotnet --version` (Tested with 7.0.306) | ||
|
||
let i = ArcInvestigation("Dummy Investigation") | ||
#### Local Setup | ||
|
||
i.ArcTables.Values().WithName("Dummy Header").First.ValueText | ||
- Setup dotnet tools `dotnet tool restore` | ||
|
||
i.GetAssay("Dummy Assay").LastSamples | ||
``` | ||
- Verify correct setup with `./build.cmd runtests` ✨ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.