本文整理了Java中uk.ac.ebi.intact.model.Interaction.getParameters()
方法的一些代码示例,展示了Interaction.getParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interaction.getParameters()
方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Interaction
类名称:Interaction
方法名:getParameters
暂无
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
/**
* Retrieves the parameters from an interaction, initializing them if necessary.
* Do not set the initialized collection of parameters because parameters cannot be orphan
* @param interaction the interaction
* @return The returned confidences are ensured to be initialized
* @since 2.4.0
*/
public static Collection<InteractionParameter> ensureInitializedInteractionParameters(Interaction interaction) {
Collection<InteractionParameter> parameters;
if (IntactCore.isInitialized(interaction.getParameters())) {
parameters = interaction.getParameters();
} else {
parameters = IntactContext.getCurrentInstance().getDaoFactory().getInteractionParameterDao().getByInteractionAc(interaction.getAc());
}
return parameters;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
/**
* Retrieves the parameters from an interaction, initializing them if necessary.
* Do not set the initialized collection of parameters because parameters cannot be orphan
* @param interaction the interaction
* @return The returned confidences are ensured to be initialized
* @since 2.4.0
*/
public static Collection<InteractionParameter> ensureInitializedInteractionParameters(Interaction interaction) {
Collection<InteractionParameter> parameters;
if (IntactCore.isInitialized(interaction.getParameters())) {
parameters = interaction.getParameters();
} else {
parameters = IntactContext.getCurrentInstance().getDaoFactory().getInteractionParameterDao().getByInteractionAc(interaction.getAc());
}
return parameters;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
private void synchronizeInteraction( Interaction interaction, boolean synchronizeAnnotatedAttributes ) {
interaction.setCvInteractionType( synchronize( interaction.getCvInteractionType() ) );
interaction.setCvInteractorType( synchronize( interaction.getCvInteractorType() ) );
if (IntactCore.isInitializedAndDirty(interaction.getComponents())){
Collection<Component> components = synchronizeCollection(interaction.getComponents());
interaction.getComponents().clear();
interaction.getComponents().addAll(components);
}
interaction.setBioSource( synchronize( interaction.getBioSource() ) );
if (IntactCore.isInitializedAndDirty(interaction.getExperiments())){
Collection<Experiment> experiment = synchronizeCollection(interaction.getExperiments());
interaction.getExperiments().clear();
interaction.getExperiments().addAll(experiment);
}
// cannot call setConfidences in interaction because of orphan relationship limitation
if (IntactCore.isInitializedAndDirty(interaction.getConfidences())){
Collection<Confidence> confidences = synchronizeConfidences(interaction.getConfidences(), interaction);
interaction.getConfidences().clear();
interaction.getConfidences().addAll(confidences);
}
// cannot call setParameters in interaction because of orphan relationship limitation
if (IntactCore.isInitializedAndDirty(interaction.getParameters())){
Collection<InteractionParameter> interactionParameters = synchronizeInteractionParameters(interaction.getParameters(), interaction);
interaction.getParameters().clear();
interaction.getParameters().addAll(interactionParameters);
}
if (synchronizeAnnotatedAttributes){
synchronizeAnnotatedObjectCommons( interaction );
}
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
private void synchronizeInteraction( Interaction interaction, boolean synchronizeAnnotatedAttributes ) {
interaction.setCvInteractionType( synchronize( interaction.getCvInteractionType() ) );
interaction.setCvInteractorType( synchronize( interaction.getCvInteractorType() ) );
if (IntactCore.isInitializedAndDirty(interaction.getComponents())){
Collection<Component> components = synchronizeCollection(interaction.getComponents());
interaction.getComponents().clear();
interaction.getComponents().addAll(components);
}
interaction.setBioSource( synchronize( interaction.getBioSource() ) );
if (IntactCore.isInitializedAndDirty(interaction.getExperiments())){
Collection<Experiment> experiment = synchronizeCollection(interaction.getExperiments());
interaction.getExperiments().clear();
interaction.getExperiments().addAll(experiment);
}
// cannot call setConfidences in interaction because of orphan relationship limitation
if (IntactCore.isInitializedAndDirty(interaction.getConfidences())){
Collection<Confidence> confidences = synchronizeConfidences(interaction.getConfidences(), interaction);
interaction.getConfidences().clear();
interaction.getConfidences().addAll(confidences);
}
// cannot call setParameters in interaction because of orphan relationship limitation
if (IntactCore.isInitializedAndDirty(interaction.getParameters())){
Collection<InteractionParameter> interactionParameters = synchronizeInteractionParameters(interaction.getParameters(), interaction);
interaction.getParameters().clear();
interaction.getParameters().addAll(interactionParameters);
}
if (synchronizeAnnotatedAttributes){
synchronizeAnnotatedObjectCommons( interaction );
}
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
protected void copyInteraction( Interaction source, Interaction target ) {
copyProperty(source, "KD", target);
copyProperty(source, "crc", target);
copyProperty(source, "cvInteractionType", target);
copyCollection( source.getComponents(), target.getComponents() );
copyCollection( source.getExperiments(), target.getExperiments() );
copyCollection( source.getConfidences(), target.getConfidences() );
copyCollection( source.getParameters(), target.getParameters() );
copyInteractorCommons( source, target );
// we have ommited CRC on purpose
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
protected void copyInteraction( Interaction source, Interaction target ) {
copyProperty(source, "KD", target);
copyProperty(source, "crc", target);
copyProperty(source, "cvInteractionType", target);
copyCollection( source.getComponents(), target.getComponents() );
copyCollection( source.getExperiments(), target.getExperiments() );
copyCollection( source.getConfidences(), target.getConfidences() );
copyCollection( source.getParameters(), target.getParameters() );
copyInteractorCommons( source, target );
// we have ommited CRC on purpose
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
return IntactCore.isInitialized(((Interaction) parent).getComponents());
} else if (parent instanceof Interaction && child instanceof InteractionParameter) {
return IntactCore.isInitialized(((Interaction) parent).getParameters());
} else if (parent instanceof Component && child instanceof Feature) {
return IntactCore.isInitialized(((Component) parent).getBindingDomains());
代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psimitab-converters
if (!interaction.getParameters().isEmpty()){
for (Parameter param : interaction.getParameters()){
psidev.psi.mi.tab.model.Parameter paramField = parameterConverter.intactToMitab(param);
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
return IntactCore.isInitialized(((Interaction) parent).getComponents());
} else if (parent instanceof Interaction && child instanceof InteractionParameter) {
return IntactCore.isInitialized(((Interaction) parent).getParameters());
} else if (parent instanceof Component && child instanceof Feature) {
return IntactCore.isInitialized(((Component) parent).getBindingDomains());
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
protected void traverseInteraction(Interaction interaction, IntactVisitor ... visitors) {
if (interaction == null) return;
for (IntactVisitor visitor : visitors) {
visitor.visitInteraction(interaction);
}
// check if this element has been traversed already, to avoid cyclic recursion
if (recursionChecker.isAlreadyTraversed(interaction)) {
return;
}
traverse(interaction.getCvInteractionType(), visitors);
traverse(interaction.getExperiments(), visitors);
traverse(interaction.getComponents(), visitors);
traverse(interaction.getConfidences(), visitors);
traverse(interaction.getParameters(), visitors);
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
protected void traverseInteraction(Interaction interaction, IntactVisitor ... visitors) {
if (interaction == null) return;
for (IntactVisitor visitor : visitors) {
visitor.visitInteraction(interaction);
}
// check if this element has been traversed already, to avoid cyclic recursion
if (recursionChecker.isAlreadyTraversed(interaction)) {
return;
}
traverse(interaction.getCvInteractionType(), visitors);
traverse(interaction.getExperiments(), visitors);
traverse(interaction.getComponents(), visitors);
traverse(interaction.getConfidences(), visitors);
traverse(interaction.getParameters(), visitors);
}
代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters
components = intactObject.getComponents();
confidences = intactObject.getConfidences();
parameters = intactObject.getParameters();
annotations = intactObject.getAnnotations();
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
if (isCollectionClonable(interaction.getParameters())) {
Collection<InteractionParameter> parameters = IntactCore.ensureInitializedInteractionParameters(interaction);
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
if (isCollectionClonable(interaction.getParameters())) {
Collection<InteractionParameter> parameters = IntactCore.ensureInitializedInteractionParameters(interaction);
内容来源于网络,如有侵权,请联系作者删除!