cd /data2/hjl/jupyter/ #到jupyter根目录nohup jupyter notebook >jupyter.log &
ssh -L 8888:localhost:8888 xxxxx@xxxxxx然后从本地电脑打开浏览器http://localhost:8888
import numpy as npgenes = ["GeneA","GeneB","GeneC","GeneD","GeneE"]samples= ["sample1","sample2","sample3","sample4"]np.random.seed(1212)data= np.random.randint(50,200,size=(len(genes),len(samples)))# 构造dataframedf= pd.DataFrame(data, index=genes, columns=samples)print(df)
筛选
df[df['sample1']>150] #筛选sample1表达量>150的