mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 08:58:11 +08:00
* 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:
co-authored by
Timmy Huang
parent
08b03ace60
commit
b814489328
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user