Seqanswers Leaderboard Ad

Collapse

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
        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
      12 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