根据FPKM将基因分组
来源:互联网 发布:985贴吧 知乎 编辑:程序博客网 时间:2024/05/23 11:45
基因表达量FPKM计算之后,可以根据其值分组。
输入格式:
Geneid UN003324 UN004629 UN011750 UN013498 UN016818 UN018363 UN018537 UN019619 UN019632 UN026711 UN054416 UN056756 UN058273root_Z10_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 root_Z13_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 root_Z39_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 stem_Z30_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 stem_Z32_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 stem_Z65_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 leaf_Z10_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 leaf_Z23_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 leaf_Z71_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 spike_Z32_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 spike_Z39_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 spike_Z65_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 new_carpel 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 new_stamen 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 latet_lepto_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 diplo_dia_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 zygo_pachy_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 metaphaseI_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 grain_Z71_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 grain_Z75_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 grain_Z85_mean 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
python代码:
#!/usr/bin/env python# -*- coding: utf-8 -*-with open('rna_seq.txt', 'r') as f: print 'Tissue''\t''no''\t''low''\t''medium''\t''high' for line in f: if 'Geneid' not in line: line = line.strip().split() no = [] low = [] medium = [] high = [] for i in line[1:]: if float(i) < 0.02: no.append(i) if 0.02 <= float(i) < 20: low.append(i) if 20 <= float(i) < 50: medium.append(i) if float(i) >= 50: high.append(i) print '%s\t%d\t%d\t%d\t%d' % (line[0], len(no), len(low), len(medium), len(high))
0 0
- 根据FPKM将基因分组
- gflod求基因表达值 FPKM
- 根据IP将列表分组
- 【基因表达数据处理】从RAW测序数据,到FPKM的过程
- 根据记录分组、将数据动态纵向显示
- 用jq将html元素根据属性中的数据分组
- MySql根据条件分组,然后将某些字段进行拼接
- FLEX的集合分组(根据某个属性的值将集合分组)
- 根据字符串分组
- sql根据年月分组
- 基因
- 分组计算[根据日期][C#]
- orcale 根据截取字段,分组
- Mysql 根据日期分组查询
- ef根据年月进行分组
- List根据指定key分组
- Graphviz 将顶点分组
- SQL根据某个字段分组查询:
- vc小知识2
- c++基础面试题总结
- 微信小程序对WEB前端程序员有何影响
- 关于UIButton不改变title的问题(enable与userInteractionEnabled)
- 带蓝色的紫罗兰色——五色配色篇
- 根据FPKM将基因分组
- HDU 1724 Ellipse (simpson公式,求积分)
- OpenGL系列教程之十:OpenGL帧缓冲区对象(FBO)
- 容器技术当前的不足和发展方向
- 原生js解决微信在iOS上无法修改title的问题
- 解决_java.sql.SQLException: Your password has expired.
- 什么是P问题、NP问题和NPC问题
- C++ 面向对象程序设计上机练习四(变量引用)
- 【leetcode】404. Sum of Left Leaves【E】