Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • angelpie
    Junior Member
    • Nov 2010
    • 8

    #1

    bwa_indexing_error

    I try to map illumina results to genome by bwa.
    However, I have stalled at the entrance.

    I prepared concatenated human genome sequence derived from UCSC.
    It was removed random, Un, hap files in advance.

    Although I entered following command, I encountered error message.

    $ bwa index -a bwtsw hg19.fa
    $ [bwa_index] fail to open 'hg19.fa'. Abort!

    When I used only chromosome 1 instead of whole chromosomes, program was not stopped.
    I guess bwa on my PC is functional and I felt point is file size.
    Nevertheless, size of hg19.fa is 2.9 GB.
    In addition, everyone reported on the net can use hg19.fa.

    Could you please help me?
  • dawe
    Senior Member
    • Apr 2009
    • 258

    #2
    is hg19.fa actually there?

    Comment

    • angelpie
      Junior Member
      • Nov 2010
      • 8

      #3
      Yes.

      I can actually glance it by "more" command.

      Comment

      • dawe
        Senior Member
        • Apr 2009
        • 258

        #4
        Originally posted by angelpie View Post
        Yes.

        I can actually glance it by "more" command.
        Mmm... I'm looking at bwa code. You get that error when gzopen is called on your hg19.fa. gzopen returns 0 (actually NULL) if the file could not be opened, if there was insufficient memory to allocate the gzFile state...

        Program: bwa (alignment via Burrows-Wheeler transformation)
        Version: 0.5.8-4 (r1544)

        d

        Comment

        • angelpie
          Junior Member
          • Nov 2010
          • 8

          #5
          I use the bwa-0.5.8c on Ubuntu 10.10.

          You mentioned gzopen.
          That means bwa_index uses gziped files, is that right?

          In fact, I try to use gziped file once.
          In that case, bwa_index didn't stall.

          However, I usually try to use extracted files.
          Because every samples I found on the net didn't use compressed files.

          Comment

          • dawe
            Senior Member
            • Apr 2009
            • 258

            #6
            Originally posted by angelpie View Post
            I use the bwa-0.5.8c on Ubuntu 10.10.

            You mentioned gzopen.
            That means bwa_index uses gziped files, is that right?
            Not necessarily. The reader is smart enough to read uncompressed stream. I usually index uncompressed fasta files. Now I know I can use gzipped genomes, though, thank you :-)
            Sorry for your genome, I don't know what to say or to test.

            Comment

            • drio
              Senior Member
              • Oct 2008
              • 323

              #7
              @angelpie Can you list all the files in the directory where you have your fasta file?
              -drd

              Comment

              • angelpie
                Junior Member
                • Nov 2010
                • 8

                #8
                Originally posted by drio View Post
                @angelpie Can you list all the files in the directory where you have your fasta file?
                My genome sequence file, hg19.fa, was prepared depending on
                http://chagall.med.cornell.edu/NGSco...eparations.pdf.

                I try to do it in some directories.
                In one case,
                there are chr1.fa - chr22.fa, chrX.fa, chrY.fa, chrM.fa, chromFa.tar,
                and hg19.fa.

                Comment

                • Firebird
                  Member
                  • Jun 2010
                  • 18

                  #9
                  I have the same problem.
                  Is there a link to get the full hg19 directly, withouth assembling it from all chromosomes?
                  I also use Ubuntu on a 32 bit machine.

                  Comment

                  • colindaven
                    Senior Member
                    • Oct 2008
                    • 417

                    #10
                    I successfully indexed hg19, built from the concatenated separate chromosomes, using an Ubuntu 8.04 system with 8GB of RAM. I think 32 bit machines are going to be fairly limited here when indexing / aligning to hg19 because the maximum amount of RAM which can be used per process is around 2.5GB.

                    Suggestion - try a 64 bit machine.

                    Comment

                    • angelpie
                      Junior Member
                      • Nov 2010
                      • 8

                      #11
                      Dear colindaven,

                      I thank you for your suggestion.
                      However, I use Ubuntu 10.10 on PC with Xeon W3503 and 12 GB memories.

                      I also suspect that my trouble is derived from my PC specific environment.
                      Unfortunately, I cannot try to work on alternate PC.

                      Comment

                      • colindaven
                        Senior Member
                        • Oct 2008
                        • 417

                        #12
                        In that case you could try a virtual machine image, or another aligner.

                        Although I can sometimes get results from bwa, it does tend to exhaust the memory and thereby make the server unusable.

                        Comment

                        Latest Articles

                        Collapse

                        • SEQadmin2
                          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                          by SEQadmin2



                          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                          Despite this, “CRISPR helped turn genome editing from a specialized technique into
                          ...
                          07-31-2026, 11:01 AM
                        • SEQadmin2
                          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                          by SEQadmin2


                          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                          The systematic characterization of the human proteome has
                          ...
                          07-20-2026, 11:48 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by SEQadmin2, 08-06-2026, 07:41 AM
                        0 responses
                        15 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 08-03-2026, 10:13 AM
                        0 responses
                        31 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-31-2026, 02:55 AM
                        0 responses
                        41 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-24-2026, 12:17 PM
                        0 responses
                        26 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...