collect_files_alignments: Collects the quality of the alignments of the files

Description Usage Arguments Value Examples

Description

Collects the quality of the alignments of the files

Usage

1
collect_files_alignments(filenames, show_progress = FALSE)

Arguments

filenames

names of the parameter files

show_progress

shows the progress if set to TRUE

Value

A dataframe with the columns 'filename', 'n_alignments_ok' (number of alignments that have a distance matrix with only non-zero and non-NA elements, except on the diagonal), 'n_alignments_zero' (number of alignments that have a distance matrix with zeroes next to the diagonal, indicating two identical DNA sequences in the alignment), and 'n_alignments_na' (number of alignments that have a distance matrix with NAs, indicating that two DNA sequences are two dissimilar to have their Jukes-Cantor distance measured)

Examples

1
2
3
4
5
6
7
8
9
  filenames <- find_paths(c("toy_example_3.RDa", "toy_example_4.RDa"))
  df <- collect_files_alignments(filenames)
  testit::assert(nrow(df) == 2)
  expected_names <- c(
    "filename",
    "n_alignments_ok",
    "n_alignments_zeroes",
    "n_alignments_na")
  testit::assert(all.equal(names(df), expected_names))

richelbilderbeek/wiritttea documentation built on May 27, 2019, 8:02 a.m.