Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to HMM/Profile.pm and HMM/Utilities.pm that allow an optional
alternate method of splitting column heights. The default is still the old way of using emission probabilities; the new way is to use log odds scores, and only let positive-scoring residues play a part in the column. This is acheived by adding the '--height_logodds 1' flag to a call to draw_logo. Implemented a fix to let HMM-Logo read newer formats from HMMER's hmmbuild, as the new format 3/e caused crashes in the old '_parseFile3' function. Implements a new function 'print_logo_dimensions' that works like 'draw_logo', but instead of creating a png, it prints out the dimensions of each HMM position (insert widths, and residue height/widths). This is a cleaner format than the 'flat' output, and will enable post- processing of those dimensions. pulls the "foreach my $key (@drawOrder){" block of code in 'draw_logo' into the 'else' case, to avoid the occasional bug of printing residue stacks inside the insert columns. make_profile.pl is added in order to provide an example for using the above changes. (I chose not to modify hmm2logo.pl, but wouldn't mind if changes from make_profile.pl were placed into hmm2logo.pl, then make_profile was removed).
- Loading branch information
Travis Wheeler
committed
Jan 20, 2012
1 parent
a1e77a2
commit 835bd91
Showing
3 changed files
with
255 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.