473,659 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need startup suggestions for writing a MSA viewer GUI in python

Hi!

I've been thinking about writing a good multiple sequence alignment
(MSA) viewer in python. Sort of like ClustalX, only with better zoom and
pan tools. I've been using python in my work for a couple of years, but
this is my first shot at making a GUI so I'd very much appreciate some
ideas from you people to get me going in the right direction. Despite my
GUI n00b-ness I need to get it good and usable with an intuitive look
and feel.

What do you think I should do? What packages should I use?

For you non-bioinformatic guys out there, an MSA is basically a big
matrix (~1000 cols x ~100 rows) of letters, where each row represents a
biological sequence (gene, protein, etc...). Each sequence has an ID
that is usually shorter than 40 characters (typically, 8-12). Usually,
msa visualizers color the letters and their backgrouds according to
chemical properties.

I want the look and feel to be pretty much like a modern midi sequencer
(like cubase, nuendo, reason etc...). This means the GUI should have
least three panes; one to the left to hold the IDs, one in the bottom to
hold graphs and plots (e.g: user configurable tracks), and the main one
that holds the actual MSA and occupies most of the space. The left and
bottom panes should be resizable and foldable.

I would like to be able to zoom and pan x and y axes independently to
view different portions of the MSA, and the left and bottom panes should
follow the main pane. I would also like to be able to use drag'n'drop on
IDs for reordering sequences, and possibly also on the MSA itself to
shift sequences left and right. Furthermore, I would like to be able to
select sequences and positions (individually, in ranges or sparsely). I
would like to have a context sensitive menu on the right mouse button,
possibly with submenus. Finally, I'd like to be able to export printable
figures (eps?) of regions and whole MSAs.

I'm thinking all three panes may have to be rendered using some sort of
scalable graphics because of the coloring and since I'd like to be able
to zoom freely. I'll also need to draw graphs and plots for the tracks.
Is pygame good for this, or is there a better way of doing it?

I want my viewer to behave and look like any other program, so I'm
thinking maybe I should use some standard GUI toolkit instead, say PyQT
or PyGTK? Would they still allow me to render the MSA nicely?

Does this seem like a humongous project?

Thanks for taking the time!
/Joel Hedlund
Jan 10 '07 #1
6 1250
On 1/10/07, Joel Hedlund <jo**********@g mail.comwrote:
Hi!

I've been thinking about writing a good multiple sequence alignment
(MSA) viewer in python. Sort of like ClustalX, only with better zoom and
pan tools. I've been using python in my work for a couple of years, but
this is my first shot at making a GUI so I'd very much appreciate some
ideas from you people to get me going in the right direction. Despite my
GUI n00b-ness I need to get it good and usable with an intuitive look
and feel.

What do you think I should do? What packages should I use?

For you non-bioinformatic guys out there, an MSA is basically a big
matrix (~1000 cols x ~100 rows) of letters, where each row represents a
biological sequence (gene, protein, etc...). Each sequence has an ID
that is usually shorter than 40 characters (typically, 8-12). Usually,
msa visualizers color the letters and their backgrouds according to
chemical properties.

I want the look and feel to be pretty much like a modern midi sequencer
(like cubase, nuendo, reason etc...). This means the GUI should have
least three panes; one to the left to hold the IDs, one in the bottom to
hold graphs and plots (e.g: user configurable tracks), and the main one
that holds the actual MSA and occupies most of the space. The left and
bottom panes should be resizable and foldable.

I would like to be able to zoom and pan x and y axes independently to
view different portions of the MSA, and the left and bottom panes should
follow the main pane. I would also like to be able to use drag'n'drop on
IDs for reordering sequences, and possibly also on the MSA itself to
shift sequences left and right. Furthermore, I would like to be able to
select sequences and positions (individually, in ranges or sparsely). I
would like to have a context sensitive menu on the right mouse button,
possibly with submenus. Finally, I'd like to be able to export printable
figures (eps?) of regions and whole MSAs.

