Python

Bymunije

4 minute read

"tab_size": 4,
"translate_tabs_to_spaces": true

2. 个性化设置

{
	"color_scheme": "Packages/Predawn/predawn.tmTheme",
	"font_face": "Microsoft Yahei Mono",
	"font_size": 11,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
	],
	"line_padding_top": 3,
	"show_encoding": true,
	"show_line_endings": true,
	"theme":…
Bymunije

6 minute read

split_target = open("Processing_target_nan_split.txt",'w')
with open('Processing_target_nan_withHeader.txt') as Processing_target:
	count = 0
	for line in Processing_target:
		count += 1
		try:
			line = line.replace('\n','')#去掉末尾换行符
			Target = line.split('\t')[7].split(";")[:]#split
			Index_drug = line.split("\t")[0]
			Index_cellLine = line.split("\t")[1]
			AUC = line.split("\t")[2]
			cellLine_name= line.split("\t")[5]
			DrugName…