Answers.Body: <p>I've given an answer about using how I normalise for PCA <a href="https://bioinformatics.stackexchange.com/a/2332/73">here</a>. PCA works best if the data are normal-ish, but as models go it is fairly robust to fairly large deviations from normal. Transforming is not essential, but if data can be easily transformed into something that looks a bit more normal, then conclusions derived from looking at the PCA should be a bit more robust.</p>
  
  <p>I'm not familiar with canonical-correlation analysis (CCA), but because I see sums and square roots in the formulas, I would assume it has similar data cleaning requirements to PCA. Unfortunately the <a href="http://stat.ethz.ch/R-manual/R-devel/library/stats/html/cancor.html" rel="nofollow noreferrer">R documentation</a> for <code>cancor</code> doesn't have any information about any assumptions made on the data.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-18T18:34:57.883Z
Answers.LastActivityDate: 2017-12-18T18:34:57.883Z
Answers.UserDisplayName: gringer
Body: <p>Usually the expression data is transformed to log space using either RPKM, FPKM or CPM, this is required when looking for differential expression because the data is tested against the normal distribution(limma) or the negative bionimal distribution (DESeq2).</p>
  
  <p>In weighted gene co-expression analysis (WGCNA) there is also the recommendation to normalize the data (see <a href="https://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/Rpackages/WGCNA/faq.html" rel="nofollow noreferrer">FAQ 4</a>) but says "RPKM, FPKM, or simply normalized counts doesn't make a whole lot of difference for WGCNA" because it is based in correlations. </p>
  
  <p>For PCAs the data should be on the same scale to avoid missing the scale as a factor. See <a href="https://www.biostars.org/p/122086/" rel="nofollow noreferrer">this</a> for more references. But should it be normalized too to look like a normal distribution using logarithms?</p>
  
  <p>How does this extend to other methods like CCA? Should the data look like a normal distribution for CCA? As it is based on correlation I don't expect much changes, so I am using raw counts (RSEM output), but the examples I've seen use normalized data.</p>
  
  <p><sub>This question comes after reading a <a href="https://bioinformatics.stackexchange.com/questions/3115/filter-out-pca-outliers-automatically#comment4990_3115">comment</a></sub> </p>
  
Tags: <rna-seq><normalization>
Title: Normalizing RNAseq for PCA and CCA
ThreadText: # Normalizing RNAseq for PCA and CCA
  
  (Asked by: username_0 on 2017-12-18)
  
  Usually the expression data is transformed to log space using either RPKM, FPKM or CPM, this is required when looking for differential expression because the data is tested against the normal distribution(limma) or the negative bionimal distribution (DESeq2).
  
  In weighted gene co-expression analysis (WGCNA) there is also the recommendation to normalize the data (see [FAQ 4](https://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/Rpackages/WGCNA/faq.html)) but says "RPKM, FPKM, or simply normalized counts doesn't make a whole lot of difference for WGCNA" because it is based in correlations.
  
  For PCAs the data should be on the same scale to avoid missing the scale as a factor. See [this](https://www.biostars.org/p/122086/) for more references. But should it be normalized too to look like a normal distribution using logarithms?
  
  How does this extend to other methods like CCA? Should the data look like a normal distribution for CCA? As it is based on correlation I don't expect much changes, so I am using raw counts (RSEM output), but the examples I've seen use normalized data.
  
  This question comes after reading a [comment](https://bioinformatics.stackexchange.com/questions/3115/filter-out-pca-outliers-automatically#comment4990_3115)
  
  **Tags:** rna-seq, normalization
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-18. Score: 2
  
  I've given an answer about using how I normalise for PCA [here](https://bioinformatics.stackexchange.com/a/2332/73). PCA works best if the data are normal-ish, but as models go it is fairly robust to fairly large deviations from normal. Transforming is not essential, but if data can be easily transformed into something that looks a bit more normal, then conclusions derived from looking at the PCA should be a bit more robust.
  
  I'm not familiar with canonical-correlation analysis (CCA), but because I see sums and square roots in the formulas, I would assume it has similar data cleaning requirements to PCA. Unfortunately the [R documentation](http://stat.ethz.ch/R-manual/R-devel/library/stats/html/cancor.html) for `cancor` doesn't have any information about any assumptions made on the data.
  
  
  ---
  
  