liftover的使用/用法

本文介绍如何使用UCSC提供的liftOver工具将基因组位置从一个组装版本转换到另一个版本,包括下载所需的工具、准备输入文件、运行转换过程及处理未转换的位置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Lift genome positions

Genome positions are best represented in BED format. UCSC provides tools to convert BED file from one genome assembly to another.

Binary liftOver tool

We need liftOver binary from UCSC and hg18 to hg 19 chain file.

Provide BED format file (e.g. input.bed)

NOTE: Use the 'chr' before each chromosome name

chr1    743267  743268  rs3115860
chr1    766408  766409  rs12124819
chr1    773885  773886  rs17160939

Run liftOver:

(1) download liftOver http://hgdownload.cse.ucsc.edu/admin/exe/ 
(2) chmod +x liftOver
(3) download chain file http://hgdownload.cse.ucsc.edu/goldenpath/hg19/liftOver/ 
(4) prepare input bed file (chr start end others ...)
(5) run liftOver
./liftOver input.bed hg18ToHg19.over.chain.gz output.bed unlifted.bed

unlifted.bed file will contain all genome positions that cannot be lifted. The reason for that varies. See Various reasons that lift over could fail

 

 

REF:

http://www.zilhua.com/906.html (使用方法)

http://genome.sph.umich.edu/wiki/LiftOver  (wiki)

http://www.cnblogs.com/foreverycc/p/3170807.html (使用方法)

http://hgdownload.cse.ucsc.edu/goldenpath/hg19/liftOver/ (liftOver的chain文件)

http://hgdownload.cse.ucsc.edu/admin/exe/ (下载 liftover; http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver )

http://genome.ucsc.edu/FAQ/FAQformat.html#format1  (bed文件格式)

 

liftoff -g BS168.gff -o CY01.gff3 -a 0.8 -s 0.7 CY01.fasta BS168.fasta extracting features 2025-03-14 08:42:10,472 - INFO - Populating features 2025-03-14 08:42:10,964 - INFO - Populating features table and first-order relations: 9287 features 2025-03-14 08:42:10,964 - INFO - Updating relations 2025-03-14 08:42:10,997 - INFO - Creating relations(parent) index 2025-03-14 08:42:10,998 - INFO - Creating relations(child) index 2025-03-14 08:42:10,999 - INFO - Creating features(featuretype) index 2025-03-14 08:42:11,002 - INFO - Creating features (seqid, start, end) index 2025-03-14 08:42:11,005 - INFO - Creating features (seqid, start, end, strand) index 2025-03-14 08:42:11,008 - INFO - Running ANALYZE features Traceback (most recent call last): File "/root/miniconda3/envs/rnaseq/bin/liftoff", line 10, in <module> sys.exit(main()) File "/root/miniconda3/envs/rnaseq/lib/python3.10/site-packages/liftoff/run_liftoff.py", line 12, in main run_all_liftoff_steps(args) File "/root/miniconda3/envs/rnaseq/lib/python3.10/site-packages/liftoff/run_liftoff.py", line 24, in run_all_liftoff_steps feature_db, feature_hierarchy, ref_parent_order = liftover_types.lift_original_annotation(ref_chroms, target_chroms, File "/root/miniconda3/envs/rnaseq/lib/python3.10/site-packages/liftoff/liftover_types.py", line 15, in lift_original_annotation align_and_lift_features(ref_chroms, target_chroms, args, feature_hierarchy, liftover_type, unmapped_features, File "/root/miniconda3/envs/rnaseq/lib/python3.10/site-packages/liftoff/liftover_types.py", line 23, in align_and_lift_features aligned_segments= align_features.align_features_to_target(ref_chroms, target_chroms, args, File "/root/miniconda3/envs/rnaseq/lib/python3.10/site-packages/liftoff/align_features.py", line 16, in align_features_to_target target_fasta_dict = split_target_sequence(target_chroms, args.target, args.dir) File "/root/miniconda3/envs/rnaseq/lib/python3.10/site-packages/liftoff/align_feat
03-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值