pywombat 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pywombat/cli.py +3 -0
- {pywombat-1.0.1.dist-info → pywombat-1.0.2.dist-info}/METADATA +1 -1
- pywombat-1.0.2.dist-info/RECORD +6 -0
- pywombat-1.0.1.dist-info/RECORD +0 -6
- {pywombat-1.0.1.dist-info → pywombat-1.0.2.dist-info}/WHEEL +0 -0
- {pywombat-1.0.1.dist-info → pywombat-1.0.2.dist-info}/entry_points.txt +0 -0
pywombat/cli.py
CHANGED
|
@@ -1198,15 +1198,18 @@ def read_pedigree(pedigree_path: Path) -> pl.DataFrame:
|
|
|
1198
1198
|
pedigree_df = df.select(select_cols)
|
|
1199
1199
|
|
|
1200
1200
|
# Replace 0 and -9 with null (indicating no parent)
|
|
1201
|
+
# Explicit cast to Utf8 ensures type is preserved even when all values become null
|
|
1201
1202
|
pedigree_df = pedigree_df.with_columns(
|
|
1202
1203
|
[
|
|
1203
1204
|
pl.when(pl.col("father_id").cast(pl.Utf8).is_in(["0", "-9"]))
|
|
1204
1205
|
.then(None)
|
|
1205
1206
|
.otherwise(pl.col("father_id"))
|
|
1207
|
+
.cast(pl.Utf8)
|
|
1206
1208
|
.alias("father_id"),
|
|
1207
1209
|
pl.when(pl.col("mother_id").cast(pl.Utf8).is_in(["0", "-9"]))
|
|
1208
1210
|
.then(None)
|
|
1209
1211
|
.otherwise(pl.col("mother_id"))
|
|
1212
|
+
.cast(pl.Utf8)
|
|
1210
1213
|
.alias("mother_id"),
|
|
1211
1214
|
]
|
|
1212
1215
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pywombat
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: A CLI tool for processing and filtering bcftools tabulated TSV files with pedigree support
|
|
5
5
|
Project-URL: Homepage, https://github.com/bourgeron-lab/pywombat
|
|
6
6
|
Project-URL: Repository, https://github.com/bourgeron-lab/pywombat
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
pywombat/__init__.py,sha256=iIPN9vJtsIUhl_DiKNnknxCamLinfayodLLFK8y-aJg,54
|
|
2
|
+
pywombat/cli.py,sha256=76pVpYYyl9rCm6TCq86j7xAqEC9pOvjiWCX9MmrBB_o,74994
|
|
3
|
+
pywombat-1.0.2.dist-info/METADATA,sha256=slcagFwSvA99GVzKLRZggFPy5dkLEh_09O3dIB8Hfr4,17168
|
|
4
|
+
pywombat-1.0.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
5
|
+
pywombat-1.0.2.dist-info/entry_points.txt,sha256=Vt7U2ypbiEgCBlEV71ZPk287H5_HKmPBT4iBu6duEcE,44
|
|
6
|
+
pywombat-1.0.2.dist-info/RECORD,,
|
pywombat-1.0.1.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
pywombat/__init__.py,sha256=iIPN9vJtsIUhl_DiKNnknxCamLinfayodLLFK8y-aJg,54
|
|
2
|
-
pywombat/cli.py,sha256=eaChYSTxEc3lXxVRKe3X8bRGKmgxUE0Vuy9Cr5wPTi4,74853
|
|
3
|
-
pywombat-1.0.1.dist-info/METADATA,sha256=G0xdJEOwfB-J1ZOy6qphijM4JBygZppMeRs0J8mzSj0,17168
|
|
4
|
-
pywombat-1.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
5
|
-
pywombat-1.0.1.dist-info/entry_points.txt,sha256=Vt7U2ypbiEgCBlEV71ZPk287H5_HKmPBT4iBu6duEcE,44
|
|
6
|
-
pywombat-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|