Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arupsss
    Member
    • May 2011
    • 44

    #1

    Issue with SRA to FASTQ Conversion

    I have downloaded a SRA file from here. Now, I want to convert it into Fastq format.

    So, what I did is following,

    1) Download SRA Toolkit from here. (MS Windows 64 bit architecture - as I am using windows 7 64 bit)

    2) Put SRA file on "sratoolkit.2.1.10-win64\bin"

    3) Run command "fastq-dump SRR493095.sra"

    However, I can't understand why it is giving error ?

    Error is given here.

    Can anybody help me why is this happening ?
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Did you look at the ncbi_error_report.xml file?
    If you can't find anything obvious can you post the contents of that file?

    Comment

    • Arupsss
      Member
      • May 2011
      • 44

      #3
      Originally posted by GenoMax View Post
      Did you look at the ncbi_error_report.xml file?
      If you can't find anything obvious can you post the contents of that file?
      I have uploaded it in http://pastebin.ca/2162892 .

      Comment

      • Richard Finney
        Senior Member
        • Feb 2009
        • 701

        #4
        Look here:


        The error " <Result rc="RC(rcDB,rcMgr,rcOpening,rcPath,rcIncorrect)"/>" (from your pastebin at http://pastebin.ca/2162892 ) output appears to be generated by this code :

        case kptFile:
        case kptFile | kptAlias:
        rc = KDirectoryOpenSraArchiveRead_silent ( dir, &ldir, false, path );
        if ( rc != 0 )
        rc = KDirectoryOpenTarArchiveRead_silent ( dir, &ldir, false, path );
        if ( rc == 0 )
        {
        /* recheck this newly opened directory for KDB/KFS type */
        type = KDBPathType ( ldir, "." );

        /* it its not the KDB type we wanted fail */
        if (( type != pathtype ) && (type != (pathtype | kptAlias )))
        {
        KDirectoryRelease (ldir);
        ldir = NULL;
        rc = RC ( rcDB, rcMgr, rcOpening, rcPath, rcIncorrect );
        }
        }
        else if ( rc != 0 )
        {
        rc = RC ( rcDB, rcMgr, rcOpening, rcPath, rcIncorrect );
        }
        break;
        }



        Hmmm ...
        I'd suggest specifying the full path to the SRA data file.

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          I think you need to run the command like below. I just verified that it works.

          fastq-dump ./SRR493095.sra (if the file is in the same directory), otherwise provide full path to where your file is located.

          Comment

          • Arupsss
            Member
            • May 2011
            • 44

            #6
            Originally posted by GenoMax View Post
            I think you need to run the command like below. I just verified that it works.

            fastq-dump ./SRR493095.sra (if the file is in the same directory), otherwise provide full path to where your file is located.
            I tried with full path also giving the same error. However, is there any way to download fastq format file for 150 bps reads ?

            Comment

            • Arupsss
              Member
              • May 2011
              • 44

              #7
              Originally posted by Richard Finney View Post
              Look here:


              The error " <Result rc="RC(rcDB,rcMgr,rcOpening,rcPath,rcIncorrect)"/>" (from your pastebin at http://pastebin.ca/2162892 ) output appears to be generated by this code :

              case kptFile:
              case kptFile | kptAlias:
              rc = KDirectoryOpenSraArchiveRead_silent ( dir, &ldir, false, path );
              if ( rc != 0 )
              rc = KDirectoryOpenTarArchiveRead_silent ( dir, &ldir, false, path );
              if ( rc == 0 )
              {
              /* recheck this newly opened directory for KDB/KFS type */
              type = KDBPathType ( ldir, "." );

              /* it its not the KDB type we wanted fail */
              if (( type != pathtype ) && (type != (pathtype | kptAlias )))
              {
              KDirectoryRelease (ldir);
              ldir = NULL;
              rc = RC ( rcDB, rcMgr, rcOpening, rcPath, rcIncorrect );
              }
              }
              else if ( rc != 0 )
              {
              rc = RC ( rcDB, rcMgr, rcOpening, rcPath, rcIncorrect );
              }
              break;
              }



              Hmmm ...
              I'd suggest specifying the full path to the SRA data file.
              I tried with full path also giving the same error. However, is there any way to convert .sra to fastq format ?

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                I am not sure what to tell you. I am able to run the command and get the fastq file without any problem from that exact .sra file.

                Try re-downloading the .sra file (in case it somehow got corruputed during the donwload).

                Comment

                • Richard Finney
                  Senior Member
                  • Feb 2009
                  • 701

                  #9
                  fastq-dump should work
                  If it's SOLID data, I recommend abi-dump (I've had better luck with it).

                  Looking at your pastebin, I think you need the full path to your executable "fastq-dump".

                  <Binary path="/c/sratoolkit.2.1.10-win64/bin/fastq-dump" type="not found"/>


                  Try putting an ".exe" file name extension if that is in the real name of the file.

                  Comment

                  • Arupsss
                    Member
                    • May 2011
                    • 44

                    #10
                    Thanks a lot. I am trying to start from first. Another point is that after your previous days help, I get stuck on this and this. Can you help me about those ? BTW thanks a lot for your kind help.

                    Comment

                    • Arupsss
                      Member
                      • May 2011
                      • 44

                      #11
                      Thanks a lot. However, one question is,

                      is it enough to just download Sra Toolkit and run the above command ? Is any other step required for windows 7 61 bit ?

                      Comment

                      • Arupsss
                        Member
                        • May 2011
                        • 44

                        #12
                        Originally posted by GenoMax View Post
                        I am not sure what to tell you. I am able to run the command and get the fastq file without any problem from that exact .sra file.

                        Try re-downloading the .sra file (in case it somehow got corruputed during the donwload).
                        Thanks a lot GenoMax. You are right. I started from the first. Download everything again. And works nicely. Thanks.

                        Comment

                        • GenoMax
                          Senior Member
                          • Feb 2008
                          • 7142

                          #13
                          I have answered the questions you posted here in the respective threads.

                          Originally posted by Arupsss View Post
                          I get stuck on this and this. Can you help me about those ?
                          Last edited by GenoMax; 06-19-2012, 08:23 AM.

                          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, Yesterday, 11:13 AM
                          0 responses
                          19 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, Yesterday, 10:48 AM
                          0 responses
                          18 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-15-2026, 10:52 AM
                          0 responses
                          36 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-14-2026, 05:39 AM
                          0 responses
                          42 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...