当前位置: 首页>>代码示例>>Python>>正文


Python PipelineLncRNA.flagExonStatus方法代码示例

本文整理汇总了Python中CGATPipelines.PipelineLncRNA.flagExonStatus方法的典型用法代码示例。如果您正苦于以下问题:Python PipelineLncRNA.flagExonStatus方法的具体用法?Python PipelineLncRNA.flagExonStatus怎么用?Python PipelineLncRNA.flagExonStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CGATPipelines.PipelineLncRNA的用法示例。


在下文中一共展示了PipelineLncRNA.flagExonStatus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: flagExonStatus

# 需要导入模块: from CGATPipelines import PipelineLncRNA [as 别名]
# 或者: from CGATPipelines.PipelineLncRNA import flagExonStatus [as 别名]
def flagExonStatus(infile, outfile):
    '''
    Adds two attributes to the gtf entry:
    exon_status_locus - specifies whether the gene model is multi- or single exon
    exon_status - specifies whether the transcript is mult- or single exon
    '''

    PipelineLncRNA.flagExonStatus(infile, outfile)
开发者ID:lesheng,项目名称:cgat,代码行数:10,代码来源:pipeline_rnaseqlncrna.py

示例2: buildRefcodingGeneSetStats

# 需要导入模块: from CGATPipelines import PipelineLncRNA [as 别名]
# 或者: from CGATPipelines.PipelineLncRNA import flagExonStatus [as 别名]
def buildRefcodingGeneSetStats(infile, outfile):
    '''
    counts:
    no. of transcripts
    no. genes
    average number of exons per transcript
    average number of exons per gene
    no. multi-exon transcripts
    no. single exon transcripts
    no. multi-exon genes
    no. single exon genes

    in the coding and lncRNA genesets
    '''

    # calculate exon status for refcoding genes. 
    tmpf = P.getTempFilename(".") + ".gz"
    PipelineLncRNA.flagExonStatus(infile, tmpf)


    outf = open(outfile, "w")
    outf.write("\t".join(["no_transcripts", 
                          "no_genes", 
                          "no_exons_per_transcript", 
                          "no_exons_per_gene",
                          "no_single_exon_transcripts", 
                          "no_multi_exon_transcripts", 
                          "no_single_exon_genes", 
                          "no_multi_exon_genes"]) + "\n")
    outf.write("\t".join(map(str, [PipelineLncRNA.CounterTranscripts(tmpf).count(), 
                                   PipelineLncRNA.CounterGenes(tmpf).count(), 
                                   PipelineLncRNA.CounterExonsPerTranscript(tmpf).count(), 
                                   PipelineLncRNA.CounterExonsPerGene(tmpf).count(), 
                                   PipelineLncRNA.CounterSingleExonTranscripts(tmpf).count(), 
                                   PipelineLncRNA.CounterMultiExonTranscripts(tmpf).count(), 
                                   PipelineLncRNA.CounterSingleExonGenes(tmpf).count(), 
                                   PipelineLncRNA.CounterMultiExonGenes(tmpf).count()])))


    os.unlink(tmpf)
    os.unlink(tmpf + ".log")
    os.unlink(P.snip(tmpf, ".gz"))
开发者ID:lesheng,项目名称:cgat,代码行数:44,代码来源:pipeline_rnaseqlncrna.py

示例3: flagExonStatus

# 需要导入模块: from CGATPipelines import PipelineLncRNA [as 别名]
# 或者: from CGATPipelines.PipelineLncRNA import flagExonStatus [as 别名]
def flagExonStatus(infile, outfile):
    """
    Adds an attribute to the gtf entry dependent on whether the lncRNA 
    is multi or single exon
    """
    PipelineLncRNA.flagExonStatus(infile, outfile)
开发者ID:nishantthakur,项目名称:cgat,代码行数:8,代码来源:pipeline_rnaseqlncrna.py


注:本文中的CGATPipelines.PipelineLncRNA.flagExonStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。