Added typings to annoMatrix dir. (#2365) (#2371)

* Added typings to annoMatrix directory. (#2365)

* Added review point updates. (#2365)

* Fixed viewOf defect. Added review point updates. (#2365)

* Updated test to use Field key interpolation. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>

* Updated test to use Field key interpolation. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>

* Updated test to use Field key interpolation. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>

* Updated test to use Field key interpolation. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>

* Linting. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>

* Simplified while condition in middleware GC. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>

* Reverted embedding.ts prettier to resolve conflict. (#2365)

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>
This commit is contained in:
Mim Hastie
2021-08-18 13:18:54 -07:00
committed by GitHub
co-authored by Timmy Huang
parent 08b03ace60
commit b814489328
19 changed files with 1121 additions and 948 deletions
@@ -14,6 +14,7 @@ import {
EmbeddingSchema,
AnnotationColumnSchema,
} from "../../common/types/schema";
import { LabelType } from "../dataframe/types";
/*
System wide schema assumptions:
@@ -75,7 +76,7 @@ function _reindexObsLayout(schema: Schema) {
return schema;
}
export function removeObsAnnoColumn(schema: Schema, name: string): Schema {
export function removeObsAnnoColumn(schema: Schema, name: LabelType): Schema {
const newSchema = _copyObsAnno(schema);
newSchema.annotations.obs.columns = schema.annotations.obs.columns.filter(
(v) => v.name !== name
@@ -97,7 +98,7 @@ export function addObsAnnoColumn(
export function removeObsAnnoCategory(
schema: Schema,
name: string,
name: LabelType,
category: string
): Schema {
/* remove a category from a categorical annotation */