-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add worker to query classifier data to fit cognoml model #11
Comments
I'm not sure the worker code has to do this at all. The frontend will need access to this information for their realtime displays. Therefore, we can potentially outsource/consolidate this computation to the frontend? |
What realtime displays?
It's just reformatting some JSON results into [sample_id,mutation_status] , I don't think it will be computationally expensive. If I can just pass something like [sample_id,mutation_status] or a dict, or whatever singular format is chosen, that's all that's needed. Oh, and the congnoml code should know to skip pulling the mutation statues remotely, since it has been passed in by the worker code. |
@awm33 --- so your main priority is to pass both If I'm understanding correctly, I'd then favor parameter called |
@dhimmel Ah, it looks like I can still pass it. An earlier version of the refactor PR expected a dataframe. Then I think we just need to make get_mutations_df run optionally and we should be good. |
@awm33 I created this so we can track it going forward.
A given classifier task has a list of entrezids and disease types. The worker code will query for any samples that match the list of disease types and join that to the mutations table. The result will not be an a [sample_id,mutation_status] form, so the worker needs to transform it into that form and pass it to the cognoml code.
The text was updated successfully, but these errors were encountered: