-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joseph Kuo
committed
Mar 4, 2024
1 parent
2218bc3
commit e2ac991
Showing
3 changed files
with
116 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from genomkit import GCoverages | ||
from collections import OrderedDict | ||
|
||
|
||
class GCoveragesSet: | ||
""" | ||
GCoveragesSet module | ||
This module contains functions and classes for working with multiple | ||
collections of genomic coverages. It provides utilities for handling and | ||
analyzing the interactions of many genomic coverages. | ||
""" | ||
|
||
def __init__(self, name: str = "", load_dict=None): | ||
"""Initiate a GCoveragesSet object which can contain multiple | ||
GCoverages. | ||
:param name: Define the name, defaults to "" | ||
:type name: str, optional | ||
:param load_dict: Given the file paths of multiple GCoverages as a | ||
dictionary with names as keys and values as file | ||
paths, defaults to None | ||
:type load_dict: dict, optional | ||
""" | ||
self.collection = OrderedDict() | ||
if load_dict: | ||
for name, filename in load_dict.items(): | ||
self.add(name=name, | ||
regions=GCoverages(name=name, | ||
load=filename)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters