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 voidescapeAndWriteString(String stringToEscape)This method replaces line breaks and tab characters with a space.voidwriteAlias(P participant, Alias alias)This methods write the dbsource, alias name and alias type of an alias.voidwriteAlias(Alias alias)This methods write the dbsource, alias name and alias type of an aliasvoidwriteAliases(P participant)This method writes all the aliases of the participantvoidwriteAlternativeIdentifiers(P participant)This method writes all the remaining identifiers (ignore the first identifier) of the participantvoidwriteAnnotation(Annotation annotation)Writes an annotationvoidwriteBiologicalRole(P participant)Writes the biological role of a participantvoidwriteChecksum(Checksum checksum)Writes the checksumvoidwriteComplexExpansion(T binary)Writes the complex expansion of a binary interactionvoidwriteConfidence(Confidence conf)This method will write a confidence with a text if text is not nullvoidwriteCvTerm(CvTerm cv)Write the CvTerm.voidwriteDate(Date date)Writes created date of an interactionvoidwriteExperimentalRole(P participant)Writes the experimentsl role of a participant evidencevoidwriteFeature(Feature feature)Writes a featurevoidwriteFirstAuthor(T interaction)Writes the first author of a publication in an experimentvoidwriteHostOrganism(T interaction)Writes experiment host organismvoidwriteIdentifier(Xref identifier)This methods write the database, id and version of an identifiervoidwriteInteractionAnnotations(T interaction)Writes interaction annotationsvoidwriteInteractionCausalRegulatoryMechanism(T interaction)Writes interaction checksumvoidwriteInteractionCausalStatement(T interaction)Writes interaction checksumvoidwriteInteractionChecksums(T interaction)Writes interaction checksumvoidwriteInteractionConfidences(T interaction)Writes the confidences of an interaction evidencevoidwriteInteractionDetectionMethod(T interaction)Writes the interaction detection method of the experiment.voidwriteInteractionIdentifiers(T interaction)Writes the interaction identifiers of an interaction.voidwriteInteractionParameters(T interaction)Writes interaction parametersvoidwriteInteractionType(T interaction)Writes the interaction type of an interactionvoidwriteInteractionXrefs(T interaction)Write interaction Xref rvoidwriteInteractorOrganism(P participant)Writes the organism of a participant.voidwriteInteractorType(P participant)Writes the interactor type of a participantvoidwriteNegativeProperty(T interaction)Writes interaction negative property if truevoidwriteOrganism(Organism organism)Write an organism.voidwriteParameter(Parameter parameter)Writes the parametervoidwriteParticipantAnnotations(P participant)Writes participant annotationsvoidwriteParticipantBiologicalEffect(P participant)Writes participant biological effectvoidwriteParticipantChecksums(P participant)Writes participant checksumvoidwriteParticipantFeatures(P participant)Writes participant featuresvoidwriteParticipantIdentificationMethod(P participant)Writes participant identification method(s)voidwriteParticipantStoichiometry(P participant)Writes participant stoichiometryvoidwriteParticipantXrefs(P participant)Write Xref of participant and interactorvoidwritePublicationIdentifiers(T interaction)Writes the publication identifiers of a publication in an experiment.voidwriteSource(T interaction)Writes the interaction source from the modelled interactionvoidwriteUniqueIdentifier(P participant)This method will write the unique identifier of a participantvoidwriteXref(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- aConfidenceobject.- 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- aOrganismobject.- 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- aCvTermobject.- 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- aAliasobject.- 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- aAliasobject.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- aXrefobject.- 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- aStringobject.- 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- aDateobject.- 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- aChecksumobject.- Throws:
IOException- if any.
-
writeParameter
void writeParameter(Parameter parameter) throws IOException
Writes the parameter- Parameters:
parameter- aParameterobject.- Throws:
IOException- if any.
-
writeAnnotation
void writeAnnotation(Annotation annotation) throws IOException
Writes an annotation- Parameters:
annotation- aAnnotationobject.- 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- aXrefobject.- 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- aFeatureobject.- 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.
-
-