Several example files are shipped with the concatipede package. This function facilitates the access to those files.

concatipede_example(example_file = NULL)

Arguments

example_file

Basename of the target example file. If NULL (the default), the basenames of the available files are listed.

Value

The full path to access the example file, or a list of available example files if no example_file argument was provided.

Details

COI_Macrobiotidae.fas

Example fasta file.

ITS2_Macrobiotidae.fas

Example fasta file.

LSU_Macrobiotidae.fas

Example fasta file.

SSU_Macrobiotidae.fas

Example fasta file.

sequences-test-matching.xlsx

This is an Excel file (extension .xlsx) typically used to test or demonstrate the automatic matching capabilities of the concatipede package. This file represents the Excel template that could be produced by concatipede_prepare after detecting the fasta files present in a working directory.

Macrobiotidae_seqnames.xlsx

This is an Excel file (extension .xlsx) that contains the correspondence table that can be used to concatenate the sequences contained in the example fasta files COI_Macrobiotidae.fas, ITS2_Macrobiotidae.fas, LSU_Macrobiotidae.fas, and SSU_Macrobiotidae.fas.

Examples

concatipede_example()
#> [1] "COI_Macrobiotidae.fas"        "ITS2_Macrobiotidae.fas"      
#> [3] "LSU_Macrobiotidae.fas"        "Macrobiotidae_seqnames.xlsx" 
#> [5] "SSU_Macrobiotidae.fas"        "sequences-test-matching.xlsx"
example <- concatipede_example("sequences-test-matching.xlsx")
if (requireNamespace("readxl")) {
  seqs <- readxl::read_xlsx(example)
  seqs
}
#> # A tibble: 330 × 5
#>     name al18S_aligned_MAFFT… al28S_aligned_M… COI_aligned_Mus… ITS2_aligned_MA…
#>    <dbl> <chr>                <chr>            <chr>            <chr>           
#>  1     0 DQ839601_1_Macrobio… FJ435751_Macrob… AY598771_Dactyl… GQ403674_Parama…
#>  2     0 DQ839605_Paraacrobi… FJ435752_Macrob… AY598772_Murray… GQ403675_Parama…
#>  3     0 EU038078_Paramacrob… FJ435753_Macrob… AY598773_Macrob… GQ403676_Parama…
#>  4     0 EU038080_Paramacrob… FJ435754_Macrob… AY598774_Macrob… GQ403678_Parama…
#>  5     0 EU038081_Paramacrob… FJ435755_Macrob… AY598775_Macrob… GQ403679_Parama…
#>  6     0 EU266926_Macrobiotu… FJ435756_Parama… AY598776_Macrob… GQ403680_Macrob…
#>  7     0 EU266928_Mesobiotus… FJ435757_Parama… AY598777_Macrob… HM150647_Macrob…
#>  8     0 EU266932_Minibiotus… FJ435758_Minibi… EU244597_Parama… KT935500_Macrob…
#>  9     0 EU266933_Minibiotus… FJ435759_Minibi… EU244598_Parama… KX129795_Mesobi…
#> 10     0 EU266934_Minibiotus… FJ435760_Minibi… EU244599_Parama… KX810010_Macrob…
#> # … with 320 more rows