dedup_by_callrate: When a dataframe with characteristics from same inividuals...

Description Usage Arguments Value Examples

View source: R/deduplicate_by_call_rate.R

Description

When a dataframe with characteristics from same inividuals (each replicate one row), for each individual, select the row with least ratio of NAs, leave each individual only one row.

Usage

1

Arguments

df

a dataframe with sample "ID" as its first column

Value

a data frame with 'ID' column de-duplicated by using ID of least NA rate

Examples

1
2
3
4
5
6
7
df example:
               ID purity ploidy
 TCGA-OR-A5J1-01A    0.9      2
 TCGA-OR-A5J2-01A   0.89    1.3
 TCGA-OR-A5J3-01A   0.93   1.27
 TCGA-OR-A5J4-01A   0.87    2.6
 TCGA-OR-A5J5-01A   0.93   2.79

huanglu2018/tSTR documentation built on Feb. 25, 2022, 5:39 a.m.