MICommunity / psimi

Automatically exported from code.google.com/p/psimi
Creative Commons Attribution 4.0 International
5 stars 3 forks source link

Molecular sieving set as default detection methods #23

Closed vtoure closed 5 years ago

vtoure commented 5 years ago

Hi, In the psimi/psimitab-parser/src/main/java/psidev/psi/mi/tab/mock/PsimiTabMockBuilder.java when creating a binary interaction createInteraction( Interactor a, Interactor b ), the detection method is by default set to "molecular sieving" (l.143).

bi.getDetectionMethods().add( new CrossReferenceImpl("psi-mi", "MI:0071", "molecular sieving" ) );

Any reason for this? Thanks, Vasundra

bblodfon commented 5 years ago

Hi Vasundra,

It seems to me that he just wants to create a mock mitab object and adds a detection method from the available ones, without any particular reason for that choice.

John

vtoure commented 5 years ago

Thanks John, If no particular reason, then it would be better to either:

Vasundra

bblodfon commented 5 years ago

This class was written was testing purposes (this particular example is used only in escapeSpecialCharactersRoundtrip() of the PsimiTabWriterTest class), so not much care was given for the data to "make sense" - there are a thousand other examples in this mocking class where the data inserted do not make "real" sense or are built from random strings...