ConsensusCluster doesn't seem to use consensus matrix for clustering

Abierto
#25 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

  • #29 de @sharifhsn — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

The problem is in fit_predict() in src/flowsom/models/consensus_cluster.py (around lines 105-109), which clusters the raw data and never uses the consensus matrix built by fit(). Read fit() to see how self.Mk is produced, then check how the ConsensusCluster class builds its precomputed-distance clustering. Done means fit_predict() clusters on the consensus-derived distances (or exposes that as an option) and the output differs from the raw-data path on a small test dataset.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Report

When reviewing the ConsensusCluster implementation (src/flowsom/models/consensus_cluster.py, v0.2.2), it seems that fit_predict() ignores the fit() function that does the consensus clustering and just runs AgglomerativeClustering once on raw data (lines 105-109):

    if self.z_score:
        data = self._z_score(data)
    return self.cluster(n_clusters=self.n_clusters, linkage=self.linkage).fit_predict(data)

Based on the consensus clustering paper and the R FlowSOM implementation, it seems that fit_predict() should:

  1. Build consensus matrix using fit()
  2. Convert to distance matrix: distance_matrix = 1 - self.Mk
  3. Cluster using consensus distances (or at least have an option to cluster on the matrix or data, as in the ConsensusCluster class: AgglomerativeClustering(n_clusters=k, metric='precomputed').fit_predict(distance_matrix)
Versions
v0.2.2
Lenguaje dominante
Python
Estrellas
36
Forks
7
Merge medio
23 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de saeyslab/FlowSOM_Python

Todos los issues de saeyslab/FlowSOM_Python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.