Skip to content

Commit 038a5fe

Browse files
committed
feat: remove NA values by default (replicates R functionality)
Signed-off-by: Josh Loecker <joshloecker@icloud.com>
1 parent 5480246 commit 038a5fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

main/como/rnaseq_gen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def zfpkm_transform(
361361
min_peak_height: float = 0.02,
362362
min_peak_distance: int = 1,
363363
update_every_percent: float = 0.1,
364+
remove_na: bool = True,
364365
) -> tuple[dict[str, _ZFPKMResult], DataFrame]:
365366
"""Perform zFPKM calculation/transformation.
366367
@@ -369,6 +370,7 @@ def zfpkm_transform(
369370
min_peak_height: Minimum height of peaks; passed on to `find_peaks` function.
370371
min_peak_distance: Minimum distance between peaks; passed on to `find_peaks` function.
371372
update_every_percent: Frequency of progress updates as a decimal between 0 and 1 (e.g., 0.1 for every 10%).
373+
remove_na: Whether to remove NaN & blank values from the input DataFrame before processing.
372374
373375
Returns:
374376
A tuple containing:

0 commit comments

Comments
 (0)