cytoscape / cx2js

A CX to Cytoscape JS library
MIT License
3 stars 1 forks source link

Bug: cx2js renames node/edge attributes #20

Open dotasek opened 5 years ago

dotasek commented 5 years ago

@keiono reported that the following file has it's attributes renamed after being processed by cx2js:

http://test.ndexbio.org/v2/network/4933e3ac-cda7-11e8-a74b-0660b7976219

The resulting attribute names are of the following pattern:

CCMI_breast_u13: "false"
CCMI_head_and_neck_u17: "false"
Domain_Interpro_u20: "false"
Domain_PFAM_u11: "false"
PPI_BioGRID_u12: "false"
PPI_BioPlex_u10: "false"
PPI_CCSB_u9: "false"
PPI_Hein_u16: "false"
PPI_PrePPI_u15: "false"
PPI_huMap_u8: "false"
RF_score_augmented_u18: 0.0225
RF_score_u19: 0.28600000000000003
Sanger_cell_line_u14: 0.3

This is likely there to ensure valid JSON, but destructively alters the data.