Header Leaderboard Ad

Collapse

Issue with SRA to FASTQ Conversion

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
                            How RNA-Seq is Transforming Cancer Studies
                            by seqadmin



                            Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
                            09-07-2023, 11:15 PM
                          • seqadmin
                            Methods for Investigating the Transcriptome
                            by seqadmin




                            Ribonucleic acid (RNA) represents a range of diverse molecules that play a crucial role in many cellular processes. From serving as a protein template to regulating genes, the complex processes involving RNA make it a focal point of study for many scientists. This article will spotlight various methods scientists have developed to investigate different RNA subtypes and the broader transcriptome.

                            Whole Transcriptome RNA-seq
                            Whole transcriptome sequencing...
                            08-31-2023, 11:07 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by seqadmin, 09-22-2023, 09:05 AM
                          0 responses
                          14 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 09-21-2023, 06:18 AM
                          0 responses
                          11 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 09-20-2023, 09:17 AM
                          0 responses
                          13 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 09-19-2023, 09:23 AM
                          0 responses
                          28 views
                          0 likes
                          Last Post seqadmin  
                          Working...
                          X