Add custom clustering#11642
Open
dbaku42 wants to merge 42 commits into
Open
Conversation
- cluster_metrics: computes clustering quality metrics + k-sweep - cluster_viz: generates PCA, UMAP and t-SNE plots colored by cluster - Both use conda environment.yml - Full nf-test coverage
Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
…iz.py Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
…iz.py Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
…iz.py Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
…PCA orphans, fix versions.yml, rename clustervisualiation -> clustervisualization
…R to fix numba caching in Singularity
… imports, and KMean n_init stable
Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
Co-authored-by: Jonathan Manning <pininforthefjords@gmail.com>
…d test assertions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New module:
custom/clusteringDescription 📖
Applies K-means or DBSCAN clustering to
plink2_pcaeigenvec output.Input
eigenvecfromplink2_pca(coordinates + meta)algorithm:'kmeans'or'dbscan'n_clusters: K-means clusters (int)dbscan_eps,dbscan_min_samples: DBSCAN paramsOutput
*_clusters.csv: cluster assignments*_clustering_info.json: params used (optional)versions.ymlTest results ✅
nf-core modules lint custom/clusteringnf-test test custom/clustering/tests/main.nf.testpre-commitpassedDependencies
Container:
matplotlib_pandas_python_scikit-learn_pruned:054f91aaa56bd7d5Conda:
environment.ymlnf-core/modules version
4.0.0