Skip to contents

Clean a reference database

The two functions most users need: run the whole workflow, then save the cleaned FASTA, taxonomy, list of removed sequences and summary.

clean_reference()
Clean a barcode reference database
write_results()
Save metacleaner results to files

Build reference and contaminant databases

Download sequences from NCBI GenBank inside R.

build_reference_db()
Build a reference (or contaminant) database from NCBI
download_ncbi_sequences()
Download sequences from NCBI GenBank

Taxonomy

Read taxonomy from a file, from NCBI web services, or from a local taxonomizr database.

read_taxonomy()
Read a taxonomy file
taxonomy_from_ncbi()
Look up taxonomy for accessions from NCBI
taxonomy_from_taxonomizr()
Look up taxonomy for accessions in a local taxonomizr database
taxonomic_ranks()
Taxonomic ranks used by metacleaner

Individual steps

The search and decision steps that clean_reference() runs, for advanced use.

search_sequences()
Search query sequences against a database of sequences
classify_queries()
Decide which query sequences to flag
blast_available()
Check whether BLAST+ is installed

Working with FASTA files

read_fasta()
Read sequences from a FASTA file
write_fasta()
Write sequences to a FASTA file
dereplicate()
Remove duplicate sequences
reverse_complement()
Reverse complement DNA sequences
extract_accession()
Extract accessions from FASTA header lines

About the package

metacleaner metacleaner-package
metacleaner: Automated Curation of DNA Barcode Reference Databases