Answers.Body: <p>The ComBat-seq method requires raw counts which can be modelled as a negative binomial. The other methods are typically used with normalized counts transformed to log2 scale. Obviously for any method that tries to regress a factor out of a dataset you have to make sure that none of the experimental variables are confounded with the batch variables that you want to regress. More details can be given if you edit the post to say what the data are, how the experimental setup is and what the factors to regress are.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-10T00:39:42.160Z
Answers.Text: Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer).
Answers.UserDisplayName: Community
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-10T01:41:13.113Z
Answers.Text: Thank you very much for your reply. The data I am working on is DNAse-seq data, which is a matrix with 16 samples. As the samples come from different platforms, I would like to correct the batch effect.
Answers.UserDisplayName: Ke Xu
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-09T22:30:17.490Z
Answers.LastActivityDate: 2022-08-10T09:42:05.613Z
Answers.LastEditDate: 2022-08-10T09:42:05.613Z
Answers.UserDisplayName: Boggs Diamond
Body: <p>I am now trying to conduct batch effect correction for my data matrix, whose samples (human) have different gender and come from different sequencing platforms. I have tried <code>Combat</code>, <code>Combat-seq</code>, and <code>limma</code>. However, the outcomes are bad. It seems that <code>Combat-seq</code> is based on Negative binomial regression models, <code>Combat</code> is based on Gaussian distribution, and <code>limma</code> is based on the linear model. I wonder if my data violates their assumption, so I check my data and get this outcome.<a href="https://i.sstatic.net/51MbG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/51MbG.png" alt="enter image description here" /></a> It seems that my data follows Gamma distribution. I am wondering what I could do in this situation.</p>
  <hr />
  <p>The data I am working on is DNAse-seq data, which is a matrix with 16 samples. As the samples come from different platforms, I would like to correct the batch effect. I am also considering gender information as there are male and female samples. To sum up, my questions are:</p>
  <ol>
  <li>Do we need to consider the distribution of the data when we apply the batch correction (limma, combat, and combat-seq)?</li>
  <li>If we need to consider the distribution, which method do I need to correct the data which follows gamma distribution?</li>
  <li>Are there methods designed for read counts? (I know there are many methods designed for surat objects, but do we have others that are more general?)</li>
  </ol>
  <p>Thank you very much for all kinds of help.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-04T12:04:47.550Z
Comments.Text: Dear @KeXu thanks for your question. Just a reminder if the answer below addresses your question, please do remember to "accept" it, and/or upvote (you have the rep to do this).
Comments.UserDisplayName: M__
Tags: <limma><batch-effects><combat>
Title: Problems in conducting batch effect correction
ThreadText: # Problems in conducting batch effect correction
  
  (Asked by: username_0 on 2022-08-09)
  
  I am now trying to conduct batch effect correction for my data matrix, whose samples (human) have different gender and come from different sequencing platforms. I have tried `Combat`, `Combat-seq`, and `limma`. However, the outcomes are bad. It seems that `Combat-seq` is based on Negative binomial regression models, `Combat` is based on Gaussian distribution, and `limma` is based on the linear model. I wonder if my data violates their assumption, so I check my data and get this outcome.[![enter image description here](https://i.sstatic.net/51MbG.png)](https://i.sstatic.net/51MbG.png) It seems that my data follows Gamma distribution. I am wondering what I could do in this situation.
  
  ---
  
  The data I am working on is DNAse-seq data, which is a matrix with 16 samples. As the samples come from different platforms, I would like to correct the batch effect. I am also considering gender information as there are male and female samples. To sum up, my questions are:
  
  1. Do we need to consider the distribution of the data when we apply the batch correction (limma, combat, and combat-seq)?
  2. If we need to consider the distribution, which method do I need to correct the data which follows gamma distribution?
  3. Are there methods designed for read counts? (I know there are many methods designed for surat objects, but do we have others that are more general?)
  
  Thank you very much for all kinds of help.
  
  **Tags:** limma, batch-effects, combat
  
  > **Comments:**
  > **username_1**: Dear @username_0 thanks for your question. Just a reminder if the answer below addresses your question, please do remember to "accept" it, and/or upvote (you have the rep to do this).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-08-09. Score: 1
  
  The ComBat-seq method requires raw counts which can be modelled as a negative binomial. The other methods are typically used with normalized counts transformed to log2 scale. Obviously for any method that tries to regress a factor out of a dataset you have to make sure that none of the experimental variables are confounded with the batch variables that you want to regress. More details can be given if you edit the post to say what the data are, how the experimental setup is and what the factors to regress are.
  
  > **Comments:**
  > **username_3**: Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer).  
  > **username_0**: Thank you very much for your reply. The data I am working on is DNAse-seq data, which is a matrix with 16 samples. As the samples come from different platforms, I would like to correct the batch effect.  
  
  ---
  
  