Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
seqtools
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
seqtools
Commits
14269353
Commit
14269353
authored
14 years ago
by
gb10
Browse files
Options
Downloads
Patches
Plain Diff
Replaced messcrash with g_error
parent
0a40ed5e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dotter.c
+5
-3
5 additions, 3 deletions
dotter.c
dotterKarlin.c
+2
-5
2 additions, 5 deletions
dotterKarlin.c
dotterMain.c
+8
-13
8 additions, 13 deletions
dotterMain.c
with
15 additions
and
21 deletions
dotter.c
+
5
−
3
View file @
14269353
...
...
@@ -29,7 +29,7 @@
* * Mar 17 16:24 1999 (edgrif): Fixed bug which crashed xace when a
* negative alignment length was given.
* Created: Wed Mar 17 16:23:21 1999 (edgrif)
* CVS info: $Id: dotter.c,v 1.1
2
2010-08-31 15:
30:55
gb10 Exp $
* CVS info: $Id: dotter.c,v 1.1
3
2010-08-31 15:
46:31
gb10 Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -1769,7 +1769,8 @@ static void YdrawSEGxy(MSP *msp, float offset)
static
int
isHorizontalMSP
(
MSP
*
msp
)
{
if
(
!
msp
->
qname
)
messcrash
(
"No qname set in MSP - I need this to associate it with one of the sequences"
);
if
(
!
msp
->
qname
)
g_error
(
"No qname set in MSP - I need this to associate it with one of the sequences"
);
if
(
!
strcasecmp
(
msp
->
qname
,
qname
)
||
!
strcmp
(
msp
->
qname
,
"@1"
))
return
1
;
...
...
@@ -1780,7 +1781,8 @@ static int isHorizontalMSP(MSP *msp) {
static
int
isVerticalMSP
(
MSP
*
msp
)
{
if
(
!
msp
->
qname
)
messcrash
(
"No qname set in MSP - I need this to associate it with one of the sequences"
);
if
(
!
msp
->
qname
)
g_error
(
"No qname set in MSP - I need this to associate it with one of the sequences"
);
if
(
!
strcasecmp
(
msp
->
qname
,
sname
)
||
!
strcmp
(
msp
->
qname
,
"@2"
))
return
1
;
...
...
This diff is collapsed.
Click to expand it.
dotterKarlin.c
+
2
−
5
View file @
14269353
/* Last edited: Oct 26 10:45 2003 (edgrif) */
/* $Id: dotterKarlin.c,v 1.
2
2010-08-31 15:
30:55
gb10 Exp $ */
/* $Id: dotterKarlin.c,v 1.
3
2010-08-31 15:
46:31
gb10 Exp $ */
/*
-------------------------------------------------------------
...
...
@@ -31,11 +31,8 @@
*/
#include
<ctype.h>
#include
"regular.h"
#include
"graph.h"
#include
"gex.h"
#include
"dotter_.h"
#include
<gtk/gtk.h>
#define MAXIT 20
/* Maximum number of iterations used in calculating K */
...
...
This diff is collapsed.
Click to expand it.
dotterMain.c
+
8
−
13
View file @
14269353
...
...
@@ -26,7 +26,7 @@
* HISTORY:
* Last edited: Aug 26 15:42 2009 (edgrif)
* Created: Thu Aug 26 17:17:30 1999 (fw)
* CVS info: $Id: dotterMain.c,v 1.1
2
2010-08-31 15:
30:55
gb10 Exp $
* CVS info: $Id: dotterMain.c,v 1.1
3
2010-08-31 15:
46:31
gb10 Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -237,11 +237,6 @@ static char* getUsageText()
int
main
(
int
argc
,
char
**
argv
)
{
/* Set the message handlers */
g_log_set_default_handler
(
defaultMessageHandler
,
NULL
);
g_log_set_handler
(
NULL
,
G_LOG_LEVEL_ERROR
|
G_LOG_LEVEL_CRITICAL
,
popupMessageHandler
,
NULL
);
DotterOptions
options
=
{
0
,
0
,
0
,
UNSET_INT
,
UNSET_INT
,
0
,
0
,
1
,
0
,
0
,
0
.
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
};
char
...
...
@@ -570,7 +565,7 @@ int main(int argc, char **argv)
}
else
if
(
!
(
file
=
fopen
(
options
.
FSfilename
,
"r"
)))
{
messcrash
(
"Cannot open %s
\n
"
,
options
.
FSfilename
);
g_error
(
"Cannot open %s
\n
"
,
options
.
FSfilename
);
}
GList
*
seqList
=
NULL
;
/* parser compiles a list of BlxSequences into here; not required for dotter */
...
...
@@ -625,6 +620,11 @@ int main(int argc, char **argv)
if
(
!
options
.
savefile
)
{
/* Set the message handlers. (Do this here because we don't want graphical dialog
* boxes for batch mode.) */
g_log_set_default_handler
(
defaultMessageHandler
,
NULL
);
g_log_set_handler
(
NULL
,
G_LOG_LEVEL_ERROR
|
G_LOG_LEVEL_CRITICAL
,
popupMessageHandler
,
NULL
);
dotter
(
type
,
opts
,
options
.
qname
,
qseq
,
options
.
qoffset
,
options
.
sname
,
sseq
,
options
.
soffset
,
0
,
0
,
options
.
savefile
,
options
.
loadfile
,
options
.
mtxfile
,
options
.
memoryLimit
,
options
.
dotterZoom
,
MSPlist
,
0
,
options
.
winsize
,
options
.
pixelFacset
)
;
...
...
@@ -635,12 +635,7 @@ int main(int argc, char **argv)
}
else
{
/* stop graphical dialog boxes in batch mode. */
struct
messContextStruct
nullContext
=
{
NULL
,
NULL
};
messOutRegister
(
nullContext
);
messErrorRegister
(
nullContext
);
messExitRegister
(
nullContext
);
messCrashRegister
(
nullContext
);
/* Batch mode */
dotter
(
type
,
opts
,
options
.
qname
,
qseq
,
options
.
qoffset
,
options
.
sname
,
sseq
,
options
.
soffset
,
0
,
0
,
options
.
savefile
,
options
.
loadfile
,
options
.
mtxfile
,
options
.
memoryLimit
,
options
.
dotterZoom
,
MSPlist
,
0
,
options
.
winsize
,
options
.
pixelFacset
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment