<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; 坐标转换</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/%e5%9d%90%e6%a0%87%e8%bd%ac%e6%8d%a2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>用crossmap代替liftover做基因组坐标转换</title>
		<link>http://www.bio-info-trainee.com/1413.html</link>
		<comments>http://www.bio-info-trainee.com/1413.html#comments</comments>
		<pubDate>Sun, 28 Feb 2016 02:25:08 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础软件]]></category>
		<category><![CDATA[CrossMap]]></category>
		<category><![CDATA[python2.7]]></category>
		<category><![CDATA[坐标转换]]></category>
		<category><![CDATA[基因组]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1413</guid>
		<description><![CDATA[其实国际三大主流生物信息学数据库运营单位都出了自己的基因组坐标转换，它们分别是  &#8230; <a href="http://www.bio-info-trainee.com/1413.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>其实国际三大主流生物信息学数据库运营单位都出了自己的基因组坐标转换，它们分别是<a href="https://www.biostars.org/p/65558/"><span class="Apple-converted-space"> </span>(UCSC liftOver, NCBI Remap, Ensembl API)</a></div>
<div>
<div>Ensembl's Assembly Converter.是基于crossmap的，我觉得挺好用的，就介绍给大家！！！</div>
<p>This online tool currently uses <a href="http://crossmap.sourceforge.net/">CrossMap</a>, which supports a limited number of formats (see our online documentation for <a href="http://useast.ensembl.org/info/website/upload/index.html#formats">details of the individual data formats</a> listed below). CrossMap also discards metadata in files, so track definitions, etc, will be lost on conversion.</p>
<p><b>Important note</b>: CrossMap converts WIG files to BedGraph internally for efficiency, and also outputs them in BedGraph format.</p>
</div>
<div>但是不知道为什么UCSC的liftover最出名，我也写过它的教程，（<a href="http://www.bio-info-trainee.com/?p=990">http://www.bio-info-trainee.com/?p=990</a>）</div>
<p><span id="more-1413"></span></p>
<div>还算好用，比较真正基因组坐标转换的需求很少，但是略有一些限制，所以我用起来了Ensembl的crossmap软件。</div>
<div>该软件说明书就在主页，很简单的：<a href="http://crossmap.sourceforge.net/" target="_blank">http://crossmap.sourceforge.net/</a></div>
<div></div>
<div><b>一、程序安装</b></div>
<div>
<div><a href="http://iweb.dl.sourceforge.net/project/crossmap/test.hg19.zip" target="_blank">http://iweb.dl.sourceforge.net/project/crossmap/test.hg19.zip<br />
</a></div>
<div><a href="https://sourceforge.net/projects/crossmap/files/CrossMap-0.2.2.tar.gz/download" target="_blank">https://sourceforge.net/projects/crossmap/files/CrossMap-0.2.2.tar.gz/</a></div>
<p>直接wget到linux系统即可，解压之后就能看到该程序，是基于Python的，所以安装方式跟Python模块一样！</p>
</div>
<div>
<div><a href="http://www.bio-info-trainee.com/?p=581">http://www.bio-info-trainee.com/?p=581</a></div>
</div>
<div>软件官网也有安装说明书</div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/02/2.png"><img class="alignnone size-full wp-image-1414" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/02/2.png" alt="2" width="739" height="309" /></a></div>
<div>我的安装命令是：</div>
<div>
<div>python setup.py  install --user</div>
<div>安装之后添加到环境变量</div>
<div># setup PYTHONPATH. Skip this step if CrossMap was installed to default location.</div>
<div>$ export PYTHONPATH=/home/jmzeng/.local/lib/python2.7/site-packages:$PYTHONPATH.</div>
</div>
<div>
<div><b><span style="color: #ff0000;">二、输入数据准备</span></b></div>
<p>该软件提供了测试数据，也提供了基因组转换的模板chain格式文件：</p>
</div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/02/clipboard.png"><img class="alignnone size-full wp-image-1415" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/02/clipboard.png" alt="clipboard" width="524" height="494" /></a></div>
<div>
<div>它要求的待转换文件很广泛：</div>
<div>
<ol>
<li><a href="http://samtools.sourceforge.net/SAMv1.pdf">BAM</a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a href="http://samtools.sourceforge.net/SAMv1.pdf/">SAM</a><span class="Apple-converted-space"> </span>format.</li>
<li><a href="http://genome.ucsc.edu/FAQ/FAQformat.html#format1">BED</a><span class="Apple-converted-space"> </span>or BED-like format. BED file must has at least 3 columns (‘chrom’, ‘start’, ‘end’).</li>
<li><a href="http://genome.ucsc.edu/goldenPath/help/wiggle.html">Wiggle</a><span class="Apple-converted-space"> </span>format. “variableStep”, “fixedStep” and “bedGraph” wiggle line are supported.</li>
<li><a href="http://genome.ucsc.edu/goldenPath/help/bigWig.html">BigWig</a><span class="Apple-converted-space"> </span>format.</li>
<li><a href="http://genome.ucsc.edu/FAQ/FAQformat.html#format3">GFF</a><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><a href="http://genome.ucsc.edu/FAQ/FAQformat.html#format4">GTF</a><span class="Apple-converted-space"> </span>format.</li>
<li><a href="http://vcftools.sourceforge.net/index.html">VCF</a><span class="Apple-converted-space"> </span>format.</li>
</ol>
</div>
</div>
<div>
<div><b><span style="color: #ff0000;">三、运行程序</span></b></div>
<p>找到你的crossmap安装目录，根据你的安装命令来的！</p>
</div>
<div>我的程序在/home/jmzeng/.local/bin 里面，直接可以使用</div>
<div>根据下面的例子，自己修改就可以了，程序用全路径调用，然后写明是什么文件格式，然后列出chain文件的地址，然后input和output即可</div>
<div>
<p>Example (run CrossMap with <strong>no</strong> <em>output_file</em> specified):</p>
<div class="highlight-python">
<pre>$ python <strong>CrossMap.py</strong> bed hg18ToHg19.over.chain.gz test.hg18.bed3</pre>
</div>
<p>Conversion results were printed to screen directly (column1-3 are hg18 based, column5-7 are hg19 based):</p>
<div class="highlight-python">
<pre>chr1   142614848       142617697       -&gt;      chr1    143903503       143906352
chr1   142617697       142623312       -&gt;      chr1    143906355       143911970
chr1   142623313       142623350       -&gt;      chr1    143911971       143912008
chr1   142623351       142626523       -&gt;      chr1    143912009       143915181
chr1   142633862       142633883       -&gt;      chr1    143922520       143922541
chr1   142633884       142636152       -&gt;      chr1    143922542       143924810
chr1   142636152       142636326       -&gt;      chr1    143924813       143924987
chr1   142636339       142636391       -&gt;      chr1    143925000       143925052
chr1   142636392       142637362       -&gt;      chr1    143925052       143926022
chr1   142637373       142639738       -&gt;      chr1    143926033       143928398
chr1   142639739       142639760       -&gt;      chr1    143928399       143928420
chr1   142639761       142640145       -&gt;      chr1    143928421       143928805
chr1   142640153       142641149       -&gt;      chr1    143928813       143929809</pre>
</div>
</div>
<div></div>
<div>
<div><b><span style="color: #ff0000;">四、输出数据解读</span></b></div>
<p>输出数据没什么好解读的了，进去的是什么数据，出来的就是什么数据，只是把你的坐标进行了转换</p>
</div>
<div> 有个比较重要的事情，这个程序需要python2.7 其它版本不友好！</div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/02/12.png"><img class="alignnone size-full wp-image-2291" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/02/12.png" alt="1" width="671" height="383" /></a></div>
<div></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1413.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
