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

                              • mylaser
                                Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by mylaser
                                Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                                If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                                This guide explains everything you need to know about...
                                Yesterday, 01:13 AM
                              • SEQadmin2
                                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by SEQadmin2



                                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                                ...
                                07-09-2026, 11:10 AM
                              • SEQadmin2
                                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                                by SEQadmin2



                                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                                07-08-2026, 05:17 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 07-09-2026, 10:04 AM
                              0 responses
                              19 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-08-2026, 10:08 AM
                              0 responses
                              11 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-07-2026, 11:05 AM
                              0 responses
                              26 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-02-2026, 11:08 AM
                              0 responses
                              31 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...