本文整理汇总了Python中Table.Table.paste方法的典型用法代码示例。如果您正苦于以下问题:Python Table.paste方法的具体用法?Python Table.paste怎么用?Python Table.paste使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Table.Table
的用法示例。
在下文中一共展示了Table.paste方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: len
# 需要导入模块: from Table import Table [as 别名]
# 或者: from Table.Table import paste [as 别名]
print "Genes missing classification by cuffcompare:", len(discard_cnc_tmap_gids)
print "Saving gtf files ..."
gene_class_outfile=out_dir+"/compare_1_infor.txt"
kc_gtf=out_dir+"/known_coding.gtf"
#overlap_kc_gtf=out_dir+"/overlap_coding.gtf"
kn_gtf=out_dir+"/known_lincRNA.gtf"
#overlap_kn_gtf=out_dir+"/overlap_lincRNA.gtf"
#discard_cnc_tmap_gids_gtf=out_dir+"/discarded.gtf"
undefinable_gtf=out_dir+"/undefinable.gtf"
unannotated_gtf=out_dir+"/potentially_novel.gtf"
#kc_go_outfile=out_dir+"/known_coding_gene_annotation"
#t2g_file=out_dir+"/tid_gid"
gene_class=classify(KC,overlap_KC,KN,overlap_KN,discard_cnc_tmap_gids,unannotated)
all_info=Table.paste(gene_class,[1],known_coding,[1],known_noncoding,[1],overlap_coding,[1],overlap_noncoding,[1])
all_info.col_names[2]='related_coding_gene'
all_info.col_names[3]='related_linc_gene'
all_info.col_names[4]='overlap_coding_gene'
all_info.col_names[5]='overlap_noncoding_gene'
all_info.append_col_by_func('related_ref_genes',related_gene)
all_info=all_info.get_col(1,2,'related_ref_genes')
all_info.set_colnames('input_gene_id','class','ref_gene_info')
#print "Class of genes is saved to '" +gene_class_outfile+"'"
all_info.write_to_file(gene_class_outfile)
#tid_gid.write_to_file(t2g_file)
#print "Generating known coding genes file:"
gtf.sub_gtf(gtf.get_tid(KC)).write_to_file(kc_gtf)
#print "Generating overlap coding genes file:"
#gtf.sub_gtf(gtf.get_tid(overlap_KC)).write_to_file(overlap_kc_gtf)