Calculates result metrics from a blast results table
Source:R/metascope_blast.R
blast_result_metrics.Rd
This function calculates the best hit (genome with most blast read hits), uniqueness score (total number of genomes hit), species percentage hit (percentage of reads where MetaScope species also matched the blast hit species), genus percentage hit (percentage of reads where blast genus matched MetaScope aligned genus) and species contaminant score (percentage of reads that blasted to other species genomes) and genus contaminant score (percentage of reads that blasted to other genus genomes)
Arguments
- blast_results_table_path
path for blast results csv file
- accession_path
(character) Filepath to NCBI accessions SQL database. See
taxonomzr::prepareDatabase()
.- db
Currently accepts one of
c("ncbi", "silva", "other")
Default is"ncbi"
, appropriate for samples aligned against indices compiled from NCBI whole genome databases. Alternatively, usage of an alternate database (like Greengenes2) should be specified with"other"
.