省心省事的植物miRNA分析软件miR-PREFeR,值得拥有

最近在做某个植物小物种的miRNA分析,看过几个公司的miRNA分析报告和文献后开始动手。大概分以下几步:
1、筛选出目标miRNA
(a)根据长度筛选clean data(植物18~30nt)
(b)比对到参考基因组上,去除未匹配序列
(c)比对到Rfam中的ncRNA,去除snRNA,snoRNA,rRNA,tRNA等
(d)去除重复序列
2、保守miRNA的鉴定(与mirbase数据库比对)
3、新miRNA的预测
4、差异表达(和mRNA流程类似)
5、靶基因的预测(植物用psRNATarget在线分析)

这其中第4、5步我比较熟悉,前三步稍微陌生一点。能找到软件整合流程一步跑下来最好,不行的话只能分步尝试(第一步如果参考基因组注释比较完整,还可以将sRNA比对到mRNA的外显子和内含子,找出来自mRNA降解片段的sRNA并去掉)。

还好我找到了很好用的miR-PREFeR,分享在这里~·github主页https://github.com/hangelwen/miR-PREFeR

miR-PREFeR: microRNA PREdiction From small RNAseq data

miR-PREFeR成功解决了植物miRNA分析中的几大痛点:1. 假阳性高; 2. 耗时长; 3. work only for genomes in their databases; 4. 难用 (亲身经历证明确实好用)。该软件于14年发表在Bioinformatics上并仍在改进中 http://bioinformatics.oxfordjournals.org/content/30/19/2837.abstract.

pipline

1、前期准备

安装samtools

git clone git://github.com/samtools/samtools.git

安装ViennaRNA ( 最好是1.8.5或2.1.2, 2.1.5版本)

#我装的是最新版
wget https://www.tbi.univie.ac.at/RNA/download/sourcecode/2_4_x/ViennaRNA-2.4.10.tar.gz 
tar zvxf ViennaRNA-2.4.10.tar.gz
cd ViennaRNA-2.4.10
./configure --prefix="/user/tools/ViennaRNA/" --without-perl
make
make install

2、安装

git clone https://github.com/hangelwen/miR-PREFeR.git

安装很方便,可以在example里测试一下pipeline

3、输入数据处理

一共需要的输入数据有三个:
参考基因组fasta文件
small RNAseq 数据比对基因组的sam文件(bowtie)
gff文件(可选,记录需要被屏蔽掉的信息,比如重复序列)
其中在比对前,需要把fasta处理一下,samplename.txt里面记录取样信息:

$ vi samplename.txt
root #SAMPLE1.fasta
flower #SAMPLE2.fasta
salt #SAMPLE3.fasta
$ python scripts/process-reads-fasta.py samplename.txt SAMPLE1.fasta SAMPLE2.fasta SAMPLE3.fasta

得到 SAMPLE1.fasta.processed文件,>开头包含sample name、sequential number和depth信息

$ less SAMPLE1.fasta.processed
>root_r0_x1  #sample name_sequential number_depth
ACTACTGCAAGGGCTGGCTCAACCCGC
>root_r1_x5
TGGTTGCTGTCGCTGGTCGCTGGT

4、bowtie比对

python bowtie-align-reads.py -f -r TAIR10.fas -t bowtie-index/ -p 8 SAMPLE1.fasta.processed SAMPLE2.fasta.processed SAMPLE3.fasta.processed

生成pdep.chr1.sam,pind.chr1.sam,cold.chr1.sam

5、准备configuration文件

每个参数都有详细说明

$more config.example
#example configuration file for the miR-PREFeR pipeline.
#lines start with '#' are comments

#miR-PREFeR path, please change to your path to the script folder. 
#Absolute path perfered.
PIPELINE_PATH = /sRNA/miR-PREFeR/

#Genomic sequence file in fasta format.  Absolute path perfered. If a path relative if used, it's relatvie to the working directory where you execute the pipeline.
FASTA_FILE =  ./TAIR10.chr1.fa

#Small RNA read alignment file in SAM format. The SAM file should contain the SAM header. If N samples are used, then N file names are listed here, separated by comma. please note that before doing alignment, process the reads fasta files using the provided script 'process-reads-fasta.py' to collapse and rename the reads. Absolute path perfered. If a path relative if used, it's relatvie to the working directory where you execute the pipeline.
ALIGNMENT_FILE = ./cold.chr1.sam, ./pdep.chr1.sam, ./pind.chr1.sam

