Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Add File.is_matrix property (DataBiosphere/azul#3224, DataBiosphere/a…
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc committed Jul 12, 2021
2 parents 56fc054 + 5181ed8 commit 9ac8113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/humancellatlas/data/metadata/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,10 @@ def file_format(self) -> str:
f"Use File.format instead.", DeprecationWarning)
return self.format

@property
def is_matrix(self) -> bool:
return any('matrix' in c.lower() for c in self.content_description)


@dataclass(init=False)
class SequenceFile(File):
Expand Down

0 comments on commit 9ac8113

Please sign in to comment.