mussa.git
17 years agoManual: Motif/Annotation documentation
Brandon King [Thu, 18 May 2006 23:51:55 +0000 (23:51 +0000)]
Manual: Motif/Annotation documentation

17 years agoLoad Motif List png
Brandon King [Thu, 18 May 2006 23:50:13 +0000 (23:50 +0000)]
Load Motif List png

17 years agoNew version of mussagl, updated screenshot.
Brandon King [Thu, 18 May 2006 23:23:18 +0000 (23:23 +0000)]
New version of mussagl, updated screenshot.

17 years agoManual: Main Window section added
Brandon King [Thu, 18 May 2006 23:05:18 +0000 (23:05 +0000)]
Manual: Main Window section added

17 years agoScreenshots for next patch of the manual.
Brandon King [Thu, 18 May 2006 23:04:00 +0000 (23:04 +0000)]
Screenshots for next patch of the manual.

17 years agoUpdated manual
Brandon King [Wed, 17 May 2006 16:46:41 +0000 (16:46 +0000)]
Updated manual

* Updated threshold setting based on latest build of Mussagl
* Continued outline development
* Added FIXME: where ever work needs to be done.

17 years agorename the python extension to _mussa.so
Diane Trout [Thu, 18 May 2006 00:56:12 +0000 (00:56 +0000)]
rename the python extension to _mussa.so
when working on the setup.py version of the build system it seemd like I
might want some python code to wrap the extension, so I renamed it to
_mussa. not sure if i still need that or not.

17 years agoexpose more of the sequence class to python
Diane Trout [Thu, 18 May 2006 00:55:40 +0000 (00:55 +0000)]
expose more of the sequence class to python

17 years agofinish implementing annotation by sequence
Diane Trout [Wed, 17 May 2006 19:23:45 +0000 (19:23 +0000)]
finish implementing annotation by sequence
I connected the previous find_sequence code with the new spirit annotation
loading file. So now I can actually use (nearly exact) sequences for
annotating.

17 years agoswitch to a character based spirit parser
Diane Trout [Wed, 17 May 2006 08:36:18 +0000 (08:36 +0000)]
switch to a character based spirit parser
by not letting spirit automatically deal with the spacing I was able
to actually get parsing to work correctly.

17 years agotry to read fasta blocks in the annotation file
Diane Trout [Wed, 17 May 2006 08:10:00 +0000 (08:10 +0000)]
try to read fasta blocks in the annotation file
though this also revealed some problems with the spirit parser not
really splitting on whitespace. I should look into how to do per
character parsing.

17 years agouse spirit parser for reading annot file
Diane Trout [Wed, 17 May 2006 01:57:30 +0000 (01:57 +0000)]
use spirit parser for reading annot file
This basically duplicates tristans original annot parser using boost::spirit.
That was more complicated than I thought, and required implementing
a functor struct that stored data when the class was instantiated and then
performed some action with the operator() was called. Look at the comment
at sequence.cpp:push_back_annot for more descriptions of how that worked.

I improved the annotate_from_sequence unit test to not use hard coded values.

I have the start of a unit test fort the annot parsing code.
(currently it parses a string and then dumps out the result)

Though I did run the gui using this code and annotations did show up in roughly
the right places.

17 years agoadd annotations by sequence string
Diane Trout [Tue, 16 May 2006 00:53:06 +0000 (00:53 +0000)]
add annotations by sequence string
Ok so this is a rather limited search system as it is just using the
motif searching code, but adding things to the annot list instead of the
motif list. (and it handles looking at a list of sequences).

Ideally there should be some better way of specifying which algorithm to use
but i'm really tired today and not coding well.

18 years agotry to make setup.py multiplatform
Diane Trout [Thu, 11 May 2006 03:20:43 +0000 (03:20 +0000)]
try to make setup.py multiplatform

18 years agominor tweaks for building mussa under setup.py
Diane Trout [Thu, 11 May 2006 02:15:02 +0000 (02:15 +0000)]
minor tweaks for building mussa under setup.py

18 years agosuper simple mussa gui driver
Diane Trout [Thu, 11 May 2006 02:13:22 +0000 (02:13 +0000)]
super simple mussa gui driver