#GFF file which list all existing annotations on genomic sequences FASTA_FILE. If no GFF file is availble, comment this line out or leave the value blank. Absolute path perfered. If a path relative if used, it's relatvie to the working directory where you execute the pipeline.
#CAUTION: please only list the CDS regions, not the entire miRNA region, because miRNAs could be in introns. This option is mutual exclusive with 'GFF_FILE_INCLUDE' option. If you have a GFF file that contains regions in which you want to predict whether they include miRNAs, please use the 'GFF_FILE_INCLUDE' option instead.
GFF_FILE_EXCLUDE = ./TAIR10.chr1.CDS.gff

# Only predict miRNAs from the regions given in the GFF file. This option is mutual exclusive with 'GFF_FILE_EXCLUDE'. Thus, only one of them can be used.
#GFF_FILE_INCLUDE = ./TAIR10.chr1.candidate.gff

#The max length of a miRNA precursor. The range is from 60 to 3000. The default is 300. 
PRECURSOR_LEN = 300

#The first step of the pipeline is to identify candidate regions of the miRNA loci. If READS_DEPTH_CUTOFF = N, then bases that the mapped depth is smaller than N is not considered. The value should >=2.
READS_DEPTH_CUTOFF = 20

#Number of processes for this computation. Using more processes speeds up the computation, especially if you have a multi-core processor. If you have N cores avalible for the  computation, it's better to set this value in the range of N to 2*N.
#If comment out or leave blank, 1 is used. 
NUM_OF_CORE = 4

#Outputfolder. If not specified, use the current working directory. Please make sure that you have enough disk space for the folder, otherwise the pipeline may fail.
OUTFOLDER = example-result

#Absolute path of the folder that contains intermidate/temperary files during the run of the pipeline. If not specified, miR-PREFeR uses a folder with suffix "_tmp" under OUTFOLDER by default. Please make sure that you have enough disk space for the folder, otherwise the pipeline may fail.
TMPFOLDER = /tmp/exmaple

#prefix for naming the output files. For portability, please DO NOT contain any spaces and special characters. The prefered includes 'A-Z', 'a-z', '0-9', and underscore '_'.
NAME_PREFIX = TAIR10-example

#Maximum gap length between two contigs to form a candidate region. 
MAX_GAP = 100

# Minimum and maximum length of the mature sequence. Default values are 18 and 24.
MIN_MATURE_LEN = 18
MAX_MATURE_LEN = 24

# If this is 'Y', then the criteria that requries the star sequence must be expressed  is loosed if the expression pattern is good enough (.e.g. the majority of the reads  mapped to the region are mapped to the mature position.). There are lots of miRNAs  which do not have star sequence expression. The default value is Y.
ALLOW_NO_STAR_EXPRESSION = Y

# In most cases, the mature star duplex has 2nt 3' overhangs. If this is set to 'Y', then 3nt overhangs are allowed. Default is 'N'.
ALLOW_3NT_OVERHANG = N

#The pipeline makes a checkpoint after each major step. In addition, because the folding stage is the most time consuming stage, it makes a checkpiont for each folding process after folding every CHECKPOINT_SIZE sequences. If the pipeline is killed for some reason in the middle of folding, it can be restarted using
#'recover' command from where it was stopped. The default value is 3000. On my system this means making a checkpoint about every 5 minutes.
CHECKPOINT_SIZE = 3000

6、跑流程

python miR_PREFeR.py -L -k pipeline configfile

pipeline里包含prepare, candidate, fold, predict四步。如果某步中断了,还可以续跑

python miR_PREFeR.py -L recover configfile

7、输出结果

result文件夹里包含如下文件:
主要信息都在html里可视化了

html里看更直观,有二级结构序列,各个样品比对信息统计
TAIR10-example_miRNA.detail示例

吐槽几个大坑:

mirdeep2整合了bowtie、ViennaRNA、randfold、PDF-API2等多个软件,动物miRNA分析用的多,有专门为植物开发的mirdeep-P,但是目前下载不了。而且mirdeep2的安装很死板,路径受限各种报错不好装,本来都装好跑通了后来重新跑的时候就又要重新装一遍,不推荐。

新miRNA预测软件mireap核心脚本使perl写的,里面的模块FFW1现在找不到了,所以用不了

参考:

一个简易的miRNA分析流程

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,937评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,503评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,712评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,668评论 1 276
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,677评论 5 366
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,601评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,975评论 3 396
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,637评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,881评论 1 298
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,621评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,710评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,387评论 4 319
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,971评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,947评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,189评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 44,805评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,449评论 2 342

推荐阅读更多精彩内容