DnaFeaturesViewer icon indicating copy to clipboard operation
DnaFeaturesViewer copied to clipboard

sequences display from 1 not 0 ?

Open taoym470 opened this issue 2 years ago • 1 comments

Hello!

So many thanks for this wonderful tool! It would be much better if the sequences display from 1 not 0.

taoym470 avatar May 06 '23 02:05 taoym470

This is because it uses Biopython indexing (from 0) by default. For genbank-type indexing (starting at 1) this should work:

my_graphic_record.plots_indexing == 'genbank'
my_graphic_record.plot(...)

See the docs:

    plots_indexing
      Indicates which standard to use to show nucleotide indices in the plots.
      If 'biopython', the standard python indexing is used (starting at 0).
      If 'genbank', the indexing follows the Genbank standard (starting at 1).

Zulko avatar May 08 '23 02:05 Zulko