Description Usage Arguments Value Methods (by class) See Also Examples
In cases where results from other algorithms are wished to be imported into the FindMyFriends framework, this method ensures that the proper formatting is done. The grouping can be defined as an integer vector with an element for each gene. The value of each element is then used as the gene group classifier. Alternatively groups can be defined by a list of integer vectors. Each element of the list defines a group and the content of each element refers to gene indexes.
1 2 3 4 5 6 7 | manualGrouping(object, groups)
## S4 method for signature 'pgVirtual,integer'
manualGrouping(object, groups)
## S4 method for signature 'pgVirtual,list'
manualGrouping(object, groups)
|
object |
A pgVirtual subclass |
groups |
Either a list or integer vector defining the grouping |
An object of the same class as 'object'.
object = pgVirtual,groups = integer
: manual grouping defined by integer vector
object = pgVirtual,groups = list
: manual grouping defined by list
Other grouping algorithms: cdhitGrouping
,
gpcGrouping
, graphGrouping
1 2 3 4 5 6 7 8 9 10 | testPG <- .loadPgExample()
# Load grouping data
groups <- system.file('extdata', 'examplePG', 'groupsWG.txt',
package='FindMyFriends'
)
groups <- scan(groups, what=integer(), quiet=TRUE)
# Do the grouping
testPG <- manualGrouping(testPG, groups)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.