motleystate / moonstone

Library to perform Metagenomics data analysis with Python
https://moonstone.readthedocs.io/en/latest/?badge=latest
MIT License
1 stars 0 forks source link

Divide samples into multiple groups following trendlines #104

Closed AgnesBaud closed 8 months ago

AgnesBaud commented 8 months ago

Description

I. ScatterTrendlines

OG

-> At least 2 different trendlines seem to be followed by the data point. How to divide the data points/samples into 2 (or more) groups?

  1. Shuffle randomly the samples of the dataframe
  2. Divide the samples into n groups
  3. Compute trendline for each group
  4. Reassign samples to the (line) group with the trendline closest to the point
  5. Repeat step 2 and 3 until the composition of the groups doesn't change anymore

Optional:

Results:

results_n2

results_n3

II. Dictionaries operations

Changelogs

Definition of Done

codecov-commenter commented 8 months ago

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (c154173) 65.15% compared to head (ab58529) 66.79%.

Files Patch % Lines
moonstone/plot/graphs/trendlines.py 90.53% 16 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #104 +/- ## ========================================== + Coverage 65.15% 66.79% +1.64% ========================================== Files 61 62 +1 Lines 2930 3123 +193 ========================================== + Hits 1909 2086 +177 - Misses 1021 1037 +16 ``` | [Flag](https://app.codecov.io/gh/motleystate/moonstone/pull/104/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=motleystate) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/motleystate/moonstone/pull/104/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=motleystate) | `66.79% <91.79%> (+1.64%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=motleystate#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.