Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jrm5100 committed Mar 31, 2021
1 parent 269159c commit dc9c718
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ print(gt)
A/C
```

The `GenotypeArray` stores genotypes with an associated variant and has useful methods:
The `GenotypeArray` stores genotypes with an associated variant and has useful methods and properties:

```python
from pandas_genomics.scalars import Variant
Expand Down Expand Up @@ -98,11 +98,11 @@ print(gt_array.encode_dominant())
Length: 3, dtype: UInt8
```

There is also a SeriesAccessor named `genotype`
There are also `genomics` accessors for Series and DataFrame

```python
import pandas as pd
print(pd.Series(gt_array).genotype.encode_codominant())
print(pd.Series(gt_array).genomics.encode_codominant())
```

```
Expand All @@ -111,4 +111,4 @@ print(pd.Series(gt_array).genotype.encode_codominant())
2 Ref
Name: rs12462_C, dtype: category
Categories (3, object): ['Ref' < 'Het' < 'Hom']
```
```

0 comments on commit dc9c718

Please sign in to comment.