circRNA数据库的建立

 
  • circRNA数据库的建立
wget http://circbase.org/download/human_hg19_circRNAs_putative_spliced_sequence.fa.gz
gunzip human_hg19_circRNAs_putative_spliced_sequence.fa.gz
wget http://circbase.org/download/mouse_mm9_circRNAs_putative_spliced_sequence.fa.gz
gunzip mouse_mm9_circRNAs_putative_spliced_sequence.fa.gz
wget http://circbase.org/download/mmu_mm9_circRNA.txt
wget http://circbase.org/download/hsa_hg19_circRNA.txt
perl extract_circBase_seq.pl mouse_mm9_circRNAs_putative_spliced_sequence.fa mmu_mm9_circRNA.txt mmu_mm9_circRNA.fa
  • 这个脚本是为了从可能的circRNA序列里面提取已知的circRNA序列
  • 下载坐标转换工具
wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver
wget https://hgdownload-test.gi.ucsc.edu/goldenPath/hg19/liftOver/hg19ToHg38.over.chain.gz
gunzip hg19ToHg38.over.chain.gz
wget https://hgdownload-test.gi.ucsc.edu/goldenPath/mm9/liftOver/mm9ToMm10.over.chain.gz
gunzip mm9ToMm10.over.chain.gz
cut -f1,2,3 mmu_mm9_circRNA.txt >mmu_mm9_circRNA_pos.txt
les mmu_mm9_circRNA.txt |perl -F"\t" -lane 'print join("\t",@F[3..12])' >mmu_mm9_circRNA.info.txt
#http://genome.ucsc.edu/cgi-bin/hgLiftOver trans mmu_mm9_circRNA_pos.txt to mmu_mm10_circRNA_pos.txt
#使用网页版的转换,由于只提供了位置信息,不知道属于那一条链,会有一些bug
paste mmu_mm10_circRNA_pos.txt mmu_mm9_circRNA.info.txt >mmu_mm10_circRNA.txt


#use liftOver
les mmu_mm9_circRNA.txt|sed '1d'|awk '{print $1"\t"$2"\t"$3"\t"$5"\t"0"\t"$4"\t"$2"\t"$3"\t255,0,0"}' >mmu_mm9_circRNA.pre2mm10.id.txt
./liftOver mmu_mm9_circRNA.pre2mm10.id.txt mm9ToMm10.over.chain mmu_mm10_circRNA.bed unmap
perl -e '$cir=shift;$bed=shift;open IN,$cir;while(<IN>){chomp;if(/^#/){print"$_\n";}else{@a=(split/\t/,$_);$info=join("\t",@a[5..12]);$hash{$a[4]}=$info;}};close IN;open IN2,$bed;while(<IN2>){chomp;@b=(split/\t/,$_);if(exists $hash{$b[3]}){print qq{$b[0]\t$b[1]\t$b[2]\t$b[5]\t$b[3]\t$hash{$b[3]}\n}}};close IN2;' mmu_mm9_circRNA.txt mmu_mm10_circRNA.bed >mmu_mm10_circRNA2.txt



转载于:https://www.cnblogs.com/raisok/p/10836402.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值