Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


    • #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


      • #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


        • #5
          Or Tablet.

          Comment


          • #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

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin


              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
              Yesterday, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            44 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            43 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            38 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Working...
            X