Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seq_GA
    Senior Member
    • Feb 2009
    • 124

    #1

    convert hg18 mapping into hg19

    Hi,

    I have set of (huge) data being mapped against to hg18 build. Now I want the mapping to be done against hg19.
    Do I have to remap the data against hg19 build? Or do I convert the coordinates using UCSC liftover? Please let me know the details. Thx.
    Last edited by seq_GA; 07-29-2010, 12:04 AM.
  • ffinkernagel
    Senior Member
    • Oct 2009
    • 110

    #2
    It depends. The easy way is of course using UCSC liftover (you'll need the .chain file and liftOver to run it locally on a linux system), but you might learn something from remapping - perhaps some data that had not been mappable previously now is.

    Here's a python function that takes a list like [(chr, start, stop)], runs liftover using a given chain file and get's you another list with the new coordinates.

    Code:
        def do_liftover(listOfChromosomeIntervals, chain_file):
            """perform a lift over. Error messages are silently swallowed!"""
            tmp_input = tempfile.NamedTemporaryFile()
            tmp_output = tempfile.NamedTemporaryFile()
            tmp_error = tempfile.NamedTemporaryFile()
            max_len = 0
            for row in listOfChromosomeIntervals:
                tmp_input.write(" ".join(str(x) for x in row))
                tmp_input.write("\n")
                max_len = max(len(row), max_len)
            tmp_input.write("\n")
            tmp_input.flush()#it's magic ;)
            cmd = [os.path.join(os.path.dirname(__file__), 'chains','liftOver'), tmp_input.name, chain_file, 
                   tmp_output.name, tmp_error.name]
            p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr = subprocess.PIPE)
            p.communicate()
            tmp_output.seek(0, os.SEEK_SET)
            res = []
            for row in tmp_output:
                row = row.strip().split("\t")
                row[1] = int(row[1])
                row[2] = int(row[2])
                res.append(tuple(row))
            tmp_error.seek(0, os.SEEK_SET)
            d = tmp_error.read()
            tmp_input.close()
            tmp_output.close()
            tmp_error.close()
            return res

    Comment

    • seq_GA
      Senior Member
      • Feb 2009
      • 124

      #3
      Ok ffinkernagel. Thx for your response.

      Comment

      • lmf_bill
        Member
        • Jul 2008
        • 36

        #4
        I think the best way is to remap against hg19. It will take the similar time when you use liftover to transfer hg18 to hg19. Good lucky!

        Comment

        • simonandrews
          Simon Andrews
          • May 2009
          • 870

          #5
          Originally posted by lmf_bill View Post
          I think the best way is to remap against hg19. It will take the similar time when you use liftover to transfer hg18 to hg19. Good lucky!
          That's not been our experience. It may be worth remapping against the newer assembly to get the most from your data, but running liftOver is a much quicker option. LiftOver is ridiculously fast!

          Comment

          • lmf_bill
            Member
            • Jul 2008
            • 36

            #6
            yes, If you only want to get the location transfer, liftover is faster. In the mean time, many novel cases need to be consider, just as you said you can get more info from the newer assembly. Besides, some additional assemble regions will also make it difficult. So, the easy way is remapping. By the way, how huge are your data? several terabyte?

            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, Yesterday, 07:41 AM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-03-2026, 10:13 AM
            0 responses
            25 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-31-2026, 02:55 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            25 views
            0 reactions
            Last Post SEQadmin2  
            Working...