I'm thinking all three panes may have to be rendered using some sort of
scalable graphics because of the coloring and since I'd like to be able
to zoom freely. I'll also need to draw graphs and plots for the tracks.
Is pygame good for this, or is there a better way of doing it?

I want my viewer to behave and look like any other program, so I'm
thinking maybe I should use some standard GUI toolkit instead, say PyQT
or PyGTK? Would they still allow me to render the MSA nicely?

Does this seem like a humongous project?

Thanks for taking the time!
/Joel Hedlund
This will probably be a major, but not humongous project. wxPython,
pyGTk, and pyQt all have the architecture and basics you'll need, it
will probably be about the same amount of work to create in all of
them. Pick the one that best suites your licensing and platform needs.
Jan 10 '07 #2
hg
Joel Hedlund wrote:
Hi!

I've been thinking about writing a good multiple sequence alignment
(MSA) viewer in python. Sort of like ClustalX, only with better zoom and
pan tools. I've been using python in my work for a couple of years, but
this is my first shot at making a GUI so I'd very much appreciate some
ideas from you people to get me going in the right direction. Despite my
GUI n00b-ness I need to get it good and usable with an intuitive look
and feel.

What do you think I should do? What packages should I use?

For you non-bioinformatic guys out there, an MSA is basically a big
matrix (~1000 cols x ~100 rows) of letters, where each row represents a
biological sequence (gene, protein, etc...). Each sequence has an ID
that is usually shorter than 40 characters (typically, 8-12). Usually,
msa visualizers color the letters and their backgrouds according to
chemical properties.

I want the look and feel to be pretty much like a modern midi sequencer
(like cubase, nuendo, reason etc...). This means the GUI should have
least three panes; one to the left to hold the IDs, one in the bottom to
hold graphs and plots (e.g: user configurable tracks), and the main one
that holds the actual MSA and occupies most of the space. The left and
bottom panes should be resizable and foldable.

I would like to be able to zoom and pan x and y axes independently to
view different portions of the MSA, and the left and bottom panes should
follow the main pane. I would also like to be able to use drag'n'drop on
IDs for reordering sequences, and possibly also on the MSA itself to
shift sequences left and right. Furthermore, I would like to be able to
select sequences and positions (individually, in ranges or sparsely). I
would like to have a context sensitive menu on the right mouse button,
possibly with submenus. Finally, I'd like to be able to export printable
figures (eps?) of regions and whole MSAs.

I'm thinking all three panes may have to be rendered using some sort of
scalable graphics because of the coloring and since I'd like to be able
to zoom freely. I'll also need to draw graphs and plots for the tracks.
Is pygame good for this, or is there a better way of doing it?

I want my viewer to behave and look like any other program, so I'm
thinking maybe I should use some standard GUI toolkit instead, say PyQT
or PyGTK? Would they still allow me to render the MSA nicely?

Does this seem like a humongous project?

Thanks for taking the time!
/Joel Hedlund
I do not know if PyGtk and PyQT have demos, but wxPython does and includes
PyPlot: an easy way to look at the basic features.

hg
Jan 10 '07 #3
On 2007-01-10, hg <hg@nospam.orgw rote:
Joel Hedlund wrote:
>Thanks for taking the time!
/Joel Hedlund

I do not know if PyGtk and PyQT have demos, but wxPython does
and includes PyPlot: an easy way to look at the basic features.
PyQT does come with an impressive plethora of demos.

--
Neil Cerutti
The concert held in Fellowship Hall was a great success. Special thanks are
due to the minister's daughter, who labored the whole evening at the piano,
which as usual fell upon her. --Church Bulletin Blooper
Jan 10 '07 #4
This will probably be a major, but not humongous project. wxPython,
pyGTk, and pyQt all have the architecture and basics you'll need, it
will probably be about the same amount of work to create in all of
them. Pick the one that best suites your licensing and platform needs.
Thanks for the suggestions. Now I'll start my reading up.

Cheers!
/Joel
Jan 11 '07 #5

