Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* Content-type: application/vnd.wolfram.mathematica *) | |
(*** Wolfram Notebook File ***) | |
(* http://www.wolfram.com/nb *) | |
(* CreatedBy='Mathematica 12.3' *) | |
(*CacheID: 234*) | |
(* Internal cache information: | |
NotebookFileLineBreakTest |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder