Public
Edited
Nov 17, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dataset[0]
Insert cell
features = ["LogP", "LogVP", "BP [°C]", "MP [°C]", "MW [g/mol]", "LogS [M/L]"]
Insert cell
target_column = "LLNA EC3 (%)"
Insert cell
Insert cell
dataset = fetch_dataset_to_array(dataset_url, query_options)
Insert cell
query_options = {
return {
method: 'POST',
body: JSON.stringify({
condition: {
gt: [{tanimotoSimilarity: [targetSmiles, { column: ["SMILES"] }]}, tanimoto_threshold]
},
orderBy: [
{expression: {tanimotoSimilarity: [targetSmiles, { column: ["SMILES"] }]}, ordering: "descending"}
]
})
}
}
Insert cell
Insert cell
dataset_url = base_url_edelweiss + dataset_id + "/versions/latest/data"
Insert cell
dataset_id = '3f68e739-5d30-4a6b-b4f2-7301f8c584cb'
Insert cell
base_url_edelweiss = 'https://api.edelweissdata.com/datasets/'
Insert cell
function fetch_dataset_to_array(dataset_url, query_options) {
return fetch(dataset_url, query_options).then(response_dataset => {
if (!response_dataset.ok) throw new Error(response_dataset.status);
return response_dataset.json();}).then(json => json.results.map(x => x.data));
}
Insert cell
function get_svg_from_smiles(smiles) {
const safeSmiles = encodeURIComponent(smiles);
const svg_url = "https://chemidconvert.cloud.douglasconnect.com/v1/asSvg?width=200&height=200&smiles=" + safeSmiles;
return fetch(svg_url).then(response => response.text());
}
Insert cell
import {Select, Range, Toggle, Table} from "@observablehq/inputs"
Insert cell
import {select, textarea, text, slider} from "@jashkenas/inputs"
Insert cell
import {vl} from "@vega/vega-lite-api"
Insert cell
import {render_data_table, table_styles, displayImage, displayCaution} from '@info474/utilities'
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more