如何准备 RseQC 软件的 bed 输入文件(gtf 转 bed)
答:可以使用UCSC的工具包 gtfToGenePred
和 genePredToBed
。
具体转换示例:
# 安装两个工具包(只用第一次时运行)
conda install bioconda::ucsc-genepredtobed
conda install bioconda::ucsc-gtftogenepred
# 进行转换
gtfToGenePred housekeeping.gtf housekeeping.genepred
genePredToBed housekeeping.genepred housekeeping.bed
参考链接:
- https://www.biostars.org/p/299573/
- https://gist.github.com/tomsing1/6230f2f5fb3c4bf0477276c35f97fd2d
- https://bioinformatics.stackexchange.com/questions/7094/making-a-bed-file-for-rseqc