is_topology_line: Is the line of text the topology, as used within a FASTA...

View source: R/is_topology_line.R

is_topology_lineR Documentation

Is the line of text the topology, as used within a FASTA filename?

Description

Is the line of text the topology, as used within a FASTA filename? In this context, a topology is a string of zeroes and ones, in which a one denotes that that amino acid is within the membrane.

Usage

is_topology_line(line)

Arguments

line

line of text from a FASTA filename

Value

TRUE if the line can be the text of a topology in a FASTA file.

Author(s)

Richèl J.C. Bilderbeek

Examples

# This is a valid topology
is_topology_line("000010101011")

# This is an invalid topology
is_topology_line("invalid")

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