checkSeqs: Internal function used to check the input foreground and...

Description Usage Arguments Value Author(s)

Description

Internal function used to check the input foreground and background sequence vectors

Usage

1
2
checkSeqs(fg.seqs, bg.seqs, option = c("extend", "trim", "error")[1],
  center = "STY")

Arguments

fg.seqs

a character vector of foreground sequences

bg.seqs

a character vector of background sequences

option

what should be done when some sequences in fg.seqs do not exist in the bg.seqs. acceptable options are "extend" - extend the background list; "trim" - trim the foreground list, i.e. remove the ones in foreground but not in background; "error" - stop and returns error message.

center

the amino acid centered at the sequences, sequences with other center AA would be removed from the list. To disable this function, set center = NULL.

Value

a list has two components: fg.seqs and bg.seqs

Author(s)

Chen Meng


mengchen18/PTMotif documentation built on May 29, 2019, 6:53 p.m.