Skip to content

Commit

Permalink
add IlluminaFlowCellDevice model
Browse files Browse the repository at this point in the history
  • Loading branch information
diitaz93 committed May 16, 2024
1 parent 776d338 commit bf4ce71
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cg/constants/demultiplexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,14 @@ class IndexSettings(BaseModel):
"NovaSeq6000Post1.5Kits": NOVASEQ_6000_POST_1_5_KITS_INDEX_SETTINGS,
"NoReverseComplements": NO_REVERSE_COMPLEMENTS_INDEX_SETTINGS,
}


class IlluminaFlowCellType(StrEnum):
# "10B"
# "25B"
# "1.5B"
# "S4"
# "S1"
# "SP"
# "S2"
pass
13 changes: 13 additions & 0 deletions cg/store/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
SexOptions,
StatusOptions,
)
from cg.constants.demultiplexing import IlluminaFlowCellType
from cg.constants.devices import DeviceType
from cg.constants.priority import SlurmQos
from cg.constants.symbols import EMPTY_STRING
Expand Down Expand Up @@ -975,6 +976,18 @@ class RunDevice(Base):
}


class IlluminaFlowCellDevice(RunDevice):
"""Model for storing Illumina flow cells."""

__tablename__ = "illumina_flow_cell"

id: Mapped[int] = mapped_column(ForeignKey("run_device.id"), primary_key=True)
flow_cell_type: Mapped[IlluminaFlowCellType | None]
flow_cell_name: Mapped[UniqueStr64 | None]

__mapper_args__ = {"polymorphic_identity": DeviceType.ILLUMINA}


class RunMetrics(Base):
"""Model for storing run devices."""

Expand Down

0 comments on commit bf4ce71

Please sign in to comment.