Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ikrier
    Member
    • Dec 2009
    • 19

    bwa question on file outputs/inputs

    Reposted from an old thread in the SOLiD forum :

    Hi, I did the indexing with bwtsw and no -p and I got the following files :
    Mouse_genome.fa.amb
    Mouse_genome.fa.ann
    Mouse_genome.fa.bwt
    Mouse_genome.fa.pac
    Mouse_genome.fa.rbwt
    Mouse_genome.fa.rpac
    Mouse_genome.fa.rsa
    Mouse_genome.fa.sa

    I managed to get the .sai file from the aln command, but now I'm stuck because the samse command gives me the error:
    fail to open file '../Mouse_genome.fa.nt.ann'. Abort!

    But I never get the .nt.ann file with indexing. I'm confused.
  • dnusol
    Senior Member
    • Jul 2009
    • 136

    #2
    Hi Ikrier,
    did you manage to solve this problem? I am interested in how you got round it, because I am having problems in the previous step

    I am trying to use the bwa aln command with default paramenters, I start getting lots of weird characters on the screen and finally I get no out.sai output. I get no warning that I can see.

    Can anyone drop some hints?

    Cheers

    Comment

    • ikrier
      Member
      • Dec 2009
      • 19

      #3
      i'm still confused because the problem solved itself. I don't even know why, but after trying several times it didn't ask for the same files anymore.

      Comment

      • dnusol
        Senior Member
        • Jul 2009
        • 136

        #4
        Did you actually get the out.sai file in the bwa aln step?

        my command is

        $ ./bwa aln myref.fasta /path_to/s_1_sequence.fastq out.sai

        I cannot get that out.sai file

        Comment

        • ikrier
          Member
          • Dec 2009
          • 19

          #5
          Did you try
          ./bwa aln myref.fasta /path_to/s_1_sequence.fastq > out.sai

          Comment

          • dnusol
            Senior Member
            • Jul 2009
            • 136

            #6
            Shoot! I missed the >

            Thanks, I'll try again

            Comment

            • huma Asif
              Member
              • Oct 2010
              • 53

              #7
              error in alignment

              Dear All
              while running BWA aln i got this error can anybody help in fixing it
              dr@dr-Revision-A:~/Desktop/bwa-0.5.7$ ./bwa aln myref.fasta /path_to/s_1_sequence.fastq > out.sai
              [bwa_aln] 17bp reads: max_diff = 2
              [bwa_aln] 38bp reads: max_diff = 3
              [bwa_aln] 64bp reads: max_diff = 4
              [bwa_aln] 93bp reads: max_diff = 5
              [bwa_aln] 124bp reads: max_diff = 6
              [bwa_aln] 157bp reads: max_diff = 7
              [bwa_aln] 190bp reads: max_diff = 8
              [bwa_aln] 225bp reads: max_diff = 9
              [bwa_seq_open] fail to open file '/path_to/s_1_sequence.fastq'. Abort!
              Aborted

              Regards
              Huma

              Comment

              • dnusol
                Senior Member
                • Jul 2009
                • 136

                #8
                Hi Huma,

                you actually have to write the full path to your fastq file.

                So if for example you have the fastq file in

                /home/huma/data/s_1_sequence.fastq

                then your command should say so

                ./bwa aln myref.fasta /home/huma/data/s_1_sequence.fastq > out.sai

                If your fastq file is in your current drectory then you don't need to specify it.

                also, if you do not specify the full path where you want to redirect the output, this will be saved in the current directory

                A useful trick to use is to complete the name of the files requested using the tab key. If you try to do the following from the command line

                ./bwa aln myref.fasta /path_to/s_1_sequence.fas [press tab to complete]

                then the shell will not complete the name automatically

                HTH.

                Comment

                • huma Asif
                  Member
                  • Oct 2010
                  • 53

                  #9
                  use of index file in BWA

                  Thank you so much for your kind reply .Actually i am confused about the index files that i generated in my command
                  ./bwa aln ref/putidaKT2440.fasta reads/pseudo.fq out.sai
                  I am not using index file anywhere so I am confused what do i need to do to make use of it
                  Regards
                  Last edited by huma Asif; 01-11-2011, 01:08 AM.

                  Comment

                  • huma Asif
                    Member
                    • Oct 2010
                    • 53

                    #10
                    BWA output

                    finally i have run BWA aligner successfully
                    i have got an output file in SAM format
                    now i opened that sam file in samtool pseudo.bam,
                    pseudo.sorted.bam
                    pseudo.sorted.bam.bai
                    raw.pileup

                    please guide me which file shal i use to view alignment

                    Regards

                    Comment

                    • Orr Shomroni
                      Member
                      • Oct 2011
                      • 26

                      #11
                      Problem solved

                      ikier, I had the same problem as you with the core dumped and the fa.nt.ann failure to open. I found the solution. When you run the bwa index, it should be run with the following code:
                      Code:
                      bwa index -a bwtsw database.fasta
                      For some reason, bwa index by default uses algorithm IS, which doesn't work as well as the BWTSW algorithm. See the explanation on the website
                      HTML Code:
                      http://bio-bwa.sourceforge.net/bwa.shtml
                      "Though it may seem that all's been said and done, originality still lives on" - some unoriginal guy who had nothing better to write as his signature

                      Comment

                      • dtc
                        Junior Member
                        • Oct 2012
                        • 3

                        #12
                        Hi Ikrier,
                        do you know how it fixed itself now,I have the same problem,but I tried many times,it still can't work.
                        Cheers

                        Comment

                        • swbarnes2
                          Senior Member
                          • May 2008
                          • 910

                          #13
                          Originally posted by Orr Shomroni View Post
                          ikier, I had the same problem as you with the core dumped and the fa.nt.ann failure to open. I found the solution. When you run the bwa index, it should be run with the following code:
                          Code:
                          bwa index -a bwtsw database.fasta
                          For some reason, bwa index by default uses algorithm IS, which doesn't work as well as the BWTSW algorithm. See the explanation on the website
                          HTML Code:
                          http://bio-bwa.sourceforge.net/bwa.shtml
                          The default index on bwa index works fine for small genomes. I use all the time with no problems on bacterial genomes.

                          But for larger genomes, like mammals, yes, you have to use bwtsw.

                          Comment

                          Latest Articles

                          Collapse

                          • 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.
                            ...
                            Yesterday, 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
                          • GATTACAT
                            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                            by GATTACAT
                            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                            07-01-2026, 11:43 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, Yesterday, 10:04 AM
                          0 responses
                          10 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-08-2026, 10:08 AM
                          0 responses
                          7 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 07-07-2026, 11:05 AM
                          0 responses
                          15 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...