mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-19 19:08:11 +08:00
* icons, partway * redux for values * onChange * cancel * annotations lifecycle for category names * copy categorical * edit category * add Dataframe.withColsFrom * render user annotations; default add/delete annotation category * add label name to actions * category name edit * error checking improvements * change schema field isUserAnnotation to writable * always have an unassigned label; implement delete label * implement add new label and edit label name * label current cell selection * fix select exact bug in crossfilter * clean up categorical reducer * fix tests * remove debugging printf * implement subset/reset for user annotations * undo redo support for user annotations * remove duplicate button from categories * add modal * remove obsolete duplicate annotation reducers * remove old debugging printf * connect modal to annotation create and dup * initial full-stack wiring * finish up end-to-end wiring * fix existing unit tests * fix pytests to match new schema API * remove debugging printfs * add label file rotation * remove obsolete comment * add fbs encode/decode tests * add tests for writable annotations * simplify code * fix hashing bug with FBS encoding * lint * fix smoke tests * improve error checking in Dataframe.withColsFrom * add unit test for Dataframe.withColsFrom * add unit test for Dataframe.columns and Dataframe.renameCol * fix bug in FBS encode, add better error checks, refactor * add FBS encode/decode test * add clarifying comment * clean up action type names; fix state inconsistency in crossfilter update * change autosave timer to 2.5sec * sort categorical metadata render order so it remains consistent * add temporary autogenerated label for add-new-label operation * fix hover-over label menu interference with cell highlighting * remove debugging code * add missing reducer cases & fix typo * make dataframe memoize more general purpose * add dev mode for annos * fix error on select duplicate * handle zero occupancy categories * correctly maintain unclipped AND clipped world * correctly handle zero length FBS matrix and label files * ensure all writable categorical schema contains an unassigned category * handle case where building occupancy stack for category with no members * dialog for creating label, disable button if duplicate or empty * visually separate writeable * edit category * fix edit category name * remove debugging code * fix edit annotation label * visually define unassigned, change options * Pull in requirements.txt from `master` * label currently selected cells * duplicate label * lint * fix pytest merge issues * rename --label-file to --experimental-label-file * remove debugging console log * spelling error fix; fix bug found in PR review. * lint
129 lines
2.8 KiB
JavaScript
129 lines
2.8 KiB
JavaScript
export const datasets = {
|
|
pbmc3k: {
|
|
title: "pbmc3k",
|
|
dataframe: {
|
|
nObs: "2638",
|
|
nVar: "1838",
|
|
type: "float32"
|
|
},
|
|
categorical: {
|
|
louvain: {
|
|
"B cells": "342",
|
|
"CD14+ Monocytes": "480",
|
|
"CD4 T cells": "1144",
|
|
"CD8 T cells": "316",
|
|
"Dendritic cells": "37",
|
|
"FCGR3A+ Monocytes": "150",
|
|
Megakaryocytes: "15",
|
|
"NK cells": "154"
|
|
}
|
|
},
|
|
continuous: {
|
|
n_genes: "int32",
|
|
percent_mito: "float32",
|
|
n_counts: "float32"
|
|
},
|
|
cellsets: {
|
|
lasso: [
|
|
{
|
|
"coordinates-as-percent": { x1: 0.05, y1: 0.25, x2: 0.15, y2: 0.35 },
|
|
count: "88"
|
|
}
|
|
],
|
|
categorical: [
|
|
{
|
|
metadata: "louvain",
|
|
values: ["B cells", "Megakaryocytes"],
|
|
count: "357"
|
|
}
|
|
],
|
|
continuous: [
|
|
{
|
|
metadata: "n_genes",
|
|
"coordinates-as-percent": { x1: 0.25, y1: 0.5, x2: 0.55, y2: 0.5 },
|
|
count: "1537"
|
|
}
|
|
]
|
|
},
|
|
|
|
diffexp: {
|
|
cellset1: [
|
|
{ kind: "categorical", metadata: "louvain", values: ["B cells"] }
|
|
],
|
|
cellset2: [
|
|
{
|
|
kind: "categorical",
|
|
metadata: "louvain",
|
|
values: ["CD4 T cells", "NK cells"]
|
|
}
|
|
],
|
|
"gene-results": [
|
|
"HLA-DRB1",
|
|
"HLA-DPB1",
|
|
"CD79A",
|
|
"HLA-DPA1",
|
|
"HLA-DQA1",
|
|
"CD79B",
|
|
"HLA-DQB1",
|
|
"MS4A1",
|
|
"IL32",
|
|
"CD37"
|
|
]
|
|
},
|
|
|
|
genes: {
|
|
bulkadd: ["S100A8", "FCGR3A", "LGALS2", "GSTP1"],
|
|
search: "ACD"
|
|
},
|
|
subset: {
|
|
cellset1: [
|
|
{
|
|
kind: "categorical",
|
|
metadata: "louvain",
|
|
values: ["B cells", "Megakaryocytes"]
|
|
}
|
|
],
|
|
count: "357",
|
|
categorical: {
|
|
louvain: {
|
|
"B cells": "342",
|
|
"CD14+ Monocytes": "0",
|
|
"CD4 T cells": "0",
|
|
"CD8 T cells": "0",
|
|
"Dendritic cells": "0",
|
|
"FCGR3A+ Monocytes": "0",
|
|
Megakaryocytes: "15",
|
|
"NK cells": "0"
|
|
}
|
|
},
|
|
lasso: {
|
|
"coordinates-as-percent": { x1: 0.45, y1: 0.05, x2: 0.65, y2: 0.15 },
|
|
count: "39"
|
|
}
|
|
},
|
|
scatter: {
|
|
genes: { x: "S100A8", y: "FCGR3A" }
|
|
},
|
|
pan: {
|
|
"coordinates-as-percent": { x1: 0.75, y1: 0.75, x2: 0.35, y2: 0.35 }
|
|
},
|
|
features: {
|
|
panzoom: {
|
|
lasso: {
|
|
"coordinates-as-percent": { x1: 0.3, y1: 0.3, x2: 0.5, y2: 0.5 },
|
|
count: "24"
|
|
}
|
|
}
|
|
},
|
|
clip: {
|
|
min: "30",
|
|
max: "70",
|
|
metadata: "n_genes",
|
|
gene: "S100A8",
|
|
"coordinates-as-percent": { x1: 0.25, y1: 0.5, x2: 0.55, y2: 0.5 },
|
|
count: "392",
|
|
"gene-cell-count": "421"
|
|
}
|
|
}
|
|
};
|