mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 23:38:12 +08:00
Allow columns encoded in float64 to be rendered as part of continuous value histograms. (#1905)
This commit is contained in:
@@ -14,7 +14,12 @@ class Continuous extends React.PureComponent {
|
|||||||
if (!schema) return null;
|
if (!schema) return null;
|
||||||
const obsIndex = schema.annotations.obs.index;
|
const obsIndex = schema.annotations.obs.index;
|
||||||
const allContinuousNames = schema.annotations.obs.columns
|
const allContinuousNames = schema.annotations.obs.columns
|
||||||
.filter((col) => col.type === "int32" || col.type === "float32")
|
.filter(
|
||||||
|
(col) =>
|
||||||
|
col.type === "int32" ||
|
||||||
|
col.type === "float32" ||
|
||||||
|
col.type === "float64"
|
||||||
|
)
|
||||||
.filter((col) => col.name !== obsIndex)
|
.filter((col) => col.name !== obsIndex)
|
||||||
.filter((col) => !col.writable) // skip user annotations - they will be treated as categorical
|
.filter((col) => !col.writable) // skip user annotations - they will be treated as categorical
|
||||||
.map((col) => col.name);
|
.map((col) => col.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user