Skip to content

Instantly share code, notes, and snippets.

View Orbifold's full-sized avatar
🍀
Happy. Thinking. Understanding.

Francois Vanderseypen Orbifold

🍀
Happy. Thinking. Understanding.
View GitHub Profile
@Orbifold
Orbifold / Cora.ipynb
Last active July 2, 2023 08:57
Cora explorations
View Cora.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Orbifold
Orbifold / talk_to_neo4j.js
Created March 5, 2023 10:42
Less than 100 lines to talk to your Neo4j graph
View talk_to_neo4j.js
require('dotenv').config()
const { Configuration, OpenAIApi } = require("openai");
const neo4j = require('neo4j-driver')
const driver = neo4j.driver(process.env.NEO4JURI, neo4j.auth.basic(process.env.NEO4JUSER, process.env.NEO4JPASSWORD))
const session = driver.session({ database: "biodb" })
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY
});
const openai = new OpenAIApi(configuration);
let isConfidential = false;
@Orbifold
Orbifold / DrkgSchemaAndDataImport.ipynb
Created February 9, 2022 11:00
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 February 9, 2022 10:04
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
Last active July 1, 2023 04:34
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
@Orbifold
Orbifold / CSVGenerator.ipynb
Last active March 26, 2020 15:46
Untitled.ipynb
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 March 1, 2020 16:23
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 August 13, 2020 20:52
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 October 30, 2019 18:21
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 October 7, 2019 18:52
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.