473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1239
On 1/10/07, Joel Hedlund <jo**********@gmail.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.orgwrote:
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
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...
16
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...
8
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...
13
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...
6
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...
1
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...
16
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...
92
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...
6
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...

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.