Public
Edited
Nov 18, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
txt = pgs.textArea(id)
Insert cell
Insert cell
pgsAttr = pgs.get(`score/${id}?format=json`) // pgs.info
Insert cell
Insert cell
rsid = pgs.getRsid([1, 100880328, "T", "A"])
Insert cell
Insert cell
md`## Methods`
Insert cell
Insert cell
Insert cell
Insert cell
md`## Genomics services sandbox`
Insert cell
(await fetch(
'https://api.genome.ucsc.edu/getData/track?genome=hg19;track=knownGene;chrom=chr1;start=100781169;end=100781170'
)).json()
Insert cell
snp138 = (await fetch(
'https://api.genome.ucsc.edu/getData/track?genome=hg19;track=snp138;chrom=chr1;start=100781168;end=100781169'
)).json()
Insert cell
snp138.snp138[0].name
Insert cell
Insert cell
Insert cell
Insert cell
(await fetch(
'https://myvariant.info/v1/variant/chr1:g.100781169T>C?assembly=hg19'
)).json()
Insert cell
md`### with the right assembly`
Insert cell
(await fetch(
'https://myvariant.info/v1/variant/chr1:g.100781169T>C?assembly=hg19&fields=dbsnp.rsid'
)).json()
Insert cell
md`### finding the right assembly`
Insert cell
(await fetch(
'https://myvariant.info/v1/variant/chr1:g.100781169T>C?fields=dbsnp.rsid'
)).json()
Insert cell
Insert cell
(await fetch(
'https://myvariant.info/v1/variant/chr7:g.91459189ATT>A?fields=dbsnp.rsid'
)).json()
Insert cell
pgs.textArea(4)
Insert cell
(await pgs.loadScore(4)).replaceAll('\t',' ','g')
Insert cell
(
await fetch(
"https://proxy.jalmeida.workers.dev/?https://api.ncbi.nlm.nih.gov/variation/v0/spdi/NC_000001.10:235612031:G:A/rsids"
)
).json()
Insert cell
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