Interface MitabColumnFeeder<T extends BinaryInteraction,P extends Participant>
-
- All Known Implementing Classes:
AbstractMitabColumnFeeder
,DefaultExtendedMitabColumnFeeder
,DefaultMitabColumnFeeder
,ExtendedMitabInteractionEvidenceFeeder
,ExtendedMitabModelledInteractionFeeder
,MitabInteractionEvidenceFeeder
,MitabModelledInteractionFeeder
public interface MitabColumnFeeder<T extends BinaryInteraction,P extends Participant>
A MITAB 2.5 column feeder will write the content of MITAB 2.5 columns- Since:
20/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
escapeAndWriteString(String stringToEscape)
This method replaces line breaks and tab characters with a space.void
writeAlias(P participant, Alias alias)
This methods write the dbsource, alias name and alias type of an alias.void
writeAlias(Alias alias)
This methods write the dbsource, alias name and alias type of an aliasvoid
writeAliases(P participant)
This method writes all the aliases of the participantvoid
writeAlternativeIdentifiers(P participant)
This method writes all the remaining identifiers (ignore the first identifier) of the participantvoid
writeAnnotation(Annotation annotation)
Writes an annotationvoid
writeBiologicalRole(P participant)
Writes the biological role of a participantvoid
writeChecksum(Checksum checksum)
Writes the checksumvoid
writeComplexExpansion(T binary)
Writes the complex expansion of a binary interactionvoid
writeConfidence(Confidence conf)
This method will write a confidence with a text if text is not nullvoid
writeCvTerm(CvTerm cv)
Write the CvTerm.void
writeDate(Date date)
Writes created date of an interactionvoid
writeExperimentalRole(P participant)
Writes the experimentsl role of a participant evidencevoid
writeFeature(Feature feature)
Writes a featurevoid
writeFirstAuthor(T interaction)
Writes the first author of a publication in an experimentvoid
writeHostOrganism(T interaction)
Writes experiment host organismvoid
writeIdentifier(Xref identifier)
This methods write the database, id and version of an identifiervoid
writeInteractionAnnotations(T interaction)
Writes interaction annotationsvoid
writeInteractionCausalRegulatoryMechanism(T interaction)
Writes interaction checksumvoid
writeInteractionCausalStatement(T interaction)
Writes interaction checksumvoid
writeInteractionChecksums(T interaction)
Writes interaction checksumvoid
writeInteractionConfidences(T interaction)
Writes the confidences of an interaction evidencevoid
writeInteractionDetectionMethod(T interaction)
Writes the interaction detection method of the experiment.void
writeInteractionIdentifiers(T interaction)
Writes the interaction identifiers of an interaction.void
writeInteractionParameters(T interaction)
Writes interaction parametersvoid
writeInteractionType(T interaction)
Writes the interaction type of an interactionvoid
writeInteractionXrefs(T interaction)
Write interaction Xref rvoid
writeInteractorOrganism(P participant)
Writes the organism of a participant.void
writeInteractorType(P participant)
Writes the interactor type of a participantvoid
writeNegativeProperty(T interaction)
Writes interaction negative property if truevoid
writeOrganism(Organism organism)
Write an organism.void
writeParameter(Parameter parameter)
Writes the parametervoid
writeParticipantAnnotations(P participant)
Writes participant annotationsvoid
writeParticipantBiologicalEffect(P participant)
Writes participant biological effectvoid
writeParticipantChecksums(P participant)
Writes participant checksumvoid
writeParticipantFeatures(P participant)
Writes participant featuresvoid
writeParticipantIdentificationMethod(P participant)
Writes participant identification method(s)void
writeParticipantStoichiometry(P participant)
Writes participant stoichiometryvoid
writeParticipantXrefs(P participant)
Write Xref of participant and interactorvoid
writePublicationIdentifiers(T interaction)
Writes the publication identifiers of a publication in an experiment.void
writeSource(T interaction)
Writes the interaction source from the modelled interactionvoid
writeUniqueIdentifier(P participant)
This method will write the unique identifier of a participantvoid
writeXref(Xref xref)
This methods write the database, id, version and qualifier of an xref
-
-
-
Method Detail
-
writeUniqueIdentifier
void writeUniqueIdentifier(P participant) throws IOException
This method will write the unique identifier of a participant- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeAlternativeIdentifiers
void writeAlternativeIdentifiers(P participant) throws IOException
This method writes all the remaining identifiers (ignore the first identifier) of the participant- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeAliases
void writeAliases(P participant) throws IOException
This method writes all the aliases of the participant- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractionDetectionMethod
void writeInteractionDetectionMethod(T interaction) throws IOException
Writes the interaction detection method of the experiment.- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeFirstAuthor
void writeFirstAuthor(T interaction) throws IOException
Writes the first author of a publication in an experiment- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writePublicationIdentifiers
void writePublicationIdentifiers(T interaction) throws IOException
Writes the publication identifiers of a publication in an experiment. This method will write the first publication identifier (pubmed before doi) and also the IMEx id- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeInteractorOrganism
void writeInteractorOrganism(P participant) throws IOException
Writes the organism of a participant. Empty column if the organism is not provided- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractionType
void writeInteractionType(T interaction) throws IOException
Writes the interaction type of an interaction- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeSource
void writeSource(T interaction) throws IOException
Writes the interaction source from the modelled interaction- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeInteractionIdentifiers
void writeInteractionIdentifiers(T interaction) throws IOException
Writes the interaction identifiers of an interaction. This method will write the first interaction identifier and also the IMEx id- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeInteractionConfidences
void writeInteractionConfidences(T interaction) throws IOException
Writes the confidences of an interaction evidence- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeConfidence
void writeConfidence(Confidence conf) throws IOException
This method will write a confidence with a text if text is not null- Parameters:
conf
- aConfidence
object.- Throws:
IOException
- if any.
-
writeOrganism
void writeOrganism(Organism organism) throws IOException
Write an organism. Will duplicate taxid if needs to provide both common name and scientific name- Parameters:
organism
- aOrganism
object.- Throws:
IOException
- if any.
-
writeCvTerm
void writeCvTerm(CvTerm cv) throws IOException
Write the CvTerm. If it is null, it writes an empty column (-)- Parameters:
cv
- aCvTerm
object.- Throws:
IOException
- if any.
-
writeAlias
void writeAlias(Alias alias) throws IOException
This methods write the dbsource, alias name and alias type of an alias- Parameters:
alias
- aAlias
object.- Throws:
IOException
- if any.
-
writeAlias
void writeAlias(P participant, Alias alias) throws IOException
This methods write the dbsource, alias name and alias type of an alias. It can use the modelled participant to find dbsource- Parameters:
alias
- aAlias
object.participant
- a P object.- Throws:
IOException
- if any.
-
writeIdentifier
void writeIdentifier(Xref identifier) throws IOException
This methods write the database, id and version of an identifier- Parameters:
identifier
- aXref
object.- Throws:
IOException
- if any.
-
escapeAndWriteString
void escapeAndWriteString(String stringToEscape) throws IOException
This method replaces line breaks and tab characters with a space. It escapes the StringToEscape with doble quote if it finds a special MITAB character- Parameters:
stringToEscape
- aString
object.- Throws:
IOException
- if any.
-
writeComplexExpansion
void writeComplexExpansion(T binary) throws IOException
Writes the complex expansion of a binary interaction- Parameters:
binary
- a T object.- Throws:
IOException
- if any.
-
writeBiologicalRole
void writeBiologicalRole(P participant) throws IOException
Writes the biological role of a participant- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeExperimentalRole
void writeExperimentalRole(P participant) throws IOException
Writes the experimentsl role of a participant evidence- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractorType
void writeInteractorType(P participant) throws IOException
Writes the interactor type of a participant- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeParticipantXrefs
void writeParticipantXrefs(P participant) throws IOException
Write Xref of participant and interactor- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractionXrefs
void writeInteractionXrefs(T interaction) throws IOException
Write interaction Xref r- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeParticipantAnnotations
void writeParticipantAnnotations(P participant) throws IOException
Writes participant annotations- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractionAnnotations
void writeInteractionAnnotations(T interaction) throws IOException
Writes interaction annotations- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeHostOrganism
void writeHostOrganism(T interaction) throws IOException
Writes experiment host organism- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeInteractionParameters
void writeInteractionParameters(T interaction) throws IOException
Writes interaction parameters- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeDate
void writeDate(Date date) throws IOException
Writes created date of an interaction- Parameters:
date
- aDate
object.- Throws:
IOException
- if any.
-
writeParticipantChecksums
void writeParticipantChecksums(P participant) throws IOException
Writes participant checksum- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractionChecksums
void writeInteractionChecksums(T interaction) throws IOException
Writes interaction checksum- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeNegativeProperty
void writeNegativeProperty(T interaction) throws IOException
Writes interaction negative property if true- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeChecksum
void writeChecksum(Checksum checksum) throws IOException
Writes the checksum- Parameters:
checksum
- aChecksum
object.- Throws:
IOException
- if any.
-
writeParameter
void writeParameter(Parameter parameter) throws IOException
Writes the parameter- Parameters:
parameter
- aParameter
object.- Throws:
IOException
- if any.
-
writeAnnotation
void writeAnnotation(Annotation annotation) throws IOException
Writes an annotation- Parameters:
annotation
- aAnnotation
object.- Throws:
IOException
- if any.
-
writeXref
void writeXref(Xref xref) throws IOException
This methods write the database, id, version and qualifier of an xref- Parameters:
xref
- aXref
object.- Throws:
IOException
- if any.
-
writeParticipantFeatures
void writeParticipantFeatures(P participant) throws IOException
Writes participant features- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeParticipantStoichiometry
void writeParticipantStoichiometry(P participant) throws IOException
Writes participant stoichiometry- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeParticipantIdentificationMethod
void writeParticipantIdentificationMethod(P participant) throws IOException
Writes participant identification method(s)- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeFeature
void writeFeature(Feature feature) throws IOException
Writes a feature- Parameters:
feature
- aFeature
object.- Throws:
IOException
- if any.
-
writeParticipantBiologicalEffect
void writeParticipantBiologicalEffect(P participant) throws IOException
Writes participant biological effect- Parameters:
participant
- a P object.- Throws:
IOException
- if any.
-
writeInteractionCausalRegulatoryMechanism
void writeInteractionCausalRegulatoryMechanism(T interaction) throws IOException
Writes interaction checksum- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
writeInteractionCausalStatement
void writeInteractionCausalStatement(T interaction) throws IOException
Writes interaction checksum- Parameters:
interaction
- a T object.- Throws:
IOException
- if any.
-
-