Announcement

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

  • Samtools error: "different target sequence name"

    I'm using samtools version 0.1.16 (r963:234), bwa 0.6.1-r104 and bowtie 0.12.7 on a Linux box. When I run:

    samtools merge file1_672_all.bam file1_672_bowtie.bam file1_672_bwa.bam

    I get the following error:

    [bam_merge_core] different target sequence name: 'chr8' != 'chrX' in file 'file1_672_bwa.bam'

    Both bam files were aligned simultaneously with bwa to the same indexed hg19 fasta files, and no error messages were printed during execution.

    How can I find out what has gone wrong? Has anyone else come across this problem before? The only other thread that I came across with this error had something to do with joining chromosome-separated bam files together before trying to merge them with samtools.

    This didn't happen with a very small dataset I've run through the alignment/variant calling process in this pipeline, so I have seen the setup work previously.

    Thank you much.

  • #2
    You didn't mention that the .bam files were sorted. Do your files conform to what the documentation says they have to look like?

    Merge multiple sorted alignments. The header reference lists of all the input BAM files, and the @SQ headers of inh.sam, if any, must all refer to the same set of reference sequences. The header reference list and (unless overridden by -h) ‘@’ headers of in1.bam will be copied to out.bam, and the headers of other files will be ignored.

    Comment


    • #3
      Yes, sure. But how to do when you want to merge a .bam file generated from a male sample with another one generated from a female sample?

      Just add the ChrY line in the female header .bam file ?
      The problem is that .bam are compressed binary files... so how to do?

      See thread : http://seqanswers.com/forums/showthr...153#post126153
      Last edited by spacup; 12-02-2013, 03:14 AM.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Advanced Methods for the Detection of Infectious Disease
        by seqadmin




        The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
        ...
        11-27-2023, 01:15 PM
      • seqadmin
        Strategies for Investigating the Microbiome
        by seqadmin




        Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
        11-09-2023, 07:02 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 07:37 AM
      0 responses
      12 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 08:23 AM
      0 responses
      8 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-01-2023, 09:55 AM
      0 responses
      22 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 11-30-2023, 10:48 AM
      0 responses
      21 views
      0 likes
      Last Post seqadmin  
      Working...
      X