import numpy as np
# numpy 转 mat
from scipy import io
gene12396_miRNA550 = np.load('./gene12396_miRNA550.npy')
io.savemat('./R12.mat', {'R12': gene12396_miRNA550})
# mat 转 numpy
from mat4py import loadmat
DO328_DO328 = np.array(loadmat('../disease_sim.mat')['disease_sim_matrix']).astype('float')
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)