Question: python dynamic output for biological sequences
gravatar for andynkili
2.9 years ago by
andynkili10 wrote:

My goal is to output Coding DNA Sequences (CDSs) from different (but closely related) whole genomes sequences in a dynamic way.
I have a variable number of genome sequences and their related CDSs (with their names, positions, and also their differences (SNPs) for common CDSs across different genomes ).
I would like to draw the CDS per genomes on a single line as boxes (or arrows for reading frame issue ) with their names inside. So far i managed to do it using SeqFeature and Graphics from biopython (here is my result) but the output can only be saved in non-interactive format (jpeg, pdf, ...). The dynamic part of the output would allow to add further details on each CDS:

  • mousing over them would print more information (size, sequence in protein, SNPs)
  • clicking would allow to download the sequences

I don't have a clue on how produce an interactive output able to display those information. Could someone give some hints about achieving such results? Any python librairies? Any other tools?

genome draw python gene • 687 views
ADD COMMENTlink written 2.9 years ago by andynkili10

SVG graph may provides simple interaction.

ADD REPLYlink written 2.9 years ago by shenwei3565.2k

You could try using something like D3 which has python implementations to make interactive graphs etc. Here's an online guide.

A friend of mine wrote BRIG in java, and then a fan of the software who wanted interactive outputs reimplemented it via D3.

ADD REPLYlink written 2.9 years ago by Joe17k

I think you can easily do this with R/shiny. See for a simple related example

ADD REPLYlink written 2.9 years ago by Asaf8.3k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 733 users visited in the last hour