Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mtiwaridros
    Member
    • Feb 2014
    • 20

    #1

    Problem reading in fastq files in STAR

    Hi

    I am trying to read in my fastq files into STAR for mapping.
    My input data is organized as follows:
    1. 2 samples
    2. 3 replicates in each
    3. For each replicate, a number of paired end fastq files

    I have tried several methods to input but always get the error that could not open readInFile.

    For instance:
    Code:
    /home/STAR --genomeDir /media/ --readFilesIn /media/Sample1_R1_001.fastq /media/Sample1_R2_001.fastq,/media/Sample1_R1_002.fastq /media/Sample1_R2_002.fastq --runThreadN 4
    or
    Code:
    /home/STAR --genomeDir /media/ --readFilesIn /media/Sample1_R1_001.fastq Sample1_R2_001.fastq,Sample1_R1_002.fastq Sample1_R2_002.fastq --runThreadN 4
    Here, R1 and R2 are paired-end reads (separated by space). And Sample 1 has several such paired-end fastq files (i showed here 2 only just to be succint) (separated by ,). Similarly for other samples.

    Can anyone please suggest what might be going wrong?

    Thanks in advance.
    Best
    M
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Try:
    Code:
    /home/STAR --genomeDir /media/ --readFilesIn /media/Sample1_R1_001.fastq,/media/Sample1_R1_002.fastq /media/Sample1_R1_001.fastq,/media/Sample1_R2_002.fastq --runThreadN 4
    Basically you need to separate the list of read #1 and read #2 files from each other by a space and separate different samples (or parts of a run) inside each of those by commas.
    Last edited by dpryan; 02-21-2014, 07:32 AM. Reason: Oops, I somehow created a "Sample3"! Mea culpa!

    Comment

    • mtiwaridros
      Member
      • Feb 2014
      • 20

      #3
      Hi dpryan

      Thanks for your input.
      What you have suggested is what I am doing but it is not working.
      As I mentioned previously,
      Sample 1 has paired-end reads (R1 and R2) which are present as 15 fastq files (i.e. Sample1_R1_i and Sample1_R2_i, where i=1-15).
      Similarly I have multiple paired-end files for other samples.

      As you suggested,
      Code:
      separate the list of read #1 and read #2 files from each other by a space
      that would mean separating R1 and R2 by a space

      Code:
      separate different samples (or parts of a run) inside each of those by commas
      that would mean separating R1_1 and R1_2 by ,.

      This would translate to (showing it for 3 paired-fastq files only for sample1)
      Code:
      /home/STAR --genomeDir /media --readFilesIn /media/Sample1_R1_001.fastq /media/Sample1_R2_001.fastq,/media/Sample1_R1_002.fastq /media/Sample1_R2_002.fastq,/media/Sample1_R1_003.fastq /media/Sample1_R2_003.fastq --runThreadN 4
      I have also tried listing all the R1 reads (separated by ,) followed by a space and then listing all R2 reads (separated by ,) butthat also doesnot work.

      On a similar note, should I run mapping for my other samples in the same command or issue a fresh command?

      Thanks.
      Best
      M

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        No, for a list of 3 that would mean:

        Code:
        /home/STAR --genomeDir /media --readFilesIn /media/Sample1_R1_001.fastq,/media/Sample1_R1_002.fastq,/media/Sample1_R1_003.fastq /media/Sample1_R2_001.fastq,/media/Sample1_R2_002.fastq,/media/Sample1_R2_003.fastq --runThreadN 4
        The general idea is "R1_1,R1_2,R1_3,R1_4,...,R1_N R2_1,R2_2,R2_3,R2_4,...,R2_N".

        Comment

        • mtiwaridros
          Member
          • Feb 2014
          • 20

          #5
          Ok. Got it.
          Its working now.
          And should I include other samples also (Sample2, 3 etc) also in the same command or give individual separate commands for each of them.

          Thanks.
          M

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            Since it outputs to a single file (at least if memory serves me correctly), run them separately so you can get each sample in a different file.

            BTW, one trick is to load the genome into memory once and then only remove it when you're done. This is easiest if you're running things in a script that iterates through samples (this is the approach I take on our cluster).

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 10-22-2026, 11:13 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            44 views
            0 reactions
            Last Post SEQadmin2  
            Working...