18 years agobuild all of mussagl as a python extension
Diane Trout [Thu, 11 May 2006 00:17:35 +0000 (00:17 +0000)]
build all of mussagl as a python extension
unfortunately only works on os x so far.

18 years agolets try letting python build mussa
Diane Trout [Wed, 10 May 2006 08:43:58 +0000 (08:43 +0000)]
lets try letting python build mussa
I wonder how distutils will fare building mussa? As I made more progress
getting to interact with the C++ libraries from python than the reverse
I want to see if I can everything to build with just distutils.

18 years agoincrease the use of python in mussa
Diane Trout [Wed, 10 May 2006 01:39:33 +0000 (01:39 +0000)]
increase the use of python in mussa
This patch does let the python extension launch the gui successfully.
I tried to get the C++ gui app to also be able to talk to the python extension
but that didn't work so well. (causes a crash on os x when I statically
link the python extension module in).

18 years agoallow saving aligned window browser to image
Diane Trout [Thu, 4 May 2006 00:58:13 +0000 (00:58 +0000)]
allow saving aligned window browser to image
ticket:70

18 years agoshow the name of the analysis loaded
Diane Trout [Thu, 4 May 2006 00:41:52 +0000 (00:41 +0000)]
show the name of the analysis loaded
ticket:84 put the filename (for gui loaded) or the analysis name
(for command line loaded) names in the mussa window.

18 years agoallow opening multiple MussaWindows
Diane Trout [Thu, 4 May 2006 00:39:42 +0000 (00:39 +0000)]
allow opening multiple MussaWindows
closes ticket:93 the only real downside is on os x the windows land on top
of each other.

18 years agowin32 paths need some conversion
Diane Trout [Wed, 19 Apr 2006 01:53:10 +0000 (01:53 +0000)]
win32 paths need some conversion
boosts native path type doesn't match win32
conventions quite correctly so before passing
a user entered file name we need to convert it.***END OF DESCRIPTION***

Place the long patch description above the ***END OF DESCRIPTION*** marker.
The first line of this file will be the patch name.

This patch contains the following changes:

M ./alg/glseqbrowser.cpp -1 +1
M ./mussa_exceptions.hpp +1
M ./mussagl.pro -1 +4
M ./qui/MussaWindow.cpp -3 +9
M ./qui/mussa_setup_dialog/MussaSetupWidget.cpp -5 +8
M ./qui/mussagl.cpp -6 +17

18 years agotry to get mussagl to build on win32
Diane Trout [Tue, 18 Apr 2006 23:29:06 +0000 (23:29 +0000)]
try to get mussagl to build on win32

18 years agoimplement commandline arguments for makedmg
Diane Trout [Tue, 18 Apr 2006 08:24:49 +0000 (08:24 +0000)]
implement commandline arguments for makedmg

18 years agothe fasta error message should include the filename
Diane Trout [Thu, 13 Apr 2006 20:04:02 +0000 (20:04 +0000)]
the fasta error message should include the filename

18 years agofix ticket:83 throw an error when we don't have a fasta file
Diane Trout [Thu, 13 Apr 2006 19:34:08 +0000 (19:34 +0000)]
fix ticket:83 throw an error when we don't have a fasta file
If the user gives us someting that doesn't look like a fasta file throw
an error.

18 years agocreate an options structure to indicate if we need a gui
Diane Trout [Thu, 13 Apr 2006 00:39:51 +0000 (00:39 +0000)]
create an options structure to indicate if we need a gui
My last attempt at making mussagl not need to run a gui on linux caused os x
to break. This implements a more complicated scheme that involves
initialize_mussa learning how to pass multiple options and a hidden
argument to QApplication to not initialize the gui when (in X11) $DISPLAY
isn't set.

18 years agoticket:85 fix, extend code crashes with 1 path
Diane Trout [Wed, 12 Apr 2006 23:25:58 +0000 (23:25 +0000)]
ticket:85 fix, extend code crashes with 1 path
when there was only 1 path the refinement code attempted to access a null
pointer. (The "next" path, which was alas, pathz.end() )

18 years agouse a custom target for python extension
Diane Trout [Wed, 12 Apr 2006 23:24:24 +0000 (23:24 +0000)]
use a custom target for python extension
the custom command to make the properly names python extension sometimes
failes, so lets see if a custom target (which has better dependency checking)
works

