Record learning process of Python scientific computation

Basic usage of Numpy (import numpy as np)

Assume you have a file names ‘test’ containing the following lines. ———File Begins at below—————————– Name CTCF DnaseI EB A20 106.775 7.25444 2 A18 56.07 14.4547 3 A23 119.992 25.3157 9 A15 124.967 117.176 9 A27 76.4879 12.1073 11 A28 84.4517 12.9363 11 A13 162.313 48.6617 13 A24 121.3 16.5198 16 A10 20.1017 2.73259 20 A25 75.369 31.2857 24 ———File ends at above—————————–

Load files using np.loadtxt()

# In default, np.loadtxt will split columns on white space and return a two dimensional array.
# Column number starts with 0, (1,2,3) indicates the 2nd,3nd and 4th column.
two_dimensional_array = np.loadtxt('test', usecols=(1,2,3),skiprows=1)
CHENTONG
版权声明:本文为博主原创文章,转载请注明出处。
alipay.png WeChatPay.png

CHENTONG

CHENTONG
积微,月不胜日,时不胜月,岁不胜时。凡人好敖慢小事,大事至,然后兴之务之。如是,则常不胜夫敦比于小事者矣!何也?小事之至也数,其悬日也博,其为积也大。大事之至也希,其悬日也浅,其为积也小。故善日者王,善时者霸,补漏者危,大荒者亡!故,王者敬日,霸者敬时,仅存之国危而后戚之。亡国至亡而后知亡,至死而后知死,亡国之祸败,不可胜悔也。霸者之善著也,可以时托也。王者之功名,不可胜日志也。财物货宝以大为重,政教功名者反是,能积微者速成。诗曰:德如毛,民鲜能克举之。此之谓也。

生信宝典文章集锦

### 培训* [生物信息作图系列R、Cytoscape及图形排版和Python编程培训研讨班开课了](http://mp.weixin.qq.com/s/x-DInL34BbKUR-2UD2Ec3g)* [120分的转录组考题,你能得多少](http://mp.weixi...… Continue reading

基因共表达聚类分析及可视化

Published on November 30, 2017

易生信转录组培训第一期总结

Published on November 15, 2017