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
        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...
        04-22-2024, 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, Today, 11:49 AM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 08:47 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      61 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Working...
      X