Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • BWA - samtools problem

    Hello everyone

    There are some topics concerning BWA and Samtools, but i still can't find the reasons of the trouble.

    Here is what I count

    bwa index -a bwtsw human.fasta
    bwa aln human.fasta read.fq > aln_sa.sai
    bwa samse human.fasta aln_sa.sai read.fq > aln.sam
    samtools view -b -h -S -T human.fasta aln.sam > aln.bam
    samtools sort aln.bam aln.sort
    samtools index aln.sort.bam

    when i finished these steps and get the sorted bam file, i then run

    java -jar ViewSam.jar I=aln.sort.bam

    it got the following error message:


    Exception in thread "main" java.lang.RuntimeException: SAM validation error: ERROR: Record 1, Read name 1_R9DycrMpuN1, MRNM should not be set for unpaired read.
    at net.sf.samtools.SAMUtils.processValidationErrors(SAMUtils.java:334)
    at net.sf.samtools.BAMFileReader$BAMFileIterator.advance(BAMFileReader.java:444)
    at net.sf.samtools.BAMFileReader$BAMFileIterator.<init>(BAMFileReader.java:408)
    at net.sf.samtools.BAMFileReader$BAMFileIterator.<init>(BAMFileReader.java:398)
    at net.sf.samtools.BAMFileReader.getIterator(BAMFileReader.java:201)
    at net.sf.samtools.SAMFileReader.iterator(SAMFileReader.java:283)
    at net.sf.samtools.SAMFileReader.iterator(SAMFileReader.java:38)
    at net.sf.picard.sam.ViewSam.doWork(ViewSam.java:68)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:150)
    at net.sf.picard.sam.ViewSam.main(ViewSam.java:58)

    how can i fix this?
    Thanks!!!

  • #2
    Give the first line of your alignment, by samtools.

    Comment


    • #3
      I have found one way to figure out the problem

      I used the function "setValidationStringency" in samtools


      thx!

      Comment

      Latest Articles

      Collapse

      • 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
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      22 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      46 views
      0 likes
      Last Post seqadmin  
      Working...
      X