Description Usage Arguments Value Methods (by class) Note Examples
This method makes it possible to safely remove genes from a pangenome using a variaty of selection mechanisms depending on the supplied parameters. The name parameter refers to the gene name, organism refers to either organism name or index, group refers to either gene group name or index and ind refers to the gene index. See examples for details of the different possibilities.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | removeGene(object, name, organism, group, ind, ...)
## S4 method for signature 'pgInMem,missing,missing,missing,numeric'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,character,missing,missing,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,character,character,missing,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,character,numeric,missing,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,character,missing,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,numeric,missing,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,character,missing,numeric'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,numeric,missing,numeric'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,missing,character,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,missing,numeric,missing'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,missing,character,numeric'
removeGene(object,
name, organism, group, ind)
## S4 method for signature 'pgVirtual,missing,missing,numeric,numeric'
removeGene(object,
name, organism, group, ind)
|
object |
A pgVirtual subclass |
name |
A character vector of names of genes to remove |
organism |
Either an integer or character vector of orgnanisms to remove genes from. If neither name nor ind is given all genes in the organisms are removed. |
group |
Either an integer or character vector of gene groups to remove genes from. If ind is not given all genes in the groups are removed. |
ind |
Indexes of the selections to remove. If both name, organism and group is not given, it indexes into the raw gene index, otherwise it indexes into the element defined by organism or group. |
... |
parameters passed on (currently ignored). |
An object of the same class as object without the genes that should be removed.
object = pgInMem,name = missing,organism = missing,group = missing,ind = numeric
: Gene removal base function for pgInMem subclasses
object = pgVirtual,name = character,organism = missing,group = missing,ind = missing
: Remove gene based on gene name
object = pgVirtual,name = character,organism = character,group = missing,ind = missing
: Remove gene based on gene and organism name
object = pgVirtual,name = character,organism = numeric,group = missing,ind = missing
: Remove gene based on gene name and organism index
object = pgVirtual,name = missing,organism = character,group = missing,ind = missing
: Remove gene based on organism name
object = pgVirtual,name = missing,organism = numeric,group = missing,ind = missing
: Remove gene based on organism index
object = pgVirtual,name = missing,organism = character,group = missing,ind = numeric
: Remove gene based on organism name and gene index
object = pgVirtual,name = missing,organism = numeric,group = missing,ind = numeric
: Remove gene based on organism and gene index
object = pgVirtual,name = missing,organism = missing,group = character,ind = missing
: Remove gene based on gene group name
object = pgVirtual,name = missing,organism = missing,group = numeric,ind = missing
: Remove gene based on gene group index
object = pgVirtual,name = missing,organism = missing,group = character,ind = numeric
: Remove gene based on gene group name and gene index
object = pgVirtual,name = missing,organism = missing,group = numeric,ind = numeric
: Remove gene based on gene group and gene index
Required for subclasses of pgVirtual in order to extend the class system of FindMyFriends
1 2 3 4 5 6 7 8 9 10 11 | testPG <- .loadPgExample(withGroups=TRUE)
nGenes(testPG)
# Remove gene number 6
removeGene(testPG, ind=5)
# Remove all genes from organism 'AE017244'
removeGene(testPG, organism='AE017244')
# Remove first gene in gene group 10
removeGene(testPG, group=10, ind=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.