Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NU_454
    Junior Member
    • Feb 2011
    • 5

    #1

    bwa and nanopore reads

    Has anyone used bwa (0.7.12) with the mem -x ont2d option on nanopore 2D reads? FAQ's in bwa doc says "BWM-MEM works with Oxford Nanopore reads with a sequencing error rate over 20%.
    I've been able to create a .sam file with about 40,000 2d reads aligned to a single chromosome .fa file, but then have had issues seeing my data.
  • gringer
    David Eccles (gringer)
    • May 2011
    • 845

    #2
    It works fine for me. What's your problem?

    For extracting mapped reads, you can use samtools (to find mapped reads only) and awk:

    Code:
    samtools view -F 4 input.bam | grep -v '^@' awk '{print "@"$1"\n"$10"\n+\n"$11}' > mapped.fastq

    Comment

    • NU_454
      Junior Member
      • Feb 2011
      • 5

      #3
      sorry I am new at this. thanks for your help.
      here is what I have done:
      I used bwa to index my reference
      ./bwa index /home/nanopore/chr6.fa

      then I used bwa to align my files into a sam file (all 2d fastq files were cat together into one file)

      ./bwa mem -x ont2d /home/nanopore/chr6.fa /home/nanopore/MAP006_10122015.fastq > /home/nanopore/aln.sam

      I then used samtools to convert the sam file to a bam file:

      ./samtools view -bs aln.sam > aln.bam

      and finally sorted the bam file:

      ./samtools sort aln.bam aln_sort


      So the problem I am having is the sam file seems to be readable (at least in a text editor I can see the sequence info along with a header and some alphanumeric codes before each sequence, but the bam files are all symbols)

      If I try to view the bam file in GenomeBrowse I get an error "Data for this zoom level is unavailable until background computation is complete.

      Am I doing something wrong, or missing a step?

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        BAM format is a binary representation so it is not surprising that you can no longer "see" the contents of that file. That part should be ok. You workflow is also proper.

        I suggest that you use IGV to view the data instead of Genomebrowse. Follow the user guide here since you are new to IGV.

        Comment

        • gringer
          David Eccles (gringer)
          • May 2011
          • 845

          #5
          Or Tablet.

          Comment

          • NU_454
            Junior Member
            • Feb 2011
            • 5

            #6
            Thank you!

            My problem was with either my sorting or indexing. Once I used the tools in IGV to sort and index my sam file I can now view my data.

            Tablet looks good too! Thanks for the link.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
              by SEQadmin2




              NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
              Yesterday, 06:46 AM
            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 10-28-2026, 09:57 AM
            0 responses
            29 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-28-2026, 09:51 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 11:13 AM
            0 responses
            71 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            48 views
            0 reactions
            Last Post SEQadmin2  
            Working...