Answers.Body: <p>Basically you're asking why a given GEO accession (GSM...) has many Runs (SRR...). That is because the submitters uploaded multiple fastq files for the same sample, which is the case if a library has been sequenced over multiple lanes or flowcells, often to increase depth. You can use <code>cat</code> to combine these &quot;technical replicates&quot; into a single fastq file for both R1 and R2 file in case of paired-end data, or one single fastq file in case of single-end data.</p>
  <p>For example, if you have <code>file1.fq.gz</code>, <code>file2.fq.gz</code> and <code>file3.fq.gz</code> just do:</p>
  <pre class="lang-r prettyprint-override"><code>cat file1.fq.gz file2.fq.gz file3.fq.gz &gt; combined.fq.gz
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-09T19:08:14.690Z
Answers.Text: "You can use cat to combine these "technical replicates" into a single fastq file for both R1 and R2 file in case of paired-end data". it is okay to go head with this approach meaning it wont be an issue with the downstream alignment .?
Answers.UserDisplayName: PesKchan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-10T11:31:06.543Z
Answers.Text: cat is fine, see edit.
Answers.UserDisplayName: ATpoint
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-09T14:12:26.727Z
Answers.LastActivityDate: 2023-08-10T10:37:04.753Z
Answers.LastEditDate: 2023-08-10T10:37:04.753Z
Answers.UserDisplayName: ATpoint
Body: <p>So here I'm trying to donwload multiple fastq files based on the GSM ID input the script works fine when then input is only SRR id but it runs into error when it is given GSM ID</p>
  <p>My small GSM ID input set</p>
  <pre><code>cat srr_id.txt
  GSM5369701
  GSM4663476
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-08T10:51:03.370Z
Comments.Text: I only see two GSM IDs in your output, is it the extra SRR* files you don't want? I don't really have much experience with the SRA, but I can see that, for example, `SRR12180300` is under `GSM4663476`: https://www.ncbi.nlm.nih.gov/sra/?term=SRR12180300. Are you sure there is an issue here?
Comments.UserDisplayName: terdon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-08T14:30:26.230Z
Comments.Text: yes I mean if two GSM ID then 2 SRR file I should be getting but which is SRR12180300 and SRR14836042 for the other GSM ID but Im getting other also why?
Comments.UserDisplayName: PesKchan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-08T18:16:08.633Z
Comments.Text: @terdon these are technical reads which I don't want in other words i need final output where I get only one output instead of different technical reads i thought fasterq-dump would do this by default but it it not doing it
Comments.UserDisplayName: PesKchan
Tags: <fastq><shell><sratoolkit>
Title: Multiple SRR ID downloaded for single GSM IDs input issue
ThreadText: # Multiple SRR ID downloaded for single GSM IDs input issue
  
  (Asked by: username_0 on 2023-08-08)
  
  So here I'm trying to donwload multiple fastq files based on the GSM ID input the script works fine when then input is only SRR id but it runs into error when it is given GSM ID
  
  My small GSM ID input set
  
  ```
  cat srr_id.txt
  GSM5369701
  GSM4663476
  
  ```
  
  **Tags:** fastq, shell, sratoolkit
  
  > **Comments:**
  > **username_1**: I only see two GSM IDs in your output, is it the extra SRR* files you don't want? I don't really have much experience with the SRA, but I can see that, for example, `SRR12180300` is under `GSM4663476`: https://www.ncbi.nlm.nih.gov/sra/?term=SRR12180300. Are you sure there is an issue here?  
  > **username_0**: yes I mean if two GSM ID then 2 SRR file I should be getting but which is SRR12180300 and SRR14836042 for the other GSM ID but Im getting other also why?  
  > **username_0**: @username_1 these are technical reads which I don't want in other words i need final output where I get only one output instead of different technical reads i thought fasterq-dump would do this by default but it it not doing it  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-08-09. Score: 1 | Accepted answer
  
  Basically you're asking why a given GEO accession (GSM...) has many Runs (SRR...). That is because the submitters uploaded multiple fastq files for the same sample, which is the case if a library has been sequenced over multiple lanes or flowcells, often to increase depth. You can use `cat` to combine these "technical replicates" into a single fastq file for both R1 and R2 file in case of paired-end data, or one single fastq file in case of single-end data.
  
  For example, if you have `file1.fq.gz`, `file2.fq.gz` and `file3.fq.gz` just do:
  
  ```r
  cat file1.fq.gz file2.fq.gz file3.fq.gz > combined.fq.gz
  
  ```
  
  > **Comments:**
  > **username_0**: "You can use cat to combine these "technical replicates" into a single fastq file for both R1 and R2 file in case of paired-end data". it is okay to go head with this approach meaning it wont be an issue with the downstream alignment .?  
  > **username_2**: cat is fine, see edit.  
  
  ---
  
  