countSeqDiffs: Counting protein sequence differences

View source: R/countSeqDiffs.R

countSeqDiffsR Documentation

Counting protein sequence differences

Description

countSeqDiffs counts the number of protein differences among two sequences of proteins within the same "ProteinSeq" object.

Usage

countSeqDiffs(x, taxon1, taxon2)

Arguments

x

A "ProteinSeq" object containing proteins from taxon1 and taxon2.

taxon1

A character giving the common name of the first species that will be compared. Must be a name present in x.

taxon2

A character giving the common name of the second species that will be compared. Must be a name present in x.

Value

A integer giving the number of protein differences between taxon1 and taxon2.

Author(s)

Matheus Januario, Dan Rabosky, Jennifer Auler

Examples

countSeqDiffs(cytOxidase, "human", "chimpanzee")

countSeqDiffs(cytOxidase, "human", "cnidaria")

countSeqDiffs(cytOxidase, "chimpanzee", "cnidaria")


evolved documentation built on April 3, 2025, 9:23 p.m.