Coder Social home page Coder Social logo

microbiome / bluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ltla/bluster

0.0 1.0 0.0 232 KB

Clone of the Bioconductor repository for the bluster package.

Home Page: https://bioconductor.org/packages/devel/bioc/html/bluster.html

C++ 4.57% R 95.43%

bluster's Issues

Creation of an abstract class to regroup the distance related methods.

As of now, the HclustParam class, has 2 slots (metric and dist.fun) that are distance related. These slots are used in

  • The show method.
  • The clusterRows method, where the slots are used to call dist.fun with the metric parameter.

The idea of this abstract class would be to have these two slots so that none of the classes that inherits from it would have to declare them. This class would also handle the show method so that the sub-classes don't have to. It could have a constructor that handles the slots (if a slot is NULL: call standard `dist``). Finally, this class could have a method that gives the distance matrix.

Here is a little diagram to illustrate the concept.
UML diagram

The drawback of this idea is that the inheriting classes need to use the distance matrices. And I haven't found another class in bluster that uses it. At start, I thought this could help improve the maintainability of the code, but if we can't find other clustering method that use this, it may be of no use.

So as a sum up this class would be useful to any class that uses a distance matrix. The idea would be that these classes would inherit from the abstract class but maybe there are other possibilities.

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.