check_protein_sequence: Check one protein sequence

View source: R/check_protein_sequence.R

check_protein_sequenceR Documentation

Check one protein sequence

Description

Will stop if the protein sequence is invalid, with a helpful error message.

Usage

check_protein_sequence(protein_sequence)

Arguments

protein_sequence

a protein sequence, with the amino acids as capitals, for example MEILCEDNTSLSSIPNSL. Use check_protein_sequence to check if a protein sequence is valid.

Details

A protein sequence is invalid if:

  • it has zero, two or more sequences

  • the sequence contains zero, 1 or 2 amino acids

  • the sequence contains characters that are not in the amino acid uppercase alphabet, that is ACDEFGHIKLMNPQRSTVWY

Value

nothing. Will stop if the protein sequence is invalid, with a helpful error message.

Examples

check_protein_sequence("FAMILYVW")

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