Skip to content

Commit

Permalink
overall 'slice' function and 'slice_cram' function
Browse files Browse the repository at this point in the history
  • Loading branch information
AssafSternberg committed Feb 8, 2024
1 parent 1d5deb9 commit b89c619
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions modo/cram.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
from rdflib import Graph


def slice(omics_type: str, data_path: str, coords: str):
def slice(data_type: str, data_path: str, coords: str):
"Returns a slice of the requested region for the requested omics type"


if omics_type == 'Genomics':
if data_type == 'cram':
return slice_cram(data_path, coords)
elif omics_type in ["Proteomics", "Metabolomics"]:
return slice_array()
elif data_type == "array":
return slice_array() # To be added after we know what this data
# looks like



Expand All @@ -38,6 +38,9 @@ def slice_cram(cram_path: AlignmentFile, coords: str): # -> AlignmentFile:

return iter




def slice_array():
return None

Expand Down

0 comments on commit b89c619

Please sign in to comment.