-
Notifications
You must be signed in to change notification settings - Fork 22
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
Medcat refresh #623
Medcat refresh #623
Conversation
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.
I think that this looks much better. It's going back to a design that we once had but then killed in favor of what we currently have.
- I saw your PR on the tutorials repository. I assume that you ran it?
- Cannot access medcat model #591 - are we resolving this issue with this? Basically, can we make it easier for people to download the models? Or is that MedCat's problem?
- Are there any new MedCat features that we could make use of? It's under active development and I only looked at it one year ago.
- Related to 3 - can we get hierarchies somehow?
- Is there a reasonable way for us to offer transferring the annotations into some kind of word2vec that people can append to a layer? Overkill?
Thank you so much!
Yes, I ran it, using this branch of ehrapy: it used a stored
Yes, we are resolving it. This was an outdated link, which has been updated in the tutorial now.
Did not check this in more detail yet.
Did not check this in more detail yet.
Did not check this in more detail yet. Think this would be a very nice future addition, probably not doable in a clean way for the next release though? |
Yeah, something for later |
PR Checklist
docs
is updatedCan I look at examples of how to use this version?
Yes, in the parallel PR for the ehrapy tutorial here(to be inserted).
Description of changes
Resolves #503.
The goal is to simplify the use of medcat. In #503, the following TODOs have been outlined.
This draft removes the
MedCAT
andEhrapyMedcat
classes and temporary moving-annotations-to-plotting.Instead, it introduces scanpy-like methods
ep.tl.annotate_text
ep.tl.get_medcat_annotation_overview
ep.tl.add_medcat_annotation_to_obs
Technical details
This does not move the
CAT
instance out of sight from the user: e.g. vanilla tutorials for MedCAT as well as sophisticated user adjustment can be done all on theCAT
instance, nothing special here.The desired
CAT
can then be passed toep.tl.annotate_text
, and ehrapy takes care of shaping the output into the right fields in the right format: such thatep.tl.add_medcat_annotation_to_obs
can be used, followed by any plotting function which can use.obs
entries.Questions
run_unsupervised_training
convenience method be re-enabled?Todos if path is outlined