Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Functionality to prepare matrix for NMF clustering + bug fixes #68

Merged
merged 15 commits into from
Apr 1, 2022

Conversation

Kdreval
Copy link
Collaborator

@Kdreval Kdreval commented Mar 29, 2022

In this PR:

  1. Added new function massage_matrix_for_clustering that will take incoming data frame and output ready-to-go matrix for NMF. It reviews and squishes together CNV+SSM, cleans up overlaps between SSM and HOTSPOT features by giving priority to hotspot mutations, removes features not meeting cutoff for user-defined minimal occurrence, and removes samples without any feature.
  2. Bug fixes in splendidHeatmap function as described in issue splendidHeatmap mismatches the features between clusters if metadata is not sorted #67
  3. Added more lymphoma genes and harmonized it with the grch37, hg38 bed files of lymphoma genes as described in issue Synchronise bed files of lymphoma genes with lymphoma genes list #66
  4. Other small bug fixes related to handling of row/column names in dlpyr pipes.

@Kdreval Kdreval requested review from mattssca and rdmorin March 29, 2022 23:39
Copy link
Contributor

@mattssca mattssca left a comment

Choose a reason for hiding this comment

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

Good update Kostia. Regarding the bugs in dplyr pipes, that was completely my mistake. Accidentally swapped all "<-" for "=", thanks for catching this. As for the newly added function, would you consider expanding on the included example? It would've been nice to have an example df to work with as well, what do you think?

@Kdreval
Copy link
Collaborator Author

Kdreval commented Mar 31, 2022

Thanks Adam for a review and excellent suggestion! I have included a small matrix sample to be used as example and expanded the usage example with how to get it. It helped me to catch a bug where empty matrix was returned if there were no samples/features to drop. This has been addressed and is now ready for re-review.

Copy link
Contributor

@mattssca mattssca left a comment

Choose a reason for hiding this comment

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

Thanks for including a sample matrix for testing. The function works the intended way when I run it. Approved for merge!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants