#!/usr/bin/python3# -*- coding: utf-8 -*-# @Time : 2021/8/6 17:24# @Author : sxgjmnimport cv2
input_img ='C:/Users/DELL/Desktop/pathway-gene-ppi_legend.png'
output_img ='C:/Users/DELL/Desktop/pathway-gene-ppi_legend_2.png'
edge_node_dir ='C:/Users/DELL/Desktop/生信项目/Cytoscape网络开发/test_data_2'defget_node_count_pvalue(indir):# Get max value and min value of nodes Count and pvalue
node_file = indir +'/node_edge/pathway-pathway_node.txt'
count =[]
pvalue =[]
infile =open(node_file,'r')for line in infile.readlines():
row = line.rstrip().split('\t')if row[0]=='id':continue