public class ExtractSubNetwork extends ModifierNetwork
ModifierNetwork, the network is not copied but the indices are redirected.
The subnet to be extracted has to be given by BitVectors containing a 1 for an index to
be in the extracted subnet.
This class can be used e.g. to extract only the autocatalytic set of an evolved network.
| Constructor and Description |
|---|
ExtractSubNetwork(Network originalNet,
cern.colt.bitvector.BitVector reactions,
cern.colt.bitvector.BitVector species)
Extracts a given subnet from a network.
|
| Modifier and Type | Method and Description |
|---|---|
AmountManager |
getAmountManager()
Gets the
AmountManager for the extracted subnet. |
AnnotationManager |
getAnnotationManager()
Gets an
AnnotationManager for the redirected index space. |
long |
getInitialAmount(int species)
Gets the initial amount of the specified molecule species.
|
int |
getNumReactions()
Gets the number of reactions in the extracted subnet.
|
int |
getNumSpecies()
Gets the number of species in the extracted subnet.
|
int[] |
getProducts(int reaction)
Gets the products of a reaction.
|
PropensityCalculator |
getPropensityCalculator()
Gets the
PropensityCalculator for the extracted subnet. |
int[] |
getReactants(int reaction)
Gets the reactants of a reaction.
|
String |
getReactionName(int index)
Gets a string representation of the reaction
|
int |
getSpeciesByName(String name)
Gets the index of the species by its name.
|
String |
getSpeciesName(int index)
Gets the name of the species with given index.
|
void |
setInitialAmount(int species,
long value)
Sets the initial amount of the specified molecule species.
|
getName, getOriginalNetwork, getParentNetworkpublic ExtractSubNetwork(Network originalNet, cern.colt.bitvector.BitVector reactions, cern.colt.bitvector.BitVector species)
BitVectors
containing a 1 for each index which has to be in the extracted subnet.originalNet - network containing the subnetreactions - reactions of the subnetspecies - species of the subnetpublic AnnotationManager getAnnotationManager()
AnnotationManager for the redirected index space.getAnnotationManager in interface NetworkgetAnnotationManager in class ModifierNetworkAnnotationManager objectpublic int getNumReactions()
getNumReactions in interface NetworkgetNumReactions in class ModifierNetworkpublic int getNumSpecies()
getNumSpecies in interface NetworkgetNumSpecies in class ModifierNetworkpublic int[] getProducts(int reaction)
getProducts in interface NetworkgetProducts in class ModifierNetworkreaction - the index of the reactionpublic int[] getReactants(int reaction)
getReactants in interface NetworkgetReactants in class ModifierNetworkreaction - the index of the reactionpublic long getInitialAmount(int species)
NetworkgetInitialAmount in interface NetworkgetInitialAmount in class ModifierNetworkspecies - index of the speciespublic void setInitialAmount(int species,
long value)
NetworksetInitialAmount in interface NetworksetInitialAmount in class ModifierNetworkspecies - index of the speciesvalue - initial amount of the speciespublic String getSpeciesName(int index)
getSpeciesName in interface NetworkgetSpeciesName in class ModifierNetworkindex - index of the speciespublic int getSpeciesByName(String name)
getSpeciesByName in interface NetworkgetSpeciesByName in class ModifierNetworkname - name of the speciespublic AmountManager getAmountManager()
AmountManager for the extracted subnet.getAmountManager in interface NetworkgetAmountManager in class ModifierNetworkpublic PropensityCalculator getPropensityCalculator()
PropensityCalculator for the extracted subnet.getPropensityCalculator in interface NetworkgetPropensityCalculator in class ModifierNetworkpublic String getReactionName(int index)
getReactionName in interface NetworkgetReactionName in class ModifierNetworkindex - index of the reactionCopyright © 2007–2021. All rights reserved.