Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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


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


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


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


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


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


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


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


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


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


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

                          • seqadmin
                            Current Approaches to Protein Sequencing
                            by seqadmin


                            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                            04-04-2024, 04:25 PM
                          • seqadmin
                            Strategies for Sequencing Challenging Samples
                            by seqadmin


                            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                            03-22-2024, 06:39 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by seqadmin, 04-11-2024, 12:08 PM
                          0 responses
                          18 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-10-2024, 10:19 PM
                          0 responses
                          22 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-10-2024, 09:21 AM
                          0 responses
                          17 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-04-2024, 09:00 AM
                          0 responses
                          48 views
                          0 likes
                          Last Post seqadmin  
                          Working...
                          X