Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HGENETIC
    still a novice
    • Jul 2010
    • 34

    #1

    GATK realignment

    Hi there,
    I'm trying to produce a list of possible indels using the GATK Realigner Target Creator. I have the latest version of hg19.fasta as my reference and db135.vcf file as my known indels file. I have removed all the chr tags so my chromosomes are intergers (1 - 2 - 3...) but for some reason my reference fatsa file after being indexed is sorted 1 2 3 4 5 6 7 X 8 9 10 11 12 13 14 15 16 17 18 20 Y 19 22 21 M. I cant find any way of getting GATK to run with the data in this format and I have no idea how to change the file, using 'sort' doesn't work?

    Any help would be much appreciated - Thanks H
  • shawpa
    Member
    • Aug 2011
    • 73

    #2
    I don't know the answer to your question but I am interested in how you renamed your contigs. Right now I have a ref with chr1, chr2 etc and the dbSNP file is 1,2 etc. I am also a novice so help would be appreciated.

    Comment

    • HGENETIC
      still a novice
      • Jul 2010
      • 34

      #3
      Originally posted by shawpa View Post
      I don't know the answer to your question but I am interested in how you renamed your contigs. Right now I have a ref with chr1, chr2 etc and the dbSNP file is 1,2 etc. I am also a novice so help would be appreciated.
      I just used the UNIX command:

      $ sed "s/chr//g" file_to.change > new.file

      try that it worked for me.

      Comment

      • Heisman
        Senior Member
        • Dec 2010
        • 534

        #4
        Why don't you just change the name back to having the "chr"?

        Comment

        • HGENETIC
          still a novice
          • Jul 2010
          • 34

          #5
          Originally posted by Heisman View Post
          Why don't you just change the name back to having the "chr"?
          I'm relatively new to UNIX and so for me the easiest way to overcome the problem was to make everything into an interger, how would you convert chromosomal intergers in a .vcf or .fasta file back into the chr1 format?

          Comment

          • shawpa
            Member
            • Aug 2011
            • 73

            #6
            Well I don't know how to get it to work either way. Working on Countcovariates step and I did what HGENETIC suggests (thanks by the way) and I stopped having the issue with my known sites file and reference. Now it is giving error because my bam input still has chr 1 chr2 etc. Tried the "fix" from above and it didn't seem to work on the bam file.

            Comment

            • Heisman
              Senior Member
              • Dec 2010
              • 534

              #7
              Wait, I'm being dumb. Why did you remove the "chr" tags in the first place?

              Anyways, if you wanted to go back, your headers in the fasta file are like ">1" and ">2", and nothing else is, correct? Then you can type sed 's/>/>chr/' input_file > output_file

              Comment

              • Heisman
                Senior Member
                • Dec 2010
                • 534

                #8
                Originally posted by shawpa View Post
                Well I don't know how to get it to work either way. Working on Countcovariates step and I did what HGENETIC suggests (thanks by the way) and I stopped having the issue with my known sites file and reference. Now it is giving error because my bam input still has chr 1 chr2 etc. Tried the "fix" from above and it didn't seem to work on the bam file.
                Yeah, bam files are compressed so that wouldn't work.

                There is no need to rename your reference sequence for this purpose.

                Comment

                • shawpa
                  Member
                  • Aug 2011
                  • 73

                  #9
                  I removed the chr from the file because GATK gave me an error saying "known site and reference have incompatible contigs: No overlapping contigs found" So I took out the chr from my reference file to match the other. Now I run it and it says "Input files reads and reference have incompatible contigs: No overlapping contigs found." I think it is talking about my bam file and since I aligned my bam file with a reference that still had chr in it I am having an issue. Atleast I think this is what the error meant.

                  Comment

                  • Heisman
                    Senior Member
                    • Dec 2010
                    • 534

                    #10
                    That makes sens. I guess my question is, why don't you have "chr" in every file?

                    Comment

                    • HGENETIC
                      still a novice
                      • Jul 2010
                      • 34

                      #11
                      Originally posted by Heisman View Post
                      Wait, I'm being dumb. Why did you remove the "chr" tags in the first place?

                      Anyways, if you wanted to go back, your headers in the fasta file are like ">1" and ">2", and nothing else is, correct? Then you can type sed 's/>/>chr/' input_file > output_file
                      Thanks for that I think that would work nicely, the reason I removed the chr tags was because i was trying to use the dbSNP135 known variant file which only had intergers whereas my fasta file had the chr tags - I think? To make things easier I'm just going to download and use the data from the GATK bundle as that should all be compatible.

                      Comment

                      • Heisman
                        Senior Member
                        • Dec 2010
                        • 534

                        #12
                        Yes, just use the stuff in their data bundle. There are a lot of errors in dbSNP 135 anyway. I emailed the NCBI about this awhile ago and to my knowledge they are still working on it.

                        Comment

                        • HGENETIC
                          still a novice
                          • Jul 2010
                          • 34

                          #13
                          Originally posted by Heisman View Post
                          Yes, just use the stuff in their data bundle. There are a lot of errors in dbSNP 135 anyway. I emailed the NCBI about this awhile ago and to my knowledge they are still working on it.
                          Out of curiosity do you know the difference between the data in the GATK bundle for b37 and hg19, all the file names are the same except for this?

                          Comment

                          • shawpa
                            Member
                            • Aug 2011
                            • 73

                            #14
                            Originally posted by HGENETIC View Post
                            Out of curiosity do you know the difference between the data in the GATK bundle for b37 and hg19, all the file names are the same except for this?
                            I am curious about this too. If I did alignment using hg19 but now I switch to b37 for the countcovariates step will everything be screwed up?

                            Comment

                            • Heisman
                              Senior Member
                              • Dec 2010
                              • 534

                              #15
                              This is one of those things I tend to ignore although I shouldn't. I think the vast majority of it is the same, but I could be completely wrong.

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                                by SEQadmin2



                                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                                ...
                                07-31-2026, 11:01 AM
                              • SEQadmin2
                                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                                by SEQadmin2


                                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                                The systematic characterization of the human proteome has
                                ...
                                07-20-2026, 11:48 AM
                              • SEQadmin2
                                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by SEQadmin2



                                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                                ...
                                07-09-2026, 11:10 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 07-31-2026, 02:55 AM
                              0 responses
                              15 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-24-2026, 12:17 PM
                              0 responses
                              15 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-23-2026, 11:41 AM
                              0 responses
                              13 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-20-2026, 11:10 AM
                              0 responses
                              24 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...