reverseOperon: Reverse the Direction of Operons in Genomic ContextSeq
Source:R/reverse_operons.R
reverseOperonSeq.Rd
This function processes a genomic context data frame to reverse the direction of operons based on specific patterns in the GenContext column. It handles elements represented by ">" and "<" and restructures the genomic context by flipping the direction of operons while preserving the relationships indicated by "=".
Arguments
- prot
data.frame A data frame containing at least a column named 'GenContext', which represents the genomic contexts that need to be reversed.
Value
data.frame The input data frame with the 'GenContext' column updated t o reflect the reversed operons.
Examples
if (FALSE) { # \dontrun{
# Example genomic context data frame
## Rework example data, does not pass R-CMD Check
prot <- data.frame(GenContext = c("A>B", "C<D", "E=F*G", "H>I"))
reversed_prot <- reverseOperonSeq(prot)
reversed_prot
} # }