Skip to content

Commit

Permalink
adds hdf5suite and example .hdf file
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Jul 26, 2023
1 parent 79f87f8 commit 6479753
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dcqc/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def get_file_type(cls, file_type: str) -> FileType:
FileType("CSV", (".csv"), "format_3752")
FileType("BAM", (".bam"), "format_2572")
FileType("FASTQ", (".fastq", ".fastq.gz", ".fq", ".fq.gz"), "format_1930")
FileType("HDF5", (".hdf", ".hdf5", ".h5", ".he5"), "format_3590")


# TODO: Leverage post-init function in dataclasses
Expand Down
4 changes: 4 additions & 0 deletions src/dcqc/suites/suites.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ class TXTSuite(FileSuite):

class CSVSuite(FileSuite):
file_type = FileType.get_file_type("CSV")


class HDF5Suite(FileSuite):
file_type = FileType.get_file_type("HDF5")
Binary file added tests/data/test.hdf
Binary file not shown.

0 comments on commit 6479753

Please sign in to comment.