-
Notifications
You must be signed in to change notification settings - Fork 23
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
physical quantity format #551
Conversation
@bussec My initial attempt just in the openapi3 schema file |
@javh |
@schristley Looks good to me, as long as the point/range distinction does not create a major hazzle for search routines. |
The other thing I don't quite like is having the |
@bcorrie time interval it is, how does this look? I went with |
as a side note, |
Leaving the referenced issues open under the assumption that this will eventually be merged.... |
From the call:
|
@javh I certainly hope this can be done for AIRR 2.0. The current design of having separate, unconnected fields (except through a semantic interpretation of the names), is very TSV-ish. I think we should be more JSON-ish by compositing fields together into an object that semantically belong together. |
The check error will be fixed with #739 |
specs/airr-schema-openapi3.yaml
Outdated
@@ -2308,37 +2366,30 @@ Sample: | |||
subset: sample | |||
name: Disease state of sample | |||
collection_time_point_relative: | |||
type: number | |||
$ref: '#/PhysicalQuantity' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't collection_time_point
be a TimePoint
, not a PhysicalQuantity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #689
I also think:
|
I think this would also resolve #689 |
@schristley if no objections I will make the |
@bcorrie sure, sounds good |
Hey @bcorrie , I can see you are trying to clean up this PR, let me know if I can help in any way? |
Yes, I was working through it. Thanks for the test data fixes, I gave up last night and was going to dive back in this morning. You know the test suites better than I do clearly. Looks like the checks have passed. |
Only outstanding issue on this is for CellReactivity.reactivity_value should be a PhysicalQuantity which is being covered in #705 (comment) So I think this can be merged. @javh and @bussec were both reviewers for this previously so I have left you on if you want to have a look. |
In #646 we discuss whether It also raises the question should we have a Not quite done with this yet. 8-) |
In #689 we talk about using the |
Upscale quantity fields to allow either a range or point, like with I'm hesitant to do that until we actually have a use case that requires it. For some quantities, the idea of measuring a range might not be semantic viable. And it has the implication that downstream analysis will always have to handle the fields as ranges in order to do calculations properly, which introduces complexity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, some minor fixes.
@schristley and I both did this in parallel - I think I merged them OK. I added a couple of adc_query_support attributes that were missing. |
@bussec remaining issue from above is |
I agree it should be With patient data, we don't want to use dates, so what we are seeing with the AKC work (and you see this when getting clinical data), is that there is a defined In the future redesign there will be time points for specific events, so the description, "Time duration between initial diagnosis and current intervention" would suggest an event at "initial diagnosis" and an event at "current intervention" and this length could be computed from those. |
@bcorrie I agree that |
I see. Yes, you are right, I missed that. So we need to fix this because |
Do we want to add a I would be tempted to change the name to @bussec @schristley thoughts? |
I think we are pretty much required to have a An interesting aside, LinkML has |
+1 for introducing a |
I will work on this... |
[heart] Lindsay Cowell reacted to your message:
|
[0] Lindsay Cowell reacted to your message:
|
This has been done - ready for merge, unless we can find anything else... |
fix #504
fix #500
fix #498