Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Querymodel #16

Open
7 tasks
ZimmerD opened this issue Dec 18, 2023 · 3 comments
Open
7 tasks

[Docs] Querymodel #16

ZimmerD opened this issue Dec 18, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@ZimmerD
Copy link
Collaborator

ZimmerD commented Dec 18, 2023

Found undocumented code? Please link it here
The newly implemented functionality in the query model has yet to be documented and thoroughly tested.

Recently, I added a test arc to the test repo and plan to add tests and documentation in the following days:

Tests that came to my mind

  • Can I query all studies?
  • Can I query all assays?
  • Can I query all assays that belong to a certain study?
  • Can I query all sheet names in an assay?
  • Can I query all last nodes of a study?
  • Can I query all last nodes of an assay?
  • With the last nodes, do I get the correct parameter/factor/characteristic values in individual assay / study sheets?"
@ZimmerD ZimmerD added the documentation Improvements or additions to documentation label Dec 18, 2023
@ZimmerD ZimmerD self-assigned this Dec 18, 2023
@ZimmerD
Copy link
Collaborator Author

ZimmerD commented Dec 19, 2023

given the current test Arc (.\tests\ARCtrl.Querymodel.Tests\TestObjects\TestArc) I made this observation:

i.ArcTables.LastNodes
|> List.ofSeq
|> List.map (fun x -> x.Name)

returns:
["sampleOutCold.txt"; "sampleOutCold.txt"; "sampleOutCold.txt";
"sampleOutCold.txt"; "sampleOutCold.txt"; "sampleOutCold.txt";
"sampleOutHeat.txt"; "sampleOutHeat.txt"; "sampleOutHeat.txt";
"sampleOutHeat.txt"; "sampleOutHeat.txt"; "sampleOutHeat.txt"]

but I think it should return:
val it: string list = ["sampleOutCold.txt"; "sampleOutHeat.txt"]

in this special case, since all last nodes are samples, the behaviour should mimic:

i.ArcTables.LastSamples
|> List.map (fun x -> x.Name)

@ZimmerD
Copy link
Collaborator Author

ZimmerD commented Dec 19, 2023

related:
let lastNodesHeat = i.GetAssay("MSEval_Heat").LastNodes |> Seq.map (fun x -> x.Name) |> Array.ofSeq
returns:
[|"sampleOutHeat.txt"; "sampleOutHeat.txt"; "sampleOutHeat.txt";
"sampleOutHeat.txt"; "sampleOutHeat.txt"; "sampleOutHeat.txt"|]
while:
let lastSamplesHeat = i.GetAssay("MSEval_Heat").LastSamples |> List.map (fun x -> x.Name) |> Array.ofSeq
correctly returns:
val lastSamplesHeat: string array = [|"sampleOutHeat.txt"|]

@ZimmerD
Copy link
Collaborator Author

ZimmerD commented Dec 19, 2023

let nodeName = "sampleOutHeat.txt"
let protocolName =  "MS"

i.ArcTables.ValuesOf(nodeName,protocolName)
|> Seq.toList
|> List.map (fun x -> x.NameText)

should return all the values related to sampleOutHeat.txt in this sheet, however it returns: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: No status
Development

No branches or pull requests

1 participant