| main {Plasmidprofiler} | R Documentation |
Main: Run everything
Description
Run all the interim functions to produce outputs. Can be run in order individually if desired.
-
read_blastImport the blast file, add column names -
blast_parserParse imported file -
amr_positivesDetect AMR positive plasmids -
read_srst2Import SRST2 file -
combine_resultsCombine SRST2 and Blast -
zetner_scoreAdd Sureness value -
amr_presenceAdd detected AMR to report -
subsamplerApply filters to report -
order_reportArrange report -
save_filesSave JPG and CSV -
create_plotlyCreates plot -
save_filesSave HTML plot
Usage
main(blast.file, srst2.file, coverage.filter = NA, sureness.filter = NA,
length.filter = NA, combine.inc = NA, plotly.user, plotly.api,
post.plotly = NA, anonymize = NA, main.title = "Plasmid Profiles")
Arguments
blast.file |
Either system location of blast results (tsv) or dataframe |
srst2.file |
Either system location of srst2 results (tsv) or dataframe |
coverage.filter |
Filters results below percent read coverage specified (eg. 80) |
sureness.filter |
Filters results below sureness specified (eg. 0.75) |
length.filter |
Filters plasmid sequences shorter than length specified (eg. 10000) |
combine.inc |
Flag to combine incompatibility sub-groups into their main type (set to 1) |
plotly.user |
Enter your plotly info to upload to (Plotly) |
plotly.api |
Enter your plotly info to upload to (Plotly) |
post.plotly |
Flag to post to (Plotly) |
anonymize |
Flag to post to anonymize plasmids and samples (set to 1) |
main.title |
A title for the figure |
Value
Saves output files in working directory
Examples
main(blastdata,
srst2data,
coverage.filter=NA,
sureness.filter=0.75,
length.filter=10000,
main.title="Example Results")