Thank you for your suggestion. I had a read on the DeSeq2 vignette and the manual for collapseReplicates function. Does the collapseReplicates function simply add the counts per gene together for all technical replicates (which I can do manually from count matrix) ?
Hi,
I have 40 samples which I have sent for RNA-seq to the depth of 30-60M reads per sample. The sequencing company have sequenced my samples in 3 different batches to achieve the required depth.
My questions are:
1 is there a 'best practice' for how to combine the data from 3 batches into one before DGE analysis? I am aware that there's a method to merge bam files using samtools but I also know of those who convert individual bam files into counts and combine the counts after. Both sounds equally reasonable to me. Is there a different in each method? if so, which is better?
- At present, I have decided to try out the second option - convert bam files to counts and combine them. For DGE - should I add all the counts from 3 batches together or use the average? (The sum seems to be the more logical method to appreciate the DGE at the required depth.)
Thank you. Appreciate all advice as I am new to this.
2 answers
Unclear as to whether these are biological replicates or technical replicates split across three runs equally. For the former, assuming you use one of the common place DGE tools (like DESeq2 or edgeR), you can just provide batch in your design formula so that it is taken into account and differences due to batch will be ignored. There's no need to combine reads from biological replicates, and those same tools have the ability to collapse technical replicates if the latter is the case.
If you take a look at the source code of collapseReplicates(), you will see that there is a rowSums() call summing up gene counts per "group", so yes you can do so manually too.
And you can also feed all of your FASTQ files (resulting from different runs) of a given sample to your aligner of choice at once, that way you will end up with one single BAM file. This will be analogous to summing up gene counts.
Running the same library multiple times does not add any technical error unless the instrument screws up. You can join the fastqs from the beginning, or at any point after.
Log in to answer this question.
Are these technical replicates? Meaning you took one library and put third in each run?
These are technical replicated all from the same library prep. They were sequenced 3 times to achieve the required depth of 30-60M reads/sample