Is hierarchical clustering of significant genes 'supervised' or 'unsupervised' clustering?
2
4
Entering edit mode
8.0 years ago
steve ★ 3.5k

I have differential gene expression data from an RNA-Seq experiment. After filtering to include only genes from a previously developed Gene Ontology list, and filtering for significant genes based on adjusted p value, I am using the R pheatmap package to make clustering heatmaps.

Does this count as 'supervised' or 'unsupervised' clustering?

The descriptions here and here seem to suggest that hierarchical clustering is 'unsupervised'.

But does the pre-filtering of significant genes of interest make this 'supervised'? Is there more to the designation?

RNA-Seq heatmap clustering • 11k views
ADD COMMENT
1
Entering edit mode

Since you are using outside knowledge (differences between 2 known groups of samples) this would fall under supervised or semi-supervised clustering... However in a paper you could describe it as unsupervised clustering of differentially expressed genes and everyone would understand that it was semi supervised.

ADD REPLY
0
Entering edit mode

Sorry for re-upping this post (it is always better than creating a new thread, I guess). So, if I got it right:

  1. when you extract RNA from samples (let's say treated with something or even a specific phenotype) and,
  2. when you have your genes annotated, and

you're asking how these genes cluster together then you are doing an unsupervised hierarchical clustering, correct?

ADD REPLY
2
Entering edit mode

I've moved your post to a comment since it is not an answer. Use the "add comment" button to request clarifications.

Clustering is typically an unsupervised approach. Unsupervised means you don't use external information to group your data points/items, i.e. grouping is based only on the data. In supervised learning, you make use of external information to form the groups, typically category labels to train a classifier. There are also intermediate situations called semi-supervised learning in which clustering for example is constrained using some external information.
So if you apply hierarchical clustering to genes represented by their expression levels, you're doing unsupervised learning.

ADD REPLY
0
Entering edit mode

Thanks so much, Jean-Karim. Very helpful.

regards,

ADD REPLY
7
Entering edit mode
8.0 years ago
Steven Lakin ★ 1.8k

This distinction has more to do with machine learning algorithm categories. While clustering is considered a subcategory of "machine learning," in your case what you're doing is mostly considered linear algebra.

Pre-filtering does not affect the category: the algorithm sees only the data, which in this case is an N-dimensional geometric space from which some sort of sample-wise distance is calculated. You can influence the way that clustering happens within pheatmap by using a different distance metric (e.g. "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski") or by changing algorithm parameters (pheatmap uses k-means, so changing k).

You can also read more about different hierarchical joining methods by reading up on hclust, which is the function underlying pheatmap:

Ward's minimum variance method aims at finding compact, spherical clusters. The complete linkage method finds similar clusters. The single linkage method (which is closely related to the minimal spanning tree) adopts a ‘friends of friends’ clustering strategy. The other methods can be regarded as aiming for clusters with characteristics somewhere between the single and complete link methods. Note however, that methods "median" and "centroid" are not leading to a monotone distance measure, or equivalently the resulting dendrograms can have so called inversions or reversals which are hard to interpret, but note the trichotomies in Legendre and Legendre (2012).

Supervised in most machine learning contexts means using prior information (prior data) in order to inform a decision about new data, given some category of algorithm.

Unsupervised means using only the data itself to make some decisions about the data, again given some category of algorithm.

Don't worry too much about this distinction for practical purposes, unless you're curious about the subject matter itself.

ADD COMMENT
0
Entering edit mode

Thanks for the clarification. I had gone looking for the documention on pheatmap to figure this out but couldn't find a vignette anywhere to describe the algorithms used. Agreed that it doesn't seem like much of a practical distinction, the motivation for finding this out was based more on the literal semantics of 'supervised' vs 'unsupervised' in regards to the experiment.

ADD REPLY
1
Entering edit mode
ADD COMMENT

Login before adding your answer.

Traffic: 1235 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6