Joel Hedlund wrote:
ideas from you people to get me going in the right direction. Despite my
GUI n00b-ness I need to get it good and usable with an intuitive look
and feel.
UI design requires a different skillset than programming. It can be a
very frustrating and thankless task as well. It is incomparably easier
to see the flaws in existing interfaces than correcting them (or even
creating the said interface). Make sure to start with something simple,
and learn that way.

I would also recommend that you implement something novel, there are
many existing MSA viewers and it won't be easy to improve on them. Do
something that adds new value and people will be willing to expend
effort to use it.

i.

Jan 11 '07 #6
UI design requires a different skillset than programming. It can be a
very frustrating and thankless task as well. It is incomparably easier
to see the flaws in existing interfaces than correcting them (or even
creating the said interface). Make sure to start with something simple,
and learn that way.

I would also recommend that you implement something novel, there are
many existing MSA viewers and it won't be easy to improve on them. Do
something that adds new value and people will be willing to expend
effort to use it.
That's true for any software. And for any aspect of life, come to think
about it.

/Joel
Jan 11 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3091
by: Jeff Wagner | last post by:
I am in the process of learning Python (obsessively so). I've been through a few tutorials and read a Python book that was lent to me. I am now trying to put what I've learned to use by rewriting that Numerology program I wrote years ago in VB. There are times I am totally stuck (for instance, I just had an idea to put the numerical values of the alphabet and months of the year in a dictionary located in a function. Then, I can import the...
16
5768
by: Neil Benn | last post by:
Hello, I'm looking at a small app which would need a very quick startup time for the Python interpreter. It doesn't do much (copying and caching of files, no GUI) but I need the Python interpreter to start up very quickly (<1 second on a Windows box). Is there a way to have a 'stripped' down Python interpreter which can start up very quickly on a windows box. Once thing I was thinking of was to use PyExe to make a quick startup (does...
8
1521
by: Ray | last post by:
Hello there, I've been programming in Java for about 8 years now, but lately I've been hearing a lot about Python and I'm really interested in learning more about it. I've read the tutorial, and some books (core python programming is one), but there's one thing that's still missing: how to use Python the "Python" way. I found learning C# was a breeze for me because the language shares a lot of concepts and notions with Java--I can...
13
2130
by: Heather Stovold | last post by:
Wow - deciding to program in python sure requires a lot of decisions! So far: I've decided on python for the programming language. I've decided on wxpython for the GUI.... I've decided on DrPython for the Editor.... I still need to decide on a database........ I've really only used Access, and my SQL skills aren't that great. It would also need to be free....
6
5039
by: Ramaraj | last post by:
Hi All, I am very interest to know the c-startup routine (like GNU gcc C-startup routine). and it s working principle and How this function is attached to operating system Thanks in adavance. with regards
1
4273
by: Simmons, Stephen | last post by:
Hi, I've come across a bug in CSV where the csv.reader() raises an exception if the input line contains '\r'. Example code and output below shows a test case where csv.reader() cannot read an array written by csv.writer(). I believe this is a known bug and may have been fixed for Python 2.5. However I'm after suggestions for workarounds for Python 2.4.2.
16
2524
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client uses IE to talk with a server. The user on the client (IE) sees an ASP net page containing a TextBox. He can write some text in this text box and push a submit button.
92
4345
by: Ray | last post by:
I just moved to another company that's mainly a Java/.NET shop. I was happy to find out that there's a movement from the grassroot to try to convince the boss to use a dynamic language for our development! Two of the senior developers, however, are already rooting for Ruby on Rails--although they haven't tried RoR themselves. When I suggested Django, they went like, "what's that?". I said, "It's like the Python counterpart of RoR".
6
1202
by: miller.paul.w | last post by:
I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In fact, I see myself starting with the compiler module from Python 2.5 and building from there. This language would be more or less "Python modulo a few (incompatible) changes, but it'd be recognizable by Python programmers. I'm talking about stuff like...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.