Skip to content

Commit

Permalink
only test raw matrix dimensionality if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hegeman committed Sep 15, 2023
1 parent 6908cd1 commit abce609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellxgene_schema_cli/cellxgene_schema/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def _validate_seurat_convertibility(self):
self.is_seurat_convertible = False

# Check to make sure raw.var has the same dimensionality as raw.X
if get_num_vars_in_raw_matrix(self.adata) != get_num_vars_in_raw_var(self.adata):
if self.adata.raw and get_num_vars_in_raw_matrix(self.adata) != get_num_vars_in_raw_var(self.adata):
self.warnings.append(
f"This dataset cannot be converted to the .rds (Seurat v4) format. "
f"There is a mismatch in the number of variables in the raw matrix and the raw var key-indexed "
Expand Down

0 comments on commit abce609

Please sign in to comment.