-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from opentargets/do_docstring_fixes
docs: several fixes in docstrings
- Loading branch information
Showing
13 changed files
with
59 additions
and
61 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 @@ | ||
::: otg.datasource.intervals.thurman.IntervalsThurman |
This file was deleted.
Oops, something went wrong.
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
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
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
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
File renamed without changes.
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,36 @@ | ||
"""Test Thurman.""" | ||
from __future__ import annotations | ||
|
||
import pytest | ||
from pyspark.sql import DataFrame, SparkSession | ||
|
||
from otg.common.Liftover import LiftOverSpark | ||
from otg.dataset.gene_index import GeneIndex | ||
from otg.datasource.intervals.thurman import IntervalsThurman | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def sample_intervals_thurman(spark: SparkSession) -> DataFrame: | ||
"""Sample Andersson intervals.""" | ||
return IntervalsThurman.read_thurman( | ||
spark, "tests/data_samples/thurman_sample.bed8" | ||
) | ||
|
||
|
||
def test_read_thurman(sample_intervals_thurman: DataFrame) -> None: | ||
"""Test read_jung.""" | ||
assert isinstance(sample_intervals_thurman, DataFrame) | ||
|
||
|
||
def test_thurman_intervals_from_source( | ||
sample_intervals_thurman: DataFrame, | ||
mock_gene_index: GeneIndex, | ||
liftover_chain_37_to_38: LiftOverSpark, | ||
) -> None: | ||
"""Test IntervalsThurman creation with mock data.""" | ||
assert isinstance( | ||
IntervalsThurman.parse( | ||
sample_intervals_thurman, mock_gene_index, liftover_chain_37_to_38 | ||
), | ||
IntervalsThurman, | ||
) |
This file was deleted.
Oops, something went wrong.