Unconfigured Ad

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

    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
              Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by SEQadmin2


              I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

              Here are nine questions we think about, in roughly the order they matter, before...
              06-18-2026, 07:11 AM
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 06-26-2026, 11:10 AM
            0 responses
            11 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-17-2026, 06:09 AM
            0 responses
            46 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-09-2026, 11:58 AM
            0 responses
            105 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-05-2026, 10:09 AM
            0 responses
            125 views
            0 reactions
            Last Post SEQadmin2  
            Working...