Skip to content

Commit

Permalink
Update cellxgene_schema_cli/cellxgene_schema/validate.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nayib Gloria <[email protected]>
  • Loading branch information
1 parent 89486f6 commit 3d3b6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellxgene_schema_cli/cellxgene_schema/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,9 +1391,9 @@ def _validate_spatial_tissue_position(self, tissue_position_name: str, min: int,
"""
# Tissue position is foribidden if assay is not Visium and is_single is True.
if tissue_position_name in self.adata.obs and (
not self._is_supported_spatial_assay
not self._is_visium_and_is_single_true()
or (
~((self.adata.obs["assay_ontology_term_id"] == ASSAY_VISIUM) & ((self._is_single() or False)))
~(self.adata.obs["assay_ontology_term_id"] == ASSAY_VISIUM)
& (self.adata.obs[tissue_position_name].notnull())
).any()
):
Expand Down

0 comments on commit 3d3b6be

Please sign in to comment.