Skip to contents

Extract a consensus ag host species from metadata This is pretty crude and should not be relied on for 100% accuracy

Usage

extract_consensus_ag_species(dat, parallel = FALSE)

Arguments

dat

an ncbi pathogen detection metadata table

parallel

boolean, should furrr be used to parallelize? need to set your future::plan()

Value

returns a tibble of 2 columns, 1st = target_acc, 2nd = ag_match

Examples

extract_consensus_ag_species(klebsiella_example_dat)
#> # A tibble: 200 × 2
#>    target_acc     ag_match
#>    <chr>          <chr>   
#>  1 PDT001211141.1 Human   
#>  2 PDT000434574.1 Human   
#>  3 PDT001009222.1 Human   
#>  4 PDT000414882.1 Human   
#>  5 PDT000431384.1 Human   
#>  6 PDT001020147.1 Human   
#>  7 PDT000875073.1 Human   
#>  8 PDT000172180.4 Human   
#>  9 PDT000852554.1 Human   
#> 10 PDT001025462.1 Human   
#> # ℹ 190 more rows