Unlisted
Edited
Nov 13, 2024
7 forks
Importers
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
zipCode = 22807
Insert cell
Insert cell
Insert cell
firstName = "you"
Insert cell
Insert cell
"Hey, " + firstName + "!"
Insert cell
Insert cell
Insert cell
greeting = {
return "Hello, World!";
}
Insert cell
Insert cell
import { simpleGenomeMap } with {
genomeLength,
selectedPhage,
genesByPhage as genes
} from "@scresawn/simple-genome-map"
Insert cell
Insert cell
simpleGenomeMap()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
"I am a string"
Insert cell
Insert cell
"I am a string!".length
Insert cell
Insert cell
x = 21
Insert cell
pi = 3.14
Insert cell
titer = 3.4e9
Insert cell
Insert cell
x + 10
Insert cell
x / 4
Insert cell
Insert cell
Math.sqrt(x)
Insert cell
Insert cell
"hello".length > 4
Insert cell
5 < 3
Insert cell
Insert cell
Insert cell
a = 10
Insert cell
Insert cell
a === 10
Insert cell
Insert cell
myShirt = ({
color : "blue",
material : "cotton",
size : "medium"
})
Insert cell
Insert cell
toDos = [
"feed the elephant",
"buy another shirt",
"think of other weird examples for this notebook"
]
Insert cell
Insert cell
toDos.length
Insert cell
Insert cell
toDos[0]
Insert cell
toDos[2]
Insert cell
Insert cell
Insert cell
function addMe(a, b) {
return a + b;
}
Insert cell
Insert cell
addMe("Hey ", "there")
Insert cell
addMe(3, 4)
Insert cell
Insert cell
addMe2 = (a, b) => a + b
Insert cell
addMe2(3, 4)
Insert cell
addMe3 = (a, b) => {
return a + b;
}
Insert cell
addMe3(3, 4)
Insert cell
Insert cell
"hello".toUpperCase()
Insert cell
Insert cell
firstName.toLowerCase()
Insert cell
Insert cell
friends = ["Phoebe", "Chandler", "Joey", "Monica", "Rachel", "Ross"]
Insert cell
friends.includes("Gunther")
Insert cell
friends.includes("Joey")
Insert cell
Insert cell
friends.filter((person) => person.length > 5)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
clusters = getPhameratorData(dataset, "/clusters", user.email, user.password)
Insert cell
clusters
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
selectedPhageGenome = getPhameratorData(
dataset,
`/genome/${selectedPhage}`,
user.email,
user.password
)
Insert cell
Insert cell
genomes = getPhameratorData(dataset, "/genomes", user.email, user.password)
Insert cell
genomes
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
genes
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
genesbycluster = getPhameratorData(dataset, `/genesbycluster/${selectedCluster}`,
user.email,
user.password)
Insert cell
genesbycluster
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
genesbycluster
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
phamilies = getPhameratorData(dataset, "/phamilies",
user.email,
user.password)
Insert cell
phamilies
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
phamily = getPhameratorData(dataset, `/phamily/1727`,
user.email,
user.password)
Insert cell
phamily
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
getPhameratorData(dataset, `/phagesbycluster/Z`,
user.email,
user.password)
Insert cell
phagesByCluster
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
phagesBySubcluster = getPhameratorData(dataset, "/phagesbysubcluster/A1",
user.email,
user.password)
Insert cell
phagesBySubcluster
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
trnasByCluster
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof selectedCluster = Inputs.select(
clusters.map((cluster) => cluster.name),
{ label: "Select a cluster", value: "D" }
)
Insert cell
Insert cell
phagesByCluster = getPhameratorData(
dataset,
`/phagesbycluster/${selectedCluster}`,
user.email,
user.password
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
clusters
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
genes
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
functions = getPhameratorData(dataset, "/functions", user.email, user.password)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data1
X
start
Y
stop
Color
#9d5bf3
Size
Facet X
phageID
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {
terms,
getPhameratorData,
user,
formWithSubmit,
styles
} with { formData } from "@scresawn/phamerator-api-utilities"
Insert cell
data = getPhameratorData(dataset, `/genes/tweety19`, user.email, user.password)
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