Skip to content

Commit

Permalink
add GRegionTree
Browse files Browse the repository at this point in the history
  • Loading branch information
chaochungkuo committed Mar 7, 2024
1 parent f2e3f3d commit 2ecb284
Show file tree
Hide file tree
Showing 7 changed files with 942 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ pysam==0.22.0
tqdm
pyBigWig==0.3.22
pandas
scipy
scipy
intervaltree
1 change: 1 addition & 0 deletions genomkit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .regions.gregion import GRegion
from .regions.gregions import GRegions
from .regions.gregions_intervaltree import GRegionsTree
from .regions.gregions_set import GRegionsSet
from .sequences.gsequence import GSequence
from .sequences.gsequences import GSequences
Expand Down
5 changes: 5 additions & 0 deletions genomkit/regions/gregions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,3 +1064,8 @@ def filter_by_score(self, larger_than=0, smaller_than=0, inplace=False):
self.elements = res.elements
else:
return res

# def rename_by_GRegions(self, name_source, strandness: bool = True,
# inplace: bool = True):
# assert isinstance(name_source, GRegions)

Loading

0 comments on commit 2ecb284

Please sign in to comment.