Skip to content

Instantly share code, notes, and snippets.

Avatar

Francois Vanderseypen Orbifold

View GitHub Profile
@Orbifold
Orbifold / DrkgSchemaAndDataImport.ipynb
Created Feb 9, 2022
DRKG Schema and Data Import script.
View DrkgSchemaAndDataImport.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / DrkgTigerGraphSchema.gsql
Created Feb 9, 2022
DRKG schema creation in TigerGraph
View DrkgTigerGraphSchema.gsql
use global
CREATE VERTEX Gene (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Compound (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Disease (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Atc (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Tax (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX BiologicalProcess (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Symptom (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX Anatomy (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
CREATE VERTEX MolecularFunction (PRIMARY_ID Id STRING) With primary_id_as_attribute="true"
@Orbifold
Orbifold / Cora.nb
Created Sep 10, 2021
Loading the Cora dataset and using black-box Wolfram machine learning to predict edges.
View Cora.nb
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.3' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
View CSVGenerator.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / sparkCsv.kt
Created Mar 1, 2020
Load a csv file into Spark with Kotlin.
View sparkCsv.kt
import org.apache.spark.sql.Dataset
import org.apache.spark.sql.Row
import org.apache.spark.sql.SparkSession
public fun main() {
val session = SparkSession.Builder()
.appName("Swa Spark")
.master("local")
.orCreate
val df: Dataset<Row> = session.read().format("csv")
@Orbifold
Orbifold / GraphSageLinkPrediction.ipynb
Last active Aug 13, 2020
Using GraphSage for link predictions. So much fun.
View GraphSageLinkPrediction.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / LaplacianEigenmaps.ipynb
Last active Oct 30, 2019
Using the Laplacian of a graph to predict node labels.
View LaplacianEigenmaps.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / CommunityDetection.ipynb
Last active Oct 7, 2019
Community Detection using NetworkX
View CommunityDetection.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / node2vec-weighted.ipynb
Last active Sep 26, 2019
Node2Vec for weighted graphs
View node2vec-weighted.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / Node2Vec.ipynb
Last active Sep 21, 2019
The wonderful Stellargraph shows explicitly how node2vec works via a random walk on graphs to generate 'word' sequences one can use for word2vec.
View Node2Vec.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.