18 years agorecord cmake commands to deal with some dependency problems
Diane Trout [Wed, 12 Apr 2006 23:23:48 +0000 (23:23 +0000)]
record cmake commands to deal with some dependency problems

18 years agodefault to building a debug version
Diane Trout [Wed, 12 Apr 2006 23:18:13 +0000 (23:18 +0000)]
default to building a debug version

18 years agoput qt gui launching code into a function
Diane Trout [Wed, 12 Apr 2006 22:20:42 +0000 (22:20 +0000)]
put qt gui launching code into a function
Delaying instaintation QApplication allows us to run even if we don't
have a connection to an X server

18 years agoAMD64 needs -fPIC for mussa_core
Diane Trout [Wed, 12 Apr 2006 21:17:49 +0000 (21:17 +0000)]
AMD64 needs -fPIC for mussa_core

18 years agoput spaces instead of <TAB> on gui/module.mk
Diane Trout [Wed, 12 Apr 2006 21:17:24 +0000 (21:17 +0000)]
put spaces instead of <TAB> on gui/module.mk

18 years agoln -s is not that reliable
Diane Trout [Wed, 12 Apr 2006 01:02:48 +0000 (01:02 +0000)]
ln -s is not that reliable
ln throws an error if the file already exists, rm throws a file
if it doesn't exist, only cp works regardless of the start of the
python extensions existence status.

