SynBioDex-archive / libSBOLj

deprecated libSBOL Java library
http://SynBioDex.github.com/libSBOLj
2 stars 0 forks source link

use Ham's Naming Convention for Sequence Starts #15

Open mgaldzic opened 13 years ago

mgaldzic commented 13 years ago

The issue is about 0 based and 1 based interval schemes.

  1. conventional annotation of nucleaotide sequences uses a 1 based, closed interval scheme
  2. but popular programming languages today use a 0 based, left-closed, right-open interval scheme Solution: distinguish the 0 based and 1 based interval scheme by using a different variable name for 1 based starts.

Example: sequence = "aattccgga" gb_start = 2 start = gb_start - 1 # this is optional, of course. end = 5