Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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


          • #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

            • seqadmin
              Advancing Precision Medicine for Rare Diseases in Children
              by seqadmin




              Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
              12-16-2024, 07:57 AM
            • seqadmin
              Recent Advances in Sequencing Technologies
              by seqadmin



              Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

              Long-Read Sequencing
              Long-read sequencing has seen remarkable advancements,...
              12-02-2024, 01:49 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 12-17-2024, 10:28 AM
            0 responses
            33 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-13-2024, 08:24 AM
            0 responses
            49 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-12-2024, 07:41 AM
            0 responses
            34 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-11-2024, 07:45 AM
            0 responses
            46 views
            0 likes
            Last Post seqadmin  
            Working...
            X