18 years agobuild the python interface
Diane Trout [Wed, 12 Apr 2006 00:45:55 +0000 (00:45 +0000)]
build the python interface
CMake can build the python version (and on os x/unix test it)
CMakes targets aren't quite appropriate for python extensions the
ADD_LIBRARY target gets the right build settings but names the file
libX.so while python needs X.so. I got around this by adding a custom
command which makes a symlink to the right name--of course that depends
on shell commands not available on windows. :(

Also there's some problems with boost.python not knowing about the
string to boost/filesystem converter. I manually wrapped load_mupa_file
but it might be more advantagious to write a general wrapper.

I also only have the simplest test case included, to test to make sure
that the environment can actually run python test cases.

18 years agominor fixes for older buildsystems
Diane Trout [Tue, 11 Apr 2006 19:33:36 +0000 (19:33 +0000)]
minor fixes for older buildsystems
Just some updates so the older build systems still work.

18 years agorename _LIB to _LIBRARY to be more consistent with cmake
Diane Trout [Sat, 8 Apr 2006 09:57:08 +0000 (09:57 +0000)]
rename _LIB to _LIBRARY to be more consistent with cmake

18 years agobuild fltk version and deal with debian qt4 weirdness
Diane Trout [Fri, 7 Apr 2006 22:40:55 +0000 (22:40 +0000)]
build fltk version and deal with debian qt4 weirdness
Debian named the qt4 qmake/moc commands -qt4 which the standard cmake
has trouble finding so I manaullay looked for them.

additionally the fltk stuff doesn't look for .H as used for newer fltk
installations so I had to manually look for that as well.

18 years agomake include gl.h multiplatform
Diane Trout [Fri, 7 Apr 2006 21:23:44 +0000 (21:23 +0000)]
make include gl.h multiplatform
On OSX the location of gl.h is a bit weird.

Also fix a problem with where our example data ends up being dumped when
running unittests

18 years agoswitch to using boost::filesystem
Diane Trout [Fri, 7 Apr 2006 02:10:30 +0000 (02:10 +0000)]
switch to using boost::filesystem
I changed the loading code to use boost::filesystem, and also updated the
build system to hardcode the location of the example data in the unittest
program.

The result of this is I can now use easier filesystem handling code
and my unittests will work even when we build the app out of source

18 years agoput build environment support tools in makelib
Diane Trout [Fri, 7 Apr 2006 02:09:28 +0000 (02:09 +0000)]
put build environment support tools in makelib

18 years agocmake setupfiles
Diane Trout [Thu, 6 Apr 2006 06:59:08 +0000 (06:59 +0000)]
cmake setupfiles
I wonder how well CMake might work, this patch'll build mussagl and the
core unittests. (Though they get dropped deep within the build hierarchy
which I don't like very much)

There's also a problem where os x wants to include the gl.h as OpenGL/gl.h
and linux wants GL/gl.h (though I didn't commit the OS X version yet.)

18 years agoQSplitter has rendering problems on os x
Diane Trout [Tue, 4 Apr 2006 03:36:02 +0000 (03:36 +0000)]
QSplitter has rendering problems on os x
QSplitter and QGlWidget don't get along that well on OS X. when toggling
the maximize state bits of the splitter are left in the opengl canvas.

Replacing the splitter with just a simple QHBoxLayout is much less
problematics, though of course it doesn't let the user hide the sidebars.

18 years agoan int signal doesn't connect to a size_t slot
Diane Trout [Tue, 4 Apr 2006 03:35:02 +0000 (03:35 +0000)]
an int signal doesn't connect to a size_t slot

18 years agoallow making dmgs for things other than mussa
Diane Trout [Tue, 4 Apr 2006 03:33:58 +0000 (03:33 +0000)]
allow making dmgs for things other than mussa

18 years agoallow running without using the gui
Diane Trout [Thu, 30 Mar 2006 06:59:09 +0000 (06:59 +0000)]
allow running without using the gui
Also I moved some of the reverse compliment code onto single lines to
see if that made it make any more sense.

18 years agobetter setup dialog label names
Diane Trout [Thu, 30 Mar 2006 03:39:41 +0000 (03:39 +0000)]
better setup dialog label names

18 years agokeep the sequence view at higher zoom level
Diane Trout [Wed, 29 Mar 2006 23:19:30 +0000 (23:19 +0000)]
keep the sequence view at higher zoom level

18 years agomotifs should render on top of annotations
Diane Trout [Wed, 29 Mar 2006 08:32:53 +0000 (08:32 +0000)]
motifs should render on top of annotations

18 years agomake annotations big enough to show up
Diane Trout [Wed, 29 Mar 2006 08:24:11 +0000 (08:24 +0000)]
make annotations big enough to show up
fixes ticket:69 (or at least improves it)
Annotations could disapper if the width of the annotation was less than
one pixel. This patch forces it to be at least one pixel. However
it appears that the scrollbar is moving things in non-integral pixel sizes
so the annotations end up flashing as they render over different fractions
of two pixels.

18 years agoView sequence alignment at non default thresholds
Diane Trout [Wed, 29 Mar 2006 06:54:27 +0000 (06:54 +0000)]
View sequence alignment at non default thresholds
ticket:63
The counter being used to track what segments went to what paths wasn't
being reset properly. One would be looking for a selectedid (from the
opengl objects) that was greather than any currently viewable path.

18 years agochoose alignment needs to force the sequences to redraw
Diane Trout [Wed, 29 Mar 2006 05:41:47 +0000 (05:41 +0000)]
choose alignment needs to force the sequences to redraw

18 years agoProvide a zoom widget in MussaAlignedWindow
Diane Trout [Wed, 29 Mar 2006 05:31:56 +0000 (05:31 +0000)]
Provide a zoom widget in MussaAlignedWindow

18 years agoMove zoom spinbox into its own widget
Diane Trout [Wed, 29 Mar 2006 05:28:51 +0000 (05:28 +0000)]
Move zoom spinbox into its own widget
and use doubles indicating the actual bp/pix instead of an int = bp/pix*100

18 years agosetAlignment, as a target of a qt signal, needs to match type
Diane Trout [Wed, 29 Mar 2006 05:18:33 +0000 (05:18 +0000)]
setAlignment, as a target of a qt signal, needs to match type
Though size_t is a bit better for how setAlignment uses it, the type
mismatch causes the signal to break

18 years agoignore some generated product
Diane Trout [Wed, 29 Mar 2006 05:14:51 +0000 (05:14 +0000)]
ignore some generated product
there's no need to version control things we build.

18 years agofix more warnings
Diane Trout [Tue, 28 Mar 2006 06:36:06 +0000 (06:36 +0000)]
fix more warnings
ticket:34 inspired me to go fix more warnings.

18 years agothreshold widget shows both base pair and percents
Diane Trout [Tue, 28 Mar 2006 06:10:14 +0000 (06:10 +0000)]
threshold widget shows both base pair and percents
ticket:31 also mentioned reporting the current threshold as both
number of basepairs out of the window size and the current percentage.

18 years agorecover threshold and window size
Diane Trout [Tue, 28 Mar 2006 02:40:09 +0000 (02:40 +0000)]
recover threshold and window size
ticket:55 This recovers the threshold and window size from the museq
and makes sure that the spinner is set to that range.

18 years agoimprove os x makefiles
Diane Trout [Tue, 28 Mar 2006 02:37:26 +0000 (02:37 +0000)]
improve os x makefiles
OS X puts things in weird places, this tries to capture that

18 years agouse qt resources for icons
Diane Trout [Tue, 28 Mar 2006 01:33:52 +0000 (01:33 +0000)]
use qt resources for icons
WARNING: Seems to need qt 4.1.1 to work correctly
This uses QT resources to link the icons directly into the application, so
they'll always show up, even when not being run from the source directory.

Of course in practice it seems like qt 4.1.0 has a bug so the resource
feature doesn't quite work right.

18 years agoFirst (incomplete) rough draft of the Mussagl Manual
Brandon King [Sat, 25 Mar 2006 00:08:28 +0000 (00:08 +0000)]
First (incomplete) rough draft of the Mussagl Manual

18 years agoWin32 Inno Setup installer script
Brandon King [Thu, 23 Mar 2006 21:07:28 +0000 (21:07 +0000)]
Win32 Inno Setup installer script

18 years agodisable coloring things with reverse compliment colors.
Diane Trout [Thu, 23 Mar 2006 19:08:27 +0000 (19:08 +0000)]
disable coloring things with reverse compliment colors.
since the reverse compliment color (blue) is being applied incorrectly
just disable it for the moment. ticket:44

this of course needs to be reversed when I actually fix the bug.

18 years agodefine an analysis should keep settings
Diane Trout [Thu, 23 Mar 2006 19:05:37 +0000 (19:05 +0000)]
define an analysis should keep settings
The define an analysis dialog should keep its values (as it doesn't do
a good job of validating input) (ticket:57) because when something is wrong
you'd have to then reenter everything.

18 years agochange from slider to spinner for threshold
Diane Trout [Thu, 23 Mar 2006 18:33:40 +0000 (18:33 +0000)]
change from slider to spinner for threshold
Use a spinner instead of a slider as its useful to be able to type in a
threshold. (starts implementation of ticket:39)
Also ticket:55 would be _very_ helpful.

18 years agobetter sidebar rendering
Diane Trout [Thu, 23 Mar 2006 00:37:19 +0000 (00:37 +0000)]
better sidebar rendering
This should fix the problems with the sidebar's output getting messed up,
(ala ticket:39) also it outputs the species name

18 years agofix selection box coordinate bugs
Diane Trout [Wed, 22 Mar 2006 23:56:16 +0000 (23:56 +0000)]
fix selection box coordinate bugs
ticket:41 and ticket:43 were both due to the fact that the right screen
coordinates weren't being properly offset by the current ortho.

18 years agospurious mouseReleaseEvent caused a crash
Diane Trout [Wed, 22 Mar 2006 04:44:08 +0000 (04:44 +0000)]
spurious mouseReleaseEvent caused a crash
For some reason a mouseReleaseEvent was making it to mussa when
using one of the load dialog boxes. This caused a crash.
This patch causes it to not crash.
Though this patch also seems to sometimes select things for no apparent
reason.

18 years agofinish dialog box to setup an analysis
Diane Trout [Wed, 22 Mar 2006 04:05:04 +0000 (04:05 +0000)]
finish dialog box to setup an analysis
Closes ticket:5 (though I'm sure it'll introduce some new tickets).

this gets the dialog box brandon coded working so you can now setup an
analysis from the gui.

I think this finishes everything tristan's mussa had, and I think it took
5 weeks instead of the 3-4 estimated.

18 years agoIncrease line thickness
Diane Trout [Wed, 22 Mar 2006 03:00:12 +0000 (03:00 +0000)]
Increase line thickness
On some OS X machines the lines on the opengl canvas were nearly illegible.
I'm guessing it was because they were being rendered as sub-pixel objects
Hopefully this'll fix those problems.

18 years agoprovide more information in the about box.
Diane Trout [Wed, 22 Mar 2006 02:45:42 +0000 (02:45 +0000)]
provide more information in the about box.

18 years agoProgress towards MussaSetupDialog (Currently will cause crash! Be warned!)
Brandon King [Wed, 22 Mar 2006 02:36:02 +0000 (02:36 +0000)]
Progress towards MussaSetupDialog (Currently will cause crash! Be warned!)

18 years agobless osx Qt components and make a .dmg
Diane Trout [Wed, 22 Mar 2006 00:42:24 +0000 (00:42 +0000)]
bless osx Qt components and make a .dmg
OS X needs to have the location of any shared libraries prelinked
(at build time). This does that, and then makes a dmg.

18 years agotell doxygen about motif_editor and mussa_setup_dialog
Diane Trout [Tue, 21 Mar 2006 23:04:30 +0000 (23:04 +0000)]
tell doxygen about motif_editor and mussa_setup_dialog

18 years agoRemoved 'create subanalysis' from menu for now (until implemented)
Brandon King [Tue, 21 Mar 2006 21:06:48 +0000 (21:06 +0000)]
Removed 'create subanalysis' from menu for now (until implemented)

18 years agoAdded two load icons to file menu.
Brandon King [Tue, 21 Mar 2006 21:05:00 +0000 (21:05 +0000)]
Added two load icons to file menu.

18 years agoWork towards MussaSetupDialog (Not finished yet).
Brandon King [Tue, 21 Mar 2006 20:52:04 +0000 (20:52 +0000)]
Work towards MussaSetupDialog (Not finished yet).

18 years agoprovide a user interface to edit motifs
Diane Trout [Tue, 21 Mar 2006 08:46:58 +0000 (08:46 +0000)]
provide a user interface to edit motifs

18 years agoresizing should also change the sequence position indicators
Diane Trout [Tue, 21 Mar 2006 01:19:50 +0000 (01:19 +0000)]
resizing should also change the sequence position indicators

18 years agohopefully this fixes the off by one error
Diane Trout [Tue, 21 Mar 2006 01:08:38 +0000 (01:08 +0000)]
hopefully this fixes the off by one error
with the left sequence position.

18 years agowhen changing alignment the position also needs to update
Diane Trout [Tue, 21 Mar 2006 00:19:20 +0000 (00:19 +0000)]
when changing alignment the position also needs to update

18 years agoset inital left position
Diane Trout [Tue, 21 Mar 2006 00:15:47 +0000 (00:15 +0000)]
set inital left position
when starting with the sequences at a non-zero position, make sure the
positions shown in the sidebar actually corresponds to what sequence
is currently visible (ticket:40)

18 years agoresizing increases the viewable world
Diane Trout [Mon, 20 Mar 2006 23:08:40 +0000 (23:08 +0000)]
resizing increases the viewable world
When resizing increase the amount of world that's visibile in the viewport
(and a couple of { moves.

18 years agochanging the set of links does need to redraw
Diane Trout [Mon, 20 Mar 2006 20:09:16 +0000 (20:09 +0000)]
changing the set of links does need to redraw
Somehow I deleted an update that was needed for redrawing the links.
This puts one back in so changing the threshold works.

18 years agoMussa aligned sequence view seems to work
Diane Trout [Mon, 20 Mar 2006 08:58:30 +0000 (08:58 +0000)]
Mussa aligned sequence view seems to work
I added a "normalizedIndexes" to the ConservedPath classes to return
vectors which don't have any negative path values.

I also think the use of menu entries is a bit annoying as it wont extend
well to large numbers of selected paths. Additionally, deselecting an
alignment doesnt seem to do much as I suspect there's a fair amount of
overlap betwen the various alignments.

But i was eventually able to make them all go away.

18 years agodont crash when loading a new analysis
Diane Trout [Mon, 20 Mar 2006 00:13:45 +0000 (00:13 +0000)]
dont crash when loading a new analysis
Since the MussaAlignedWindow uses a pointer to the mussa analysis, when
we load a different analysis it crashes. So close (and delete) all the
aligned windows when we load a new analysis.

18 years agodraw alignment lines
Diane Trout [Sun, 19 Mar 2006 09:55:13 +0000 (09:55 +0000)]
draw alignment lines
A step toward getting the alignment view... This draws the alignment
lines. And even gets it right occasionally.

Open issues are: reverse complimented sequences get shifted
by the wrong sign. There's an off by one error (ticket:37), and of course
there's a need for a user interface to pick which alignment to use & show.

18 years agorender sequence correctly in mussa aligned window
Diane Trout [Sun, 19 Mar 2006 02:32:41 +0000 (02:32 +0000)]
render sequence correctly in mussa aligned window
My math for locating a sequence when seq_x moved was wrong, so I was
drawing the sequence in some weird off the wall place.

18 years agoimplement zoom in terms of base pairs per pixel
Diane Trout [Sun, 19 Mar 2006 01:10:17 +0000 (01:10 +0000)]
implement zoom in terms of base pairs per pixel
Though the value we return from zoom is actually basepairs/pixels*100
(so i can use int).

I also implemented a zoomOut function that zooms far enough out to fit the
current scene on the display.

18 years agocenter on path
Diane Trout [Sat, 18 Mar 2006 08:23:15 +0000 (08:23 +0000)]
center on path
This manages to make the various sequences line up along some provided path.
(a vector<int> listing the sequences positions).

This has problems because of the use of the negative flag to indicate
reverse compliment (as it moves the sequence the wrong direction).

Additionally to get this to work I had to get all of the glsequence code
necessary to allow non-zero x values.

18 years agodefine window for showing a mussa alignment
Diane Trout [Sat, 18 Mar 2006 02:01:58 +0000 (02:01 +0000)]
define window for showing a mussa alignment
Create a new window to hold the mussa sequence alignment. (aka
show all the sequences lined up at a starting point with lines connecting
base pairs.)

(This also fixes a bug I introduced into the fltk version of mussa back
when I changed paths from just being a vector of ints into an actual
class.)

I still need to actually allow the user to pick the aligned path and show
the conserved base pairs.

18 years agoWork towards MussaSetupDialog
Brandon King [Sat, 18 Mar 2006 01:20:50 +0000 (01:20 +0000)]
Work towards MussaSetupDialog

This patch just adds a director qui/mussa_setup_dialog/ and includes the .cpp and .hpp files to support the dialog box. This patch does not touch any other areas of the code and therefor is a safe patch to pull (without worrying about merge conflicts).

18 years agoZoom Icon Patch
Brandon King [Sat, 18 Mar 2006 01:08:18 +0000 (01:08 +0000)]
Zoom Icon Patch

18 years agorefactored PathScene into SequenceBrowserWidget
Diane Trout [Fri, 17 Mar 2006 07:16:57 +0000 (07:16 +0000)]
refactored PathScene into SequenceBrowserWidget
The thing that was really hurting my brain was trying to keep track of
which of all the classes needed to actually implement the
SequenceBrowserWidget was actually implementing some function.

SequenceBrowserWidget is now the central control widget that manages
how all of the sub-widgets connect.

I could've tried to simplify how the SequenceBrowserWidget::updatePosition
code worked but it was to hard and I didn't bother.

18 years agospecify where the gl.h is on a mac
Diane Trout [Thu, 16 Mar 2006 22:08:11 +0000 (22:08 +0000)]
specify where the gl.h is on a mac

18 years agofix motif coloring
Diane Trout [Thu, 16 Mar 2006 09:03:30 +0000 (09:03 +0000)]
fix motif coloring
Need to force tying a GlSequence's AnnotationColor mapper to the one in
the mussa analysis, not the default being created in GlTracks

18 years agotrack labels
Diane Trout [Thu, 16 Mar 2006 08:14:36 +0000 (08:14 +0000)]
track labels
ticket:3
This adds two side bars to the PathWidget that show the current position
(and the total length of the sequence, and should show the name).

Scrolling the viewport around makes the position number change too.
(Which revealed a bug that glsequence.leftbase would return values larger
than the sequence).

I also fixed the default size hint.

However all is not completely well, I really need to specialize the
right and left sidebars. And there were way too many classes created for
trying to handle all the user interface widgets. And I'm the locations
of the various signals and updating code could certainly be better thought
out.