Skip to content

Commit

Permalink
add dataset for re pon and poff only
Browse files Browse the repository at this point in the history
  • Loading branch information
gyoge0 committed Jul 26, 2024
1 parent 3459e1f commit 2f44147
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sparkle_stats/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .p_on_p_off_only_dataset import PonPoffOnlyDataset
from .re_pon_poff_dataset import RePonPoffDataset
from .zarr_dataset import ZarrDataset
from .zarr_intensity_only_dataset import ZarrIntensityOnlyDataset
from .zarr_state_dataset import ZarrStateOnlyDataset
Expand All @@ -8,4 +9,5 @@
"ZarrStateOnlyDataset",
"ZarrIntensityOnlyDataset",
"PonPoffOnlyDataset",
"RePonPoffDataset",
]
12 changes: 12 additions & 0 deletions sparkle_stats/datasets/re_pon_poff_dataset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .zarr_intensity_only_dataset import ZarrIntensityOnlyDataset


class RePonPoffDataset(ZarrIntensityOnlyDataset):
def __getitem__(self, item):
trace, parameters = super().__getitem__(item)
parameters = parameters[:, [0, -2, -1]]
return trace, parameters

@property
def output_classes(self):
return 3

0 comments on commit 2f44147

Please sign in to comment.