rBlast_results: rBlast_results

View source: R/metascope_blast.R

rBlast_resultsR Documentation

rBlast_results

Description

rBlast_results

Usage

rBlast_results(
  results_table,
  bam_file,
  num_results = 10,
  num_reads_per_result = 100,
  hit_list = 10,
  num_threads = 1,
  db_path,
  out_path,
  sample_name = NULL,
  quiet = quiet,
  NCBI_key = NULL
)

Arguments

results_table

A data.frame of the Metascope results

bam_file

A sorted bam file and index file, loaded with Rsamtools::bamFile

num_results

A number indicating number of Metascope results to blast

num_reads_per_result

A number indicating number of reads to blast per result

hit_list

A number of how many blast results to fetch for each read

num_threads

Number of threads if multithreading

db_path

Blast database path

out_path

Output directory to save csv files, including base name of files

sample_name

Character string, sample name for output files.

quiet

Logical, whether to print out more informative messages. Default is FALSE.

NCBI_key

(character) NCBI Entrez API key. optional. See taxize::use_entrez(). Due to the high number of requests made to NCBI, this function will be less prone to errors if you obtain an NCBI key.

Value

Creates and exports num_results number of csv files with blast results from local blast


compbiomed/MetaScope documentation built on April 1, 2024, 5:35 p.m.