Skip to content

Commit

Permalink
Merge branch 'update-docstrings' of https://github.com/PMBio/deeprvat
Browse files Browse the repository at this point in the history
…into update-docstrings

Conflicts:
	deeprvat/deeprvat/associate.py
  • Loading branch information
meyerkm committed Nov 28, 2023
2 parents 17f84d2 + 124cba8 commit 9f7c001
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deeprvat/deeprvat/associate.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ def compute_burdens(
source_path.symlink_to(link_burdens)


def regress_on_gene_scoretest(gene: str, burdens: np.ndarray, model_score,
def regress_on_gene_scoretest(
gene: str,
burdens: np.ndarray,
model_score,
) -> Tuple[List[str], List[float], List[float]]:
"""
Perform regression on a gene using the score test.
Expand Down
4 changes: 4 additions & 0 deletions deeprvat/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class RSquared:
"""
Calculates the R-squared (coefficient of determination) between predictions and targets.
"""

def __init__(self):
pass

Expand All @@ -42,6 +43,7 @@ class PearsonCorr:
"""
Calculates the Pearson correlation coefficient between burdens and targets.
"""

def __init__(self):
pass

Expand Down Expand Up @@ -77,6 +79,7 @@ class PearsonCorrTorch:
"""
Calculates the Pearson correlation coefficient between burdens and targets using PyTorch tensor operations.
"""

def __init__(self):
pass

Expand Down Expand Up @@ -125,6 +128,7 @@ class AveragePrecisionWithLogits:
"""
Calculates the average precision score between logits and targets.
"""

def __init__(self):
pass

Expand Down

0 comments on commit 9f7c001

Please sign in to comment.