Replies: 1 comment 4 replies
-
How many variables are there typically per data set or obs unit level? Manual work around: have the user import all the variables with the study, then go to Field Book >> Traits and manually deselect the traits not relevant to that observation level. Short term FB update: add better search filters to the Trait importer in FB. When the user goes to FB >> Traits >> menu dots >> Import, provide some filters just like the Field importer to list relevant variables. Then a user could select the study and manually select which vairiables they are interested in importing, instead of FB importing everything automatically. In the long term, we can discuss adding observation level to the variables in BrAPI. If we want to filter variables by obs level, then the variable data model should also contain that metadata, like a @abatac Please open an issue in the BrAPI Github for this so it is not forgotten. We can discuss with the wider community and see if others would find this functionality useful in the standard. I assume this is a duplicate to discussion #685. If I'm wrong, let me know and I can make a separate comment over there. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to filter the variables associated to study by observationUnitLevelName in GET /variables?
In the Breeding Management System, a study may comprise multiple datasets used to group observations/sub-observations based on their levels. For instance, a dataset named "plot" includes observations for plot-level units, while a dataset named "plant" contains sub-observation units within each plot.
The challenge is that, despite belonging to the same study, each dataset in BMS can have a different set of observation variables.
Therefore, if I wish to retrieve variables specific to the "plant" dataset (level), it is not feasible to utilize the GET /variables?studyDbId=xxx endpoint, as it retrieves all variables within a study without providing a way to filter variables based on the observationUnitLevelName.
I know that this is a limitation in the Brapi spec, but this blocks the interoperability of Field-book with BMS BrAPI 2.0 implementation.
For example, If I import a Field via BrAPI using "plot" observation level, the traits retrieved from GET /variables?studyDbId endpoint will return all the variables in a study for all datasets (levels). Ideally, it should only return the variables based on observationUnitLevelName.
cc @BrapiCoordinatorSelby @mcrimi
Beta Was this translation helpful? Give feedback.
All reactions