-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to separate base tests from custom method tests. Add a m…
…ethod to change the reference allele so that plink files can be loaded with either allele as the reference. Add a parameter to limit the number of loaded variants.
- Loading branch information
Showing
7 changed files
with
281 additions
and
197 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
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,96 @@ | ||
""" | ||
Run ExtensionArray tests from Pandas on the GenotypeArray class | ||
""" | ||
|
||
from pandas.tests.extension import base | ||
|
||
|
||
# Run the predefined tests | ||
class TestCasting(base.BaseCastingTests): | ||
pass | ||
|
||
|
||
class TestConstructors(base.BaseConstructorsTests): | ||
pass | ||
|
||
|
||
class TestDtype(base.BaseDtypeTests): | ||
pass | ||
|
||
|
||
class TestGetItem(base.BaseGetitemTests): | ||
pass | ||
|
||
|
||
class TestGroupBy(base.BaseGroupbyTests): | ||
pass | ||
|
||
|
||
class TestInterface(base.BaseInterfaceTests): | ||
pass | ||
|
||
|
||
class TestParsing(base.BaseParsingTests): | ||
pass | ||
|
||
|
||
class TestMethods(base.BaseMethodsTests): | ||
|
||
def test_combine_add(self, data_repeated): | ||
"""Addition of Genotypes isn't valid""" | ||
pass | ||
|
||
def test_searchsorted(self, data_for_sorting, as_series): | ||
# TODO: Can't pass until it's possible to define dtype as scalar (See Pandas GH #33825) | ||
pass | ||
|
||
def test_where_series(self, data, na_value, as_frame): | ||
# TODO: Can't pass until it's possible to define dtype as scalar (See Pandas GH #33825) | ||
pass | ||
|
||
|
||
class TestMissing(base.BaseMissingTests): | ||
pass | ||
|
||
|
||
# Skip ArithmeticOps since they aren't valid | ||
# class TestArithmeticOps(base.BaseArithmeticOpsTests): | ||
# pass | ||
|
||
|
||
class TestComparisonOps(base.BaseComparisonOpsTests): | ||
pass | ||
|
||
|
||
class TestOpsUtil(base.BaseOpsUtil): | ||
pass | ||
|
||
# No way to invert a genotype | ||
# class TestUnaryOps(base.BaseUnaryOpsTests): | ||
# pass | ||
|
||
|
||
class TestPrinting(base.BasePrintingTests): | ||
pass | ||
|
||
|
||
# No boolean equivalent for genotypes | ||
# class TestBooleanReduce(base.BaseBooleanReduceTests): | ||
# pass | ||
|
||
|
||
class TestNoReduce(base.BaseNoReduceTests): | ||
pass | ||
|
||
|
||
# No numeric equivalent for genotypes | ||
# class TestNumericReduce(base.BaseNumericReduceTests): | ||
# pass | ||
|
||
|
||
class TestReshaping(base.BaseReshapingTests): | ||
pass | ||
|
||
|
||
class TestSetitems(base.BaseSetitemTests): | ||
pass |
Oops, something went wrong.