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
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 06:35 AM
      0 responses
      14 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      18 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-06-2024, 07:17 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Working...
      X