Skip to main content

DNA and protein in the same view.

Comments

5 comments

  • Richard Moir

    The ExampleDocumentViewerPlugin would be the place to start if you want to build it as a viewer. It accepts SequenceDocument which can be either protein or DNA. However, it needs to be extended to accept more than one sequence (and do all the rendering and allow editing appropriately).

    Building a plugin for this will be a lot of work, so I would recommend aligning all as DNA and using the live translation in the existing viewer to check your edits.

    0
  • Adrian

    Hi Richard,

    I built the following viewer and that has some of the functionality I'm interested however I would need a lot of the functionality present in the Sequence Viewer and since reinventing the wheel is not fashionable I need to be able to subclass the Sequence viewer plugin and override some of it's functionality. Can you direct me to some documentation on how to do that? 

    I'm talking about subclassing the existing SequenceViewer.java and SequencePluging.

     

     

    0
  • Richard Moir

    I'm afraid that's not possible, our sequence view has not been designed to be extended in this way. You will have to recreate the necessary functionality in your plugin.

    0
  • Adrian

    Hi Richard,

    That's quite a limitation.

    Is there any way for instance to extend the existing one to add a new sequence or something like a Sequence Logo?

     

    I looked through the SequenceViewerStatistics but that does not modify the main Sequence Viewer panel but something on the side.

    0
  • Richard Moir

    Yes, you can extend the sequence view in a couple of controlled ways. Have a look at GeneiousPlugin.getSequenceGraphFactories() as a way to add something like a sequence logo.

    0

Please sign in to leave a comment.