snfpy
snfpy copied to clipboard
value error
Dear developer,
I tried a real dataset GBM from original paper but got the following error. Could you please help? Thanks!
mirna = pd.read_csv('GLIO_Mirna_Expression.txt', index_col=0, sep='\t') exp = pd.read_csv('GLIO_Gene_Expression.txt', index_col=0, sep='\t') methy = pd.read_csv('GLIO_Methy_Expression.txt', index_col=0, sep='\t') affinity_networks = snf.make_affinity([mirna.T, exp.T, methy.T], metric='euclidean', K=20, mu=0.5) fused_network = snf.snf(affinity_networks, K=20)
Traceback (most recent call last):
File "testSNF.py", line 27, in
The fault is in the dataset. One patient (ID=TCGA-12-0780-01A...) has only missing values for every modality. I dropped this patient from the dataframes and it runs just fine.