recodeFASTA: Recode names of the AAStringSet object

Description Usage Arguments Value Author(s) See Also Examples

Description

Recode names of the AAStringSet object

Usage

1
recodeFASTA(fasta, mapping = NULL, i = NULL)

Arguments

fasta

AAStringSet object for which to generate new names or the interactionSubsetFASTA which to rename back to the original names

mapping

data.table, mapping table between new and original names

i

which element of the interactionSubsetFASTA to rename back to the original names

Value

list of the original AAStringSet object with new names and mapping table between new and original names

interactionSubsetFASTA object with original names as provided by mapping table

Author(s)

Vitalii Kleshchevnikov

See Also

downloadFasta_postproc

Examples

1
2
3
4
# from original to new
recoded.fasta = recodeFASTA(fasta)
# from new to original
subset_fasta = recodeFASTA(subset_fasta, recoded.fasta$names_mapping, i = 1)

vitkl/SLIMFinderR documentation built on May 3, 2019, 8:08 p.m.