check_topology: Check if the topology is valid.

Description Usage Arguments Value Author(s) Examples

View source: R/check_topology.R

Description

Check if the argument is of the same type as a predicted topology, as can be created with predict_topology. Will stop if not.

Usage

1
check_topology(topology)

Arguments

topology

the topology as a tibble as returned by predict_topology

Value

Nothing. Will stop with a helpful error message if the topology is invalid.

Author(s)

Richèl J.C. Bilderbeek

Examples

1
2
3
4
5
if (is_pureseqtm_installed()) {
  fasta_filename <- get_example_filename("1bhaA.fasta")
  topology <- predict_topology(fasta_filename)
  check_topology(topology)
}

pureseqtmr documentation built on July 30, 2020, 5:13 p.m.