[Biopython-dev] [biopython-dev] SeqFeature comparison for equality

Joshua Ismael Haase Hernández hahj87 at gmail.com
Mon Oct 17 18:27:19 UTC 2011


El 17 de octubre de 2011 13:07, Peter Cock <p.j.a.cock at googlemail.com>escribió:

> 2011/10/17 Joshua Ismael Haase Hernández <hahj87 at gmail.com>:
> > ...
> >
> > This positions would be the same:
> >
> > OneOfPosition(5, 11, 15),
> > ExactPosition(11),
> > AfterPosition(4),
> > BeforePosition(16),
> > WithinPosition(5, 16),
>
> I don't understand what you are asking here. Those
> positions do not look the same to me.
>
>
They are not *exactly* the same, but besides
AfterPosition and BeforePosition,
ExactPosition(11) is included in OneOfPosition(5, 11, 15),
ExactPosition(11) is after AfterPosition(4)
ExactPosition(11) is before BeforePosition(16)
ExactPosition(11) is included in WithinPosition(5, 16)
All positions in OneOfPosition are before BeforePosition,
after AfterPosition, within WithinPosition, and includes
ExactPosition.
Al positions in WithinPosition are after AfterPosition,
before BeforePosition.

BeforePosition and AfterPosition can't be equal.

How should I name the TestCases?




More information about the Biopython-dev mailing list