Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

jspaezp
Copy link
Collaborator

@jspaezp jspaezp commented Jun 24, 2024

This PR actually bundles several things ...

  1. Refactors a lot of the aggregation/denoising/dbscan logic.
  2. Removes unused compiler flags
  3. Changes the order in which frames are aggregated (split+aggregated in groups by isolation window before denoising, not during)

@jspaezp
Copy link
Collaborator Author

jspaezp commented Jul 8, 2024

TODO:

  • Add unit testing for frame slices (make sure offsets + conversions are handled correctly)
  • Implement denoising with window:
    • Implement IntenseAtIndex (which also entails implementing a proxy 'point' struct), AsNDPointsAtIndex and NDPointConverter for slice frames.
    • Implement a SliceFrameRTWindow struct and -> AsNDPointsAtIndex + NDPointConverter for that.
    • Implement aggregator for that 'point' struct ...
    • Replace element wise denoising ->
      denoise_frame_slice(
      &x,
      &self.ims_converter,
      &self.mz_converter,
      &self.dia_frame_info,
      self.min_n,
      self.min_intensity,
      self.mz_scaling,
      self.max_mz_extension,
      self.ims_scaling,
      self.max_ims_extension,
      with window-wise denoising.
  • Chores + maintainability:
    • Rename dbscan functions.
      • _dbscan -> dbscan_label_clusters?
      • dbscan_generic -> IndexAndDbscanAggregate ? ... maybe split it as a Runner with .convert + .index + .label + .aggregate + .refine
  • Revise the generic annotations + param names for dbscan to more sensible 'names'
  • Make explicit what distances are in projected dimensions and which are not.
  • Consider bundling the extra filter fun with the DistantAtIndex trait.

@jspaezp jspaezp marked this pull request as ready for review September 26, 2024 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant