Skip to main content
7 votes
Accepted

PCA plot shows big difference but not many differentially expressed genes are found

You only have 4 samples total. I think it would be difficult to not have the PCA show big differences between the groups with so few points. On the other hand, for differential expression, it is hard ...
burger's user avatar
  • 2,199
5 votes
Accepted

What does PCA mean on GWAS

From my memory of what a statistician told me, a PCA aims to determine independent linear combinations of variables (i.e. genotypes) that account for the most variation in the dataset. With 10 million ...
gringer's user avatar
  • 14.9k
5 votes
Accepted

3D PCA group labelling

You can easily color 3D pca plots in R based on the code given below: ...
Ammar Sabir Cheema's user avatar
5 votes
Accepted

How to interpret PCA output statistically and biologically?

All that plots like this are telling you is that there are some genes that contribute more to the variability seen between your various samples than others. In an ideal world these genes will also be ...
Devon Ryan's user avatar
  • 19.8k
4 votes

How are Principal Component analyses and Admixture analyses from a genetic alignment different?

Just to add to the great summary by Devon Ryan: admixture analysis tools are much more flexible than PCA (which is just a fixed mathematical operation), so they can be designed to incorporate LD ...
juod's user avatar
  • 473
4 votes
Accepted

Should PCA be standardized for gene expression?

When the gene expression is scaled and centred you reduce the difference between genes. Imagine you have one gene A that is highly expressed usually and has a standard deviation of 500 units ...
llrs's user avatar
  • 4,723
3 votes
Accepted

What is a sensible number of gene/observations to explain PCA variance?

The general goal of PCA in RNA-seq can be stated as, "I'd like a low-dimension representation of my data to allow easy assessment of the gross structure of my samples, specifically for assessing ...
Devon Ryan's user avatar
  • 19.8k
3 votes

Pre-filtering genes for Principal Component Analysis

You can filter out genes that do not show variation across samples, they would not differentiate samples anyway. For the specifics on how to do so, please see the ...
haci's user avatar
  • 4,202
3 votes
Accepted

Interpreting this PCA plot for RNA-seq

Yes, you can safely concatenate the technical replicates. Odds are good that these are even the same libraries just sequenced twice, so even labeling them as replicates is a bit of a stretch. As an ...
Devon Ryan's user avatar
  • 19.8k
3 votes
Accepted

Understanding PCHeatmap outputs

The PCHeatmap function (renamed DimHeatmap in Seurat v3) can be used to help determine the number of principal components to use ...
TimStuart's user avatar
  • 684
3 votes
Accepted

PCA on genotype matrix with multiple alleles

You can make a 'dummy variable' for each allele. That means that you don't have info per SNP, but for SNPs with more alleles, the allele is present (1) or not (0).
benn's user avatar
  • 3,591
3 votes
Accepted

How are Principal Component analyses and Admixture analyses from a genetic alignment different?

The fundamental difference lies mostly in the math. An admixture analysis involves assuming that genotypes (or more likely, genotype likelihoods) in an unknown sample can be modeled with Hardy-...
Devon Ryan's user avatar
  • 19.8k
3 votes
Accepted

Using external list of PCs for clustering

There is a way to do this, and even better--there is documentation for how to do it! No surprise coming from the Satija Lab. In the vignette they perform multidimensional scaling, but the idea is the ...
Kohl Kinning's user avatar
  • 1,149
2 votes

Error in annotating row names as data points in a PCA plot

Maybe try ...
Pascal Martin's user avatar
2 votes

PCA on genotype matrix with multiple alleles

I recommend the Hamming distance and doing a multidimensional scaling (a procedure similar to PCA but for distances), that way you don't create new variables for the same position. The distance ...
llrs's user avatar
  • 4,723
2 votes

Hierarchial PCA Clustering with duplicated row names

Try to make your rownames unique first. So if you have this matrix with duplicate rownames: ...
benn's user avatar
  • 3,591
2 votes
Accepted

Perplexity is too large

I was using dudi_pca incorrectly. The supplied parameter to as.matrix() should have been ...
Nikita Vlasenko's user avatar
2 votes

What does PCA mean on GWAS

PCA = principle component analysis and a multivariate statistic, today it is trendily retermed "unsupervised learning" and here is likely being deployed for individuals within your data set. It works ...
M__'s user avatar
  • 12.8k
2 votes
Accepted

data visualization RNAseq : scaling data for PCA and cluster dendogram

Scaling (or centering) makes the genes comparable: Putting the expression levels of genes in the same scale (i.e. between 0 and 1) sustains that all of your genes contribute equally to the PCA or ...
haci's user avatar
  • 4,202
2 votes
Accepted

Performing PCA for the samples and for the genes

First of all, I am not a statistician but have been performing RNA-seq analysis for a while, here is my take: I think performing PCA on the samples makes sense in terms of mathematics. What I mean is ...
haci's user avatar
  • 4,202
2 votes

PCA plot in R coloured by sample type

Can't say I've ever used autoplot, but this is fairly easy to achieve using "base" ggplot. One thing autoplot does is put the axis on the same scale reflecting the percentage variation ...
Greg's user avatar
  • 301
2 votes

Test for differences between groups of samples

PCA does not do any testing and has no p-values. You may state that a separation of less than m units in PC > i is not ...
Ram RS's user avatar
  • 2,464
1 vote

Explanation for RNA-seq samples not clustering in PCA as expected

It's hard to say what is going on without looking at the plots. But it is a reasonable guess that samples are mislabelled and I think it is worth checking the experimental log carefully. It is also ...
Phoenix Mu's user avatar
1 vote

Biology behind PCA analysis based on SNP

First of all, PCA is a technique for dimension reduction. Basically, the goal is to compare tens of thousands of SNPs in Drosophila. Now if you only have 2 SNPs, you can plot them on a 2D scatter plot....
Phoenix Mu's user avatar
1 vote

Performing PCA for the samples and for the genes

It is quite possible to make a PCA plot with the samples. Follow this tutorial : https://hbctraining.github.io/DGE_workshop/lessons/03_DGE_QC_analysis.html
Diango's user avatar
  • 161
1 vote

Performing PCA for the samples and for the genes

If you use, say, R's prcomp, you can use my_pca_object$x to get PC coordinates for the samples, and my_pca_object$rotation to ...
swbarnes2's user avatar
  • 1,971
1 vote

the variation between treatments is less than the variation between replicates in RNA-seq data

If you got DEGs with statistically significant p-values after multiple testing following a valid pipeline, I'd believe that, even if looking at the first few PCs doesn't look promising.
swbarnes2's user avatar
  • 1,971
1 vote

RNAseq biological replicates not clustering in PCA plots

You used Kallisto for alignment. I think Kallisto reports TPM values, are you using this value? DEseq2 uses count data, so I am not sure whether these two methods are compatible. Also, I agree with ...
Phoenix Mu's user avatar
1 vote

RNAseq biological replicates not clustering in PCA plots

PC1 is 81% of the variance? This PCA plot confirms that different tissues are different. You probably already knew that. I'd make more PCA plots that are tissue specific. That will be more ...
swbarnes2's user avatar
  • 1,971

Only top scored, non community-wiki answers of a minimum length are eligible