『三代测序』三代转录组

2019-08-20 【三代测序】有参转录组注释评估软件 Mat

2019-08-20  本文已影响0人  老_Z

matchAnnot iso-seq注释软件

https://github.com/TomSkelly/MatchAnnot

MatchAnnot is a python script which accepts a SAM file of IsoSeq transcripts aligned to a genomic reference and matches them to an annotation database in GTF format.
The aligner used must be splice-aware. MatchAnnot has been developed using the STAR aligner (http://code.google.com/p/rna-star).

安装

到github上下载zip文件,解压或者运行以下
unzip MatchAnnot-master.zip
进文件夹找相应py文件运行即可。
其中matchAnnot.py and clusterView.py可以命令行直接运行,前面加路径,或者简单些,放到path里
还是要注意基因组和注释是否匹配,一定要匹配
如果输入SAM文件,一定要sort过的

运行

很简单

Usage: matchAnnot.py [options] <SAM_file> ...

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --gtf=GTF             annotations file, in format specified by --format
  --format=FORMAT       annotations in alternate gtf format (def: standard)
  --clusters=CLUSTERS   cluster_report.csv file name (optional)
  --vars                print variants for each cluster (def: no)
  --outpickle=OUTPICKLE
                        matches in pickle format (optional)

输入命令行
matchAnnot.py --gtf gencode.v19.annotation.gtf myData.sam > annotations.out

input 文件需求如下

MatchAnnot expects the following inputs:

    --gtf          Annotation file, in format as described by --format option (Mandatory).
    --format       Format of annotation file: 'standard', 'alt' or 'pickle' (default: standard).
    --clusters     cluster_report.csv as produced by IsoSeq (Optional).
    (pipe or arg)  SAM file of IsoSeq transcripts aligned to genomic reference (Mandatory).

输出文件格式如下

The output of the gencode_isoseq.pl script contains several types of line:

isoform:     A mapped isoform, output of IsoSeq. Line shows isoform name,
             and start and end genomic coordinates of alignment.

cigar:       The cigar string from the SAM file entry for the isoform.   从SAM读取

cl:          *A list of the reads-of-insert which were clustered to create the
             isoform*. This information is printed only if a cluster report file
             is supplied via the --clusters parameter. Each line lists one or 
         more reads from a single SMRTcell, labelled as either full-length
             or non-FL. The mapping from SMRTcell number to full SMRTcell name
         is in the summary at the end of the output.

polyA:   A list of the positions where polyadenylation motifs were found 
             near the 3' end of the isoform.    可统计polyA信号出现位置、motif等

gene:   A gene in the annotation file whose position overlaps the
             aligned isoform. Line shows gene name, its start and end
             coordinates, and the differences between those and the
             isoform start and end.
***
tr:          An annotated transcript of the gene under consideration. Line
             shows transcript name, a score, and the exon-to-exon
             mapping. Each [] grouping in the exon mapping is
             a list of transcript exons which match the isoform exons
             (see example below). Scores are as follows:

             5: IsoSeq exons match annotation exons one-for-one. Sizes agree
                except for leading and trailing edges.

             4: Like 5, but leading and trailing edge sizes differ by a 
                larger amount than the score-5 transcript found for this gene.

             3: One-for-one exon match, but sizes of internal exons disagree.

             2: The best match among all score=1 transcripts.

             1: Some exons overlap, overlaps are 1-for-1 where they exist.

         0: Everyting else: isoform overlaps gene, but little or
            no exon congruance.

exon:        Details of a single exon match. Shown only for transcripts
             with score >= 3. Line shows isoform and transcript start and
             stop coordinates and the delta between them, plus the
             number of indels found in the alignment (per the cigar
             string).

result:      A one-line summary for the isoform, showing the best gene and
             trancript found, and the resulting score.

summary:     Bookkeeping information at the end.


An example of an exon mapping (exons are numbered from 0):

                                          1                         2                               3               4                     5
   isoform:        ==========    ======    ==============  ===         =======
   transcript      =====        =========    ====    =========  =====    ========
                                 1                       2                      3                 4                    5                6

   maps as follows:

   [1] [2] [3,4] [4] [6]


   An ideal mapping is one-for-one:

   [1] [2] [3] [4] [5]


   To make it *really* ideal, the exon coordinates should be equal as well (or nearly so).

貌似比较重要的注释分级参数,解读。吐槽下某公司的翻译,对于score1的翻译是
“转录本与注释到的已知转录本外显子一一对应,但是仅有部分外显子重叠; ”
一直没弄明白咋回事,看原文才清楚了,基本拧了啊

https://github.com/TomSkelly/MatchAnnot/wiki/How-to-Interpret-matchAnnot-Output

tr:          An annotated transcript of the gene under consideration. Line shows transcript name, a score, and the exon-to-exon mapping. Each [] grouping in the exon mapping is a list of transcript exons which match the isoform exons (see example below). Scores are as follows:

             5: IsoSeq exons match annotation exons one-for-one. Sizes agree except for leading and trailing edges.
                      PB转录本与注释到的已知转录本外显子完全一一对应,仅在转录本起始和终止区域的末端有差别; 
             4: Like 5, but leading and trailing edge sizes differ by a larger amount than the score-5 transcript found for this gene.
                      PB转录本与注释到的已知转录本外显子完全一一对应,类似类型5,不过在转录本起始和终止区域的末端差异较大;  
             3: One-for-one exon match, but sizes of internal exons disagree.
                      转录本与注释到的已知转录本外显子一一对应(结构一致?),但是中间外显子大小会有差别;
             2: The best match among all score=1 transcripts.
                      在所有的 score=1的转录本中最匹配的转录本?(比较费解) 
             1: Some exons overlap, overlaps are 1-for-1 where they exist.
                     PB transcripts仅匹配到部分外显子,但可以与已知转录本外显子一一对应。
         0: Everyting else: isoform overlaps gene, but little or no exon congruance.
                     转录本在基因区间内,但是与已知转录本的外显子基本没有重叠。 


都没有说某个分数一定要1 Vs 1对应外显子, 看结果吧

参考资料
https://github.com/TomSkelly/MatchAnnot/wiki/How-to-Run-matchAnnot
https://github.com/TomSkelly/MatchAnnot/wiki/How-to-Interpret-matchAnnot-Output
https://github.com/TomSkelly/MatchAnnot/wiki

上一篇下一篇

猜你喜欢

热点阅读