Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cellarium_schema/gencode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import gzip
import logging
import os
import warnings

from cellxgene_schema.gencode import GeneChecker, SupportedOrganisms
from cellxgene_schema.env import GENCODE_DIR as CZI_GENCODE_DIR
Expand Down Expand Up @@ -38,7 +39,7 @@ def __init__(self, species: SupportedOrganisms, gencode_version: int | None):
raise ValueError(f"gencode_version must be in [43, 44]: got {self.gencode_version}")
else:
if self.gencode_version is not None:
raise UserWarning("gencode_version is ignored if species is not HOMO_SAPIENS")
warnings.warn("gencode_version is ignored if species is not HOMO_SAPIENS", UserWarning)
file = self.GENE_FILES[species]
logger.info(f"using file {file}")

Expand Down