khp-informatics / adr-graph Goto Github PK
View Code? Open in Web Editor NEWPredicting adverse drug reactions from a knowledge graph
License: GNU General Public License v3.0
Predicting adverse drug reactions from a knowledge graph
License: GNU General Public License v3.0
filterNetworksByCommonSource prints a count for source nodes using
networkA['sourcenodes'] = networkA['graph'].vs(type_eq=networkA['sourcetype'])['name']
however if sourcetype and targettype are the same, this will be the count of ALL nodes, not just source nodes
I have downloaded the data and docker image. The initiation of the EdgePrediction image throws an error. This is from the second line in the ExampleUseDoc.rst.
ep = EdgePrediction.EdgePrediction()
AttributeError Traceback (most recent call last)
in
----> 1 ep = EdgePrediction.EdgePrediction()
AttributeError: class EdgePrediction has no attribute 'EdgePrediction'
Even running the following
ep = EdgePrediction()
I run into other errors later.
Thank you for your time in developing this, and I do recognize that this hasn't seen a lot of attention but despite that, I would really like to see this package work.
particularly important now this used as a package
Wondering if there is another place to set, require_all_predictors to 'False' other than "init"? I was hoping to increase the number of models the 'predictAll' method would produce. Switching the default value to 'False' did not seem to change the result.
self.require_all_predictors = False
in the init method
epall = ep.EdgePrediction()
s = epall.CSV_to_graph('data.csv', header=True, srcNameCol=0, srcTypeCol=1, tgtNameCol=4, tgtTypeCol=3, edgeTypeCol=2)
epall.preprocess()
epall.to_predict = 'HAS_SIDE_EFFECT'
epall.network_order = ['HAS_SIDE_EFFECT', 'DRUG_TARGETS', 'INDICATED_FOR']
AllResult = epall.predictAll(calculate_auc = True)
still produces several results that indicate:
self.require_all_predictors is True and x/3 networks have 0 predictor overlap
not optimizing a model for CXXXXX
Again my main goal is to just generate a higher percentage of models. Thank you for your time and attention.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.