Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tinguzman
    Member
    • Aug 2014
    • 13

    SRA to fastq

    Hi,

    I'm trying to convert an sra file to fastq. i downloaded the sra toolkit and ran fastq-dump, here's what i got:


    "Unrecognized character \xCF; marked by <-- HERE after <-- HERE near column 1 at fastq-dump line 1."

    can somebody help me, are there any other script to convert sra files to fastq?

    thanks,
    christine
  • WhatsOEver
    Senior Member
    • Apr 2012
    • 215

    #2
    Hi christine,
    can you provide the command you used and where you got the SRA file from. I don't think that fastq-dump is the problem, but rather your SRA file.

    Comment

    • tinguzman
      Member
      • Aug 2014
      • 13

      #3
      Hi

      thanks for your reply. I ran this command, within the bin directory, - perl fastq-dump.2.3.5.2 SRR504687.sra. I also copied the sra file to the bin.

      I downloaded this rsa file from here http://www.ncbi.nlm.nih.gov/sra/SRX151862%5Baccn%5D

      thanks,
      Christine

      Comment

      • WhatsOEver
        Senior Member
        • Apr 2012
        • 215

        #4
        Originally posted by tinguzman View Post
        perl fastq-dump.2.3.5.2 SRR504687.sra.
        That's the problem. What you have is a pre-compiled binary, not a perl script. Simply running
        Code:
        ./fastq-dump.2.3.5.2 ./SRR504687.sra
        from within your bin directory should work.

        Comment

        • tinguzman
          Member
          • Aug 2014
          • 13

          #5
          Hi,

          thanks a lot! it's working now.

          best,
          christine

          Comment

          • tinguzman
            Member
            • Aug 2014
            • 13

            #6
            hi again!

            i just finished running ./fastq-dump.2.3.5.2 -split-files ./SRR504687.sra. i have 2 output SRR504687_1 and SRR504687_2. one is 13gb while the other is only 3gb. i'm expecting that they should have the same size, for forward and reverse reads, right? correct me if i'm wrong coz i'm planning to assemble them using trinity. should I qc them first?

            best,
            christine

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              You can download the compressed fastq files from ENA (here and here). That's often faster than dealing with SRA, since the SRA toolkit is painfully slow and often buggy. You'll note that their fastq files also have a different size, so this isn't something you're doing wrong.

              Comment

              • tinguzman
                Member
                • Aug 2014
                • 13

                #8
                Hi Ryan,

                thank you very much. submitted fastq files or sra files are not yet trimmed/filtered right? they are raw sequences, for example from illumina sequencing.

                best,
                christine

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  Yeah, they should be the raw files. This definitely raises the question of why the files have such different sizes. My guess is that the only person that can really answer that is the person that uploaded the files (Ana Riesgo).

                  Comment

                  • WhatsOEver
                    Senior Member
                    • Apr 2012
                    • 215

                    #10
                    Originally posted by tinguzman View Post
                    hi again!

                    i just finished running ./fastq-dump.2.3.5.2 -split-files ./SRR504687.sra. i have 2 output SRR504687_1 and SRR504687_2. one is 13gb while the other is only 3gb. i'm expecting that they should have the same size, for forward and reverse reads, right? correct me if i'm wrong coz i'm planning to assemble them using trinity. should I qc them first?

                    best,
                    christine
                    I should have mentioned that the -split-3 command is always preferred over "split-files". This way 1 file will be generated for single end data, 2 files (with sufffix "_1" and "_2") for paired ends and 3 files (suffix "_1", "_2" and w/o suffix) if there are reads without mate pairs. This way I get a 13.2Gb file ("_1") and a 7.0Gb file ("_2") from the sra.
                    Looking at the fastq files, you'll see that forward reads are 150bp while reverse are 48bp. I have actually never seen this for PE data before and would contact the uploader (as dpryan suggested). At least there are no missing mates... I would give it a try and use them in trinity while waiting for an answer.

                    Comment

                    • lac302
                      Member
                      • Dec 2012
                      • 64

                      #11
                      Has anyone had any issues downloading and splitting files from dnanexus? I'm unable to use aspera connect to download files from sra. I'm trying to replicate an experiment to test out an RNA-seq analysis pipeline but am having issues with 3 particular files. SRR639124, SRR639239, SRR639263.

                      The sra toolkit is working as other files has split without issue. SRR639124 oddly splits to two files _1 is 100bp and _2 is only 1bp? The other two will not split. The stat script shows only 1 read.

                      I'm wondering if it's an issue with dnanexus or the original SRA upload. Any help would be appreciated.

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        Are you using the latest sratoolkit? You no longer need to download .sra files. fastq-dump from the new sratoolkit will download fastq files directly.

                        Comment

                        • lac302
                          Member
                          • Dec 2012
                          • 64

                          #13
                          Originally posted by GenoMax View Post
                          Are you using the latest sratoolkit? You no longer need to download .sra files. fastq-dump from the new sratoolkit will download fastq files directly.
                          I believe so. Using 2.4.3.

                          How exactly does that work? curl?

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #14
                            Originally posted by lac302 View Post
                            I believe so. Using 2.4.3.

                            How exactly does that work? curl?
                            See this: http://seqanswers.com/forums/showpos...36&postcount=7

                            BTW: SRR639124 appears to be a single end dataset irrespective of what the SRA record says (this type of thing happens at times).

                            Comment

                            • lac302
                              Member
                              • Dec 2012
                              • 64

                              #15
                              Thanks Geno. I need to improve my search skills.

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                                by SEQadmin2


                                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                                ...
                                06-02-2026, 10:05 AM
                              • SEQadmin2
                                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                                by SEQadmin2


                                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                                Introduction

                                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                                05-22-2026, 06:42 AM
                              • SEQadmin2
                                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                                by SEQadmin2

                                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                                05-06-2026, 09:04 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 06-02-2026, 12:03 PM
                              0 responses
                              19 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-02-2026, 11:40 AM
                              0 responses
                              14 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 05-28-2026, 11:40 AM
                              0 responses
                              29 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 05-26-2026, 10:12 AM
                              0 responses
                              31 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...