Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • the "chr" in the chromosome name

    Hi,
    I have been given a few exome datasets (already mapped and I don't have the fastq files). The problem is that when these were mapped, they used a reference annotation that did not have the "chr" in with the chromosome ID. All of my other exomes that I have do have this annotation. As you can image, this is being a little problamatic when I am trying to do the analysis with all of the samples at the same time. Is there a simple way to add the "chr" to these samples without having to do all of the remapping?
    Thanks

  • #2
    You can use samtools reheader. Just samtools view -H file.bam > header.sam, then edit that to include the "chr" (don't change the ordering, though!). You can then use that for the reheader command. This assumes, of course, that this is the only difference between the genomes.

    Comment


    • #3
      Thanks,
      I thought that samtools reheader only changes the actual header info, but what about in all of the individual alignments? I do know that the same genome build was used for everything so that shouldn't be too much of a problem.

      Comment


      • #4
        In a BAM file, the actual chromosome name is only stored in the header (each read has an associated index number that is used by samtools or other programs to get the actual name of the chromosome/contig).

        If you have a SAM file then this won't work, you'll have to write a little script in python/perl/whatever.

        Comment


        • #5
          That makes sense. I never realized it worked that way.
          Thanks

          Comment


          • #6
            chromosome extraction without sorting

            I need suggestion to extract the chromosome or chromosome region (e.g. chr1: 100,000,000-200,000,000) without sorting bam file. Any idea related with this would be appreciated.

            Comment


            • #7
              Originally posted by bioinfo816 View Post
              I need suggestion to extract the chromosome or chromosome region (e.g. chr1: 100,000,000-200,000,000) without sorting bam file. Any idea related with this would be appreciated.
              You should start a new thread.

              Having said that, a small python/perl/whatever script could do this (you could even put together a shell script, if you're so inclined). Just filter the output of samtools view through it.
              Last edited by dpryan; 09-24-2013, 05:27 AM.

              Comment


              • #8
                Originally posted by bioinfo816 View Post
                I need suggestion to extract the chromosome or chromosome region (e.g. chr1: 100,000,000-200,000,000) without sorting bam file. Any idea related with this would be appreciated.
                A more lazy alternative as suggested by swbarnes2 in this thread: http://seqanswers.com/forums/showthread.php?t=14702

                Comment

                Latest Articles

                Collapse

                • seqadmin
                  Genetic Variation in Immunogenetics and Antibody Diversity
                  by seqadmin



                  The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...
                  11-06-2024, 07:24 PM
                • seqadmin
                  Choosing Between NGS and qPCR
                  by seqadmin



                  Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...
                  10-18-2024, 07:11 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, Today, 11:09 AM
                0 responses
                22 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, Today, 06:13 AM
                0 responses
                20 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 11-01-2024, 06:09 AM
                0 responses
                30 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 10-30-2024, 05:31 AM
                0 responses
                21 views
                0 likes
                Last Post seqadmin  
                Working...
                X