1
$\begingroup$

On GEO/SRA some datasets have multiple Runs per Sample, for example this one (96 SRR numbers for 12 BioSample/GEO_Accession/Library Name/Sample Name), and the authors provide their RNA-Seq counts for 12 samples/condition see here.

I know that an experiment involving Next Generation Sequencing sometimes requires that more reads are generated than fit on an NGS chip lane, or even more than fit on a single Next Generation Sequencer. So a sequencing library can be split over multiple lanes or multiple machines. This leads to multiple sets of raw data which all belong to the same library. For example to reach the right sensitivity in transcript abundance measurements, you need all the reads of the entire library analyzed together. At least, that is how I understand it. A Run is a set of reads, a Library may consist of multiple Runs, right? Here is some more relevant discussion on Reddit, and here is another one. Looks like you can merge but must be careful, there can be (quality) differences between the Runs. Moreover, NCBI themselves say here that they simply sum the counts of multiple runs pertaining to a single GEO Sample (RNA-Seq). It also looks like in the example dataset the number of bases is only sufficient for normal RNA-Seq analyses of all Runs of a Sample are combined together (you want 25 million reads or so for polyA based RNA-Seq).

I have two questions about this:

  1. I think that I can just download the SRA files (prefetch), turn them into fastq files (fasterq-dump) and then sort them and cat them together, right? Or is there a better/recommended way?

  2. What constitutes a single experiment? Is it the BioSample, GEO_Accession, Library Name or the Sample Name? I'm thinking GEO_Accession, since that is what is used on GEO to designate a "sample", right? I need a reliable indicator for what happened to single sample...

Looking forward to hearing how you all deal with this, highest regards.

$\endgroup$
1
  • $\begingroup$ Comments have been moved to chat; please do not continue the discussion here. Before posting a comment below this one, please review the purposes of comments. Comments that do not request clarification or suggest improvements usually belong as an answer, on Bioinformatics Meta, or in Bioinformatics Chat. Comments continuing discussion may be removed. $\endgroup$
    – terdon
    Commented Aug 30 at 14:01

2 Answers 2

2
$\begingroup$

1, yes, it's ok to merge fastq, but don't sort the combined fastqs, because sometime later on if you need to run pseudo-aligners (eg. salmon), it requires random read id.

A more common way is to treat them separately, (in qc, alignment, filtering, and quantification). Then make sure they look same or close to identical in PCA, then you are safe to merge the final counts to increase the read depth (essentially increase power).

2, GEO samples, refer to the accession with GSMxxx or SAMNxxx, it can contain multiple runs (SRR). If you use SRA Run Selector, and put your PRJNA of interest, you can see the structure of the dataset.

$\endgroup$
1
  • $\begingroup$ Also, I found that Salmon has options to use multiple libraries as input, see here: salmon.readthedocs.io/en/latest/… I think that is the option I will use. $\endgroup$
    – Freek
    Commented Sep 6 at 7:50
0
$\begingroup$

The rule of thumb is: do not merge FASTQ files. Strange things like same sample different read lengths in runs or different quality encodings while thankfully rare will mess up any downstream analysis. Also: no point of duplicating input data, creating giant single files and in turn slowing down the analysis. Process the FASTQ files separately, make sure that runs are from the same sample/same read length, then merge sorted BAMs.

$\endgroup$
1
  • $\begingroup$ Salmon does not produce BAM files, but I guess I could simply add up all the counts from the runs, then re-normalize. Allthough Salmon can handle multiple fastq-files per library so there is that option... $\endgroup$
    – Freek
    Commented Sep 10 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.