Estimates the minimum tumor purity based on the lowest MAF among segments tagged as "Include".
Details
Only rows with Tag == "Include" are considered. If the minimum MAF is less than 0.4, the minimum purity is estimated as max((0.5 - min\_MAF) / 0.5 - 0.05, 0). Otherwise, returns 0.
Examples
df <- data.frame(MAF = c(0.3, 0.45, 0.5), Tag = c("Include", "Exclude", "Include"))
EstimateMinPurity(df)
#> [1] 0.35
