is_tmhmm_result: Is the text a TMHMM result text?

Description Usage Arguments Details Value Examples

View source: R/is_tmhmm_result.R

Description

Is the text a TMHMM result text?

Usage

1
is_tmhmm_result(tmhmm_result)

Arguments

tmhmm_result

the results of a call to TMHMM, for example, c(">protein name", "ooooMMMMiiiii")

Details

A TMHMM result text, is similar to a regular FASTA file: it shows the protein names and the locations of the amino acids (instead of the amino acids).

Here is an example of a TMHMM result text:

>protein name oMMiii

In this example, protein name is the name of the protein. The protein consists out of 6 amino acids, of which the first is located outside the cell, the next two are in the membrane, and the last three are inside the (cytosol of) the cell. Note that this is a biologically impossible protein: it takes around 21 amino acids to span the lipid membane.

Value

TRUE if the text is a TMHMM result text

Examples

1
2
3
4
5
tmhmm_result <- c(
  ">protein name",
  "ooooMMMMiiiii"
)
is_tmhmm_result(tmhmm_result)

tmhmm documentation built on Nov. 18, 2020, 9:07 a.m.