Skip to content

Commit e0614a7

Browse files
committed
quick update
1 parent 6706d0e commit e0614a7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

metagene/annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def map_to_transcripts(
2525
exon_pr = pr.PyRanges(exon_ref.to_pandas()) # type: ignore
2626

2727
# Perform join operation
28-
annot_pr = exon_pr.join_ranges( # type: ignore
28+
annot_pr = exon_pr.join_overlaps( # type: ignore
2929
input_pr,
3030
suffix="_qry",
3131
join_type="inner",

metagene/gtf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def prepare_exon_ref(gtf_file: str) -> pl.DataFrame:
167167
pr_codons = pr.PyRanges(pl_df_codons.to_pandas())
168168
# Join with exon reference and calculate positions
169169
df_codons = (
170-
pr_exon.join_ranges(pr_codons, join_type="inner", match_by="transcript_id") # type: ignore
170+
pr_exon.join_overlaps(pr_codons, join_type="inner", match_by="transcript_id") # type: ignore
171171
.assign(
172172
codon_pos=lambda df: np.where(
173173
df["Strand"] == "+",

metagene/overlap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def annotate_with_features(
9292
Returns:
9393
Tuple of (annotated dataframe, binned statistics)
9494
"""
95-
# Perform overlap using PyRanges v1 join_ranges
95+
# Perform overlap using PyRanges v1 join_overlaps
9696
df_joined = (
9797
pr.PyRanges(df_input)
98-
.join_ranges(
98+
.join_overlaps(
9999
pr.PyRanges(df_feature),
100100
report_overlap_column="Overlap",
101101
strand_behavior="same" if by_strand else "ignore",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "metagene"
3-
version = "0.0.13"
3+
version = "0.0.14"
44
description = "Metagene Profiling Analysis and Visualization"
55
authors = [{ name = "Ye Chang", email = "yech1990@gmail.com" }]
66
requires-python = ">=3.12"

scripts/process_gtf_to_parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def prepare_exon_ref(gtf_file: str) -> pr.PyRanges:
178178
pr_codons = pr.PyRanges(pl_df_codons.to_pandas())
179179
# Join with exon reference and calculate positions
180180
df_codons = (
181-
pr_exon.join_ranges(pr_codons, join_type="inner", match_by="transcript_id")
181+
pr_exon.join_overlaps(pr_codons, join_type="inner", match_by="transcript_id")
182182
.assign(
183183
codon_pos=lambda df: np.where(
184184
df["Strand"] == "+",

0 commit comments

Comments
 (0)