check_protein_sequences: Check one or more protein sequences

View source: R/check_protein_sequences.R

check_protein_sequencesR Documentation

Check one or more protein sequences

Description

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

Usage

check_protein_sequences(protein_sequences)

Arguments

protein_sequences

one ore more protein sequence, each sequence with the amino acids as capitals, for example MEILCEDNTSLSSIPNSL

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 at the first invalid protein sequence, with a helpful error message.

Examples

check_protein_sequences(c("FAMILYVW", "FAMILYVW"))

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