check_topology: Check if the topology is valid.

View source: R/check_topology.R

check_topologyR Documentation

Check if the topology is valid.

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

check_topology(topology)

Arguments

topology

the topology as a tibble with the columns 'name' and 'topology', where the 'name' column hold all the proteins' names, and 'topology' contains the respective topologies as strings.

Value

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

Author(s)

Richèl J.C. Bilderbeek

Examples

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

pureseqtmr documentation built on April 6, 2023, 5:20 p.m.