Closed jonrkarr closed 2 years ago
would be great in addition
Can we add the remaining functions under https://bioportal.bioontology.org/ontologies/KISAO/?p=classes&conceptid=http%3A%2F%2Fwww.biomodels.net%2Fkisao%2FKISAO%23KISAO_0000824? Is there a documentation how to update terms? I could add these myself to get up to speed how to do this.
maximum
(KISAO_0000828): The maximum of a set of values, ignoring NaN entries.minimum
(KISAO_0000829 The minimum of a set of values, ignoring NaN entries.mean
(KISAO_0000825) The mean of a set of values, ignoring NaN entries.standard deviation
(KISAO_0000826): The standard deviation of a set of values, ignoring NaN entries.standard error
(KISAO_0000827): The standard error of a set of values, ignoring NaN entries.maximum (not ignoring NaN)
: The maximum of a set of values.minimum (not ignoring NaN)
: The minimum of a set of values.mean (not ignoring NaN)
The mean of a set of values.standard deviation (not ignoring NaN)
: The standard deviation of a set of values.standard error (not ignoring NaN)
: The standard error of a set of values.sum
: The sum of array elements over a given axis, ignoring Nan entriessum (not ignoring NaN)
: product
: The product of array elements over a given axis, ignoring NaN entries.product (not ignoring NaN)
: The product of array elements over a given axis, ignoring NaN entries.cumsum
: Return the cumulative sum of the elements along a given axis, ignoring NaN entries.cumsum (not ignoring NaN)
: Return the cumulative sum of the elements along a given axis.cumprod
: Return the cumulative product of elements along a given axis, ignoring NaN entries.cumprod (not ignoring NaN)
: Return the cumulative product of elements along a given axis.count
: number of non-zero elements, ignoring NaN entriescount (not ignoring NaN)
: number of non-zero elements, ignoring NaN entrieslength
: number of elements, ignoring NaN entrieslength
(not ignoring NaN): number of elements, ignoring NaN entriesmedian
median (not ignoring NaN)
variance
variance (not ignoring NaN)
It would be amazing if we could change the labels so that we have:
mean (ignoring NaN)
mean
which is in line with how this normally works. I.e. the ignoring NaN functions are special versions of the normal functions.
I put a brief guide to editing the ontology here: https://github.com/SED-ML/KiSAO/blob/dev/CONTRIBUTING.md#modifying-the-ontology. Protege is a good editing tool. This makes it easy to see the relationships as you add terms. The existing terms are also a good reference.
Please also add a note about your changes to CHANGELOG.md.
The GitHub action will automatically run the few tests.
I can take of releasing your changes as v2.22.
I agree with labels such as mean
and mean (ignoring NaN)
. This is similar to the names of NumPy functions (mean
, nanmean
) and the default configuration of MATLAB (mean(..., nanflag)
). The "default" should be to include NaN such the result of a mean over a NaN is NaN.
The following terms have been added/updated. Pull request shortly:
maximum ignoring NaN
(KISAO_0000828)minimum ignoring NaN
(KISAO_0000829mean ignoring NaN
(KISAO_0000825)standard deviation ignoring NaN
(KISAO_0000826)standard error ignoring NaN
(KISAO_0000827)maximum
(KISAO_0000830)minimum
(KISAO_0000840)mean
(KISAO_0000841)standard deviation
(KISAO_0000842)standard error
(KISAO_0000843)sum ignoring NaN
(KISAO_0000844)sum
(KISAO_0000845) product ignoring NaN
(KISAO_0000846)product
(KISAO_0000847)cumulative sum
(KISAO_0000848)cumulative sum ignoring NaN
(KISAO_0000849)cumulative product ignoring NaN
(KISAO_0000850)cumulative product
(KISAO_0000851)count ignoring NaN
(KISAO_0000852): number of non-zero elements, ignoring NaN entriescount
(KISAO_0000853): number of non-zero elements, ignoring NaN entrieslength ignoring NaN
(KISAO_0000854): number of elements, ignoring NaN entrieslength
(KISAO_0000855): number of elements, ignoring NaN entriesmedian ignoring NaN
(KISAO_0000856)median
(KISAO_0000857)variance ignoring NaN
(KISAO_0000858)variance
(KISAO_0000859)