Skip to content
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

Phenotyping #38

Merged
merged 23 commits into from
Mar 30, 2023
Merged

Phenotyping #38

merged 23 commits into from
Mar 30, 2023

Conversation

Thomzoy
Copy link
Collaborator

@Thomzoy Thomzoy commented Mar 7, 2023

Description

Checklist

  • If this PR is a bug fix, the bug is documented in the test suite.
  • Changes were documented in the changelog (pending section).
  • If necessary, changes were made to the documentation (eg new pipeline).

@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2023

Codecov Report

Patch coverage: 21.25% and project coverage change: -8.45 ⚠️

Comparison is base (bbab536) 91.89% compared to head (ce62741) 83.44%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
- Coverage   91.89%   83.44%   -8.45%     
==========================================
  Files          67       80      +13     
  Lines        2146     2416     +270     
==========================================
+ Hits         1972     2016      +44     
- Misses        174      400     +226     
Impacted Files Coverage Δ
eds_scikit/io/settings.py 100.00% <ø> (ø)
eds_scikit/phenotype/__init__.py 0.00% <0.00%> (ø)
eds_scikit/phenotype/base.py 0.00% <0.00%> (ø)
eds_scikit/phenotype/cancer/__init__.py 0.00% <0.00%> (ø)
eds_scikit/phenotype/cancer/cancer.py 0.00% <0.00%> (ø)
eds_scikit/phenotype/diabetes/__init__.py 0.00% <0.00%> (ø)
eds_scikit/phenotype/diabetes/diabetes.py 0.00% <0.00%> (ø)
..._scikit/phenotype/psychiatric_disorder/__init__.py 0.00% <0.00%> (ø)
...otype/psychiatric_disorder/psychiatric_disorder.py 0.00% <0.00%> (ø)
eds_scikit/phenotype/suicide_attempt/__init__.py 0.00% <0.00%> (ø)
... and 15 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Vincent-Maladiere
Copy link
Collaborator

Hi @Thomzoy, could you please chunk this PR into smaller ones? A PR should only address a specific issue or feature at the time.

eds_scikit/__init__.py Outdated Show resolved Hide resolved
eds_scikit/event/from_code.py Outdated Show resolved Hide resolved
eds_scikit/event/icd10.py Outdated Show resolved Hide resolved
eds_scikit/event/icd10.py Show resolved Hide resolved
@@ -0,0 +1,19 @@
from box import Box
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we avoid adding yet another dependency for a feature this simple?

eds_scikit/phenotype/base.py Show resolved Hide resolved
self._features[feature_name] = feature
self.last_feature = feature_name

def last(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should at least document this since this is a very weird behaviour in general

eds_scikit/phenotype/base.py Show resolved Hide resolved
df["phenotype"] = self.name
df = df.rename(columns={"concept": "subphenotype"})

bd.cache(df)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bring bd.cache() into from_code_func directly?

)
return self

def get(self, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe get_results would be a bit more explicit?

@Thomzoy Thomzoy merged commit c15119c into main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants