ped ¶
Read and write ped file.
from_lazyframe ¶
from_lazyframe(lf: LazyFrame, output_path: Path) -> None
Write pedigree polars.LazyFrame in ped format.
Warning: This function performs polars.LazyFrame.collect before write csv, this can have a significant impact on memory usage
Parameters:
-
lf
(LazyFrame
) –LazyFrame contains pedigree information.
-
output_path
(Path
) –Path where write pedigree information.
Returns:
-
None
–None
Source code in src/variantplaner/io/ped.py
50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
into_lazyframe ¶
into_lazyframe(input_path: Path) -> LazyFrame
Read a pedigree file in polars.LazyFrame.
Parameters:
-
input_path
(Path
) –Path to pedigree file.
Returns:
-
LazyFrame
–A polars.LazyFrame that contains ped information ('family_id', 'personal_id', 'father_id', 'mother_id', 'sex', 'affected')
Source code in src/variantplaner/io/ped.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|