new_peptide: Internal constructor to create 'peptr_peptide' type

Description Usage

View source: R/peptide-class.R

Description

Asserts that sequence is a character vector, count and position are integer vectors, ptms a list, and has_position and has_ptms are flags (length 1 booleans).

Usage

1
2
3
4
5
6
new_peptide(
  sequence = character(),
  count = integer(),
  position = integer(),
  ptms = list()
)

jeanmanguy/peptr documentation built on Feb. 3, 2020, 12:04 a.m.