Skip to content

Commit

Permalink
Update release notes and version. Skip VCF tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrm5100 committed Oct 19, 2020
1 parent 061725e commit b07ee0d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
22 changes: 21 additions & 1 deletion docs/release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,33 @@
Release History
===============

v0.3.0
------

Enhancements
^^^^^^^^^^^^
* Four encoding methods added to `GenotypeArray`: `encode_additive`, `encode_recessive`, `encode_dominant`,
and `encode_codominant`
* A `genotype` Series accessor has been added. Thus far it includes the encoding methods.
* Variants now track which allele is considered the reference allele

Tests
^^^^^
* I/O Tests are added for Plink and VCF. Note that VCF requires htslib, so tests are skipped on Windows
* Encoding tests added

Docs
^^^^
Improved.

v0.2.0 (2020-10-09)
-------------------

Tests
^^^^^
Pandas ExtensionArray tests are passing.
Note: a few can't pass until it's possible to define dtype as scalar (See `Pandas #33825 <https://www.hall-lab.org>`_)
Note: a few can't pass until it's possible to define dtype as scalar
(See `Pandas #33825 <https://github.com/pandas-dev/pandas/issues/33825>`_)

Docs
^^^^
Expand Down
2 changes: 1 addition & 1 deletion pandas_genomics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from .accessors import GenotypeAccessor

# Simple version tracking for now until Poetry has a solution
__version__ = "v0.2.0"
__version__ = "v0.3.0"

__all__ = [__version__, GenotypeAccessor, arrays, io, scalars]
9 changes: 7 additions & 2 deletions tests/io/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import sys
from pathlib import Path

import cyvcf2
import pytest

from pandas_genomics import io

DATA_DIR = Path(__file__).parent.parent / "data"
VCF_DIR = Path(cyvcf2.__file__).parent / "tests"


@pytest.mark.slow
Expand Down Expand Up @@ -41,6 +40,12 @@ def plink_small_20_swap():

@pytest.fixture
def vcf_test():
# Skip on Windows
if sys.platform.startswith("win"):
pytest.skip("VCF IO requires HTSLIB, which isn't easy to install on Windows")
# Run otherwise
import cyvcf2
VCF_DIR = Path(cyvcf2.__file__).parent / "tests"
vcf_filename = VCF_DIR / "test.vcf.gz"
result = io.from_vcf(vcf_filename)
return result

0 comments on commit b07ee0d

Please sign in to comment.