Skip to contents

Removes duplicates and optionally twins, subsets ids

Usage

prep_human_profiles(
  human_profiles,
  human_ids = NULL,
  rm_twins = TRUE,
  rm_markers = c("AMEL"),
  check_inputs = TRUE
)

Arguments

human_profiles

Tibble or data frame with alleles for all humans in reference database including three columns: SampleName, Marker, Allele.

human_ids

Vector of human ids from the SampleName column in human_profiles for which to compute log10_lrs. If NULL, all ids in the input dataframe will be used. Default: NULL

rm_twins

A boolean indicating whether or not to remove likely twins (identical STR profiles) from the human database prior to identifying matches. Default: TRUE

rm_markers

A vector indicating what markers should be removed prior to calculating log10LRs. NULL to include all markers. By default, for the bistro function AMEL is removed as it is not standard to include it in LR calculations.

check_inputs

A boolean indicating whether or not to check the inputs to the function. Default: TRUE

Value

Dataframe with preprocessed human profiles

Examples

prep_human_profiles(human_profiles)
#> # A tibble: 91 × 3
#>    SampleName                       Marker   Allele
#>    <chr>                            <chr>    <chr> 
#>  1 00-JP0001-14_20142342311_NO-3241 D10S1248 12    
#>  2 00-JP0001-14_20142342311_NO-3241 D10S1248 13    
#>  3 00-JP0001-14_20142342311_NO-3241 D12S391  17    
#>  4 00-JP0001-14_20142342311_NO-3241 D12S391  18    
#>  5 00-JP0001-14_20142342311_NO-3241 D16S539  10    
#>  6 00-JP0001-14_20142342311_NO-3241 D16S539  11    
#>  7 00-JP0001-14_20142342311_NO-3241 D18S51   13    
#>  8 00-JP0001-14_20142342311_NO-3241 D18S51   17    
#>  9 00-JP0001-14_20142342311_NO-3241 D19S433  13    
#> 10 00-JP0001-14_20142342311_NO-3241 D19S433  14    
#> # ℹ 81 more rows