getRep {FindMyFriends} | R Documentation |
This method returns a representative sequence for each of the gene groups defined in the pangenome. Currently the methods defined for selecting sequences are 'random', 'shortest', and 'longest. In case of tie for the two latter the first occurence gets returned. Consensus sequence might be added at a latter stage.
getRep(object, method) ## S4 method for signature 'pgVirtual,character' getRep(object, method)
object |
A pgVirtual subclass |
method |
The method to use to get a representative. Either 'random', 'shortest' or 'longest'. |
An XStringSet
object = pgVirtual,method = character
: Get a representative sequence for each gene group for
pgVirtual subclasses
testPG <- .loadPgExample(withGroups=TRUE) # Get a random sequence from each group getRep(testPG, 'random')