Closed sbrudz closed 12 years ago
What do you expect the return value to be? Since an assay does not have compounds or substances directly beneath, but rather, indirectly via the associated experiments.
While the current scenario is that assay and experiment are interchangable, this is not the case generally, right? And if that is true, why not just get the experiments for the assay and retrieve the compounds or substances via the experiment resource?
I'm thinking that the return value would be the distinct set of compounds or substances tested (since a compound may have been tested multiple times -- for example, if the same assay was used to test different batches of the same compound). I'll talk to Josh and verify the requirements.
-Steve
Sent from my iPhone
On Oct 24, 2012, at 4:59 PM, Rajarshi Guha notifications@github.com wrote:
What do you expect the return value to be? Since an assay does not have compounds or substances directly beneath, but rather, indirectly via the associated experiments.
While the current scenario is that assay and experiment are interchangable, this is not the case generally, right? And if that is true, why not just get the experiments for the assay and retrieve the compounds or substances via the experiment resource?
— Reply to this email directly or view it on GitHub.
I've put a first version of compounds/substances for assays up.The above links should be working now.
Please add compound and substances subresources to the assays resource. These should function analogously to how they do in the experiments resource, retrieving the compounds or substances tested in all the experiments associated with the assay. _count and filter=active should also be supported. For example:
http://bard.nih.gov/api/latest/assays/328/substances/_count http://bard.nih.gov/api/latest/assays/328/compounds/_count http://bard.nih.gov/api/latest/assays/328/substances/_count?filter=[active] http://bard.nih.gov/api/latest/assays/328/compounds/_count?filter=[active]
This feature will be especially useful once assay de-duplication occurs.