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
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              Yesterday, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Today, 10:52 AM
            0 responses
            8 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 05:39 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            15 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Working...