GMOD / Apollo3

JBrowse 2 plugin for editing annotations on an Apollo server
Apache License 2.0
6 stars 4 forks source link

Off-by-one error with "Copy feature and annotation" #363

Open dariober opened 4 months ago

dariober commented 4 months ago

"Copy feature and annotation" seems to shift the copied feature one base forward. For example, this should copy the selected feature to position 1 to 50 in the target assembly:

image

and this is the submitted payload:

{
   "typeName":"AddFeatureChange",
   "changedIds":[
      "65e750724739283520242ce6"
   ],
   "assembly":"65e74fc75a9cf15047583cb9",
   "addedFeature":{
      "_id":"65e750724739283520242ce6",
      "refSeq":"65e74fc7d116c4bc33903e59",
      "start":1,
      "end":51,
      "type":"contig",
      "attributes":{
         "source":[
            "example"
         ],
         "gff_name":[
            "ctgA"
         ],
         "multivalue":[
            "val1",
            "val2",
            "val3"
         ]
      },
      "discontinuousLocations":[

      ]
   },
   "copyFeature":true,
   "allIds":[
      "65e750724739283520242ce6"
   ]
}

which results in the copied feature to go from 2 to 51:

image