||
import os
import os.path
import re
os.chdir('D:Cancer DataAcute Myeloid eukemia—dataDNA_Methylation')
f=open('jhu-usc.edu_LAML.HumanMethylation450.2.lvl-3.TCGA-AB-2802-03A-01D-0741-05.txt','r')
fy=open('cancer chrY mC position','w+')
line=f.readlines()
matchpattern=re .compile(r'^Y$')
for line0 in line:
line_0=line0.split()
if matchpattern.search(line_0[3]):
fy.write(line0)
f.close()
fy.close()
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-22 20:05
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社