Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
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
zmap
Commits
87d146ed
Commit
87d146ed
authored
19 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
renamed zmapWindowClampStartEnd zmapWindowClampedAtStartEnd
made it work and removed some unused code
parent
4a5629ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowUtils.c
+13
-19
13 additions, 19 deletions
src/zmapWindow/zmapWindowUtils.c
with
13 additions
and
19 deletions
src/zmapWindow/zmapWindowUtils.c
+
13
−
19
View file @
87d146ed
...
...
@@ -26,13 +26,14 @@
*
* Exported functions: See ZMap/zmapWindow.h
* HISTORY:
* Last edited: Mar
17 12:20
2006 (rds)
* Last edited: Mar
20 18:14
2006 (rds)
* Created: Thu Jan 20 14:43:12 2005 (edgrif)
* CVS info: $Id: zmapWindowUtils.c,v 1.2
6
2006-03-
17 12:20
:2
5
rds Exp $
* CVS info: $Id: zmapWindowUtils.c,v 1.2
7
2006-03-
20 18:15
:2
3
rds Exp $
*-------------------------------------------------------------------
*/
#include
<string.h>
#include
<math.h>
#include
<ZMap/zmapUtils.h>
#include
<zmapWindow_P.h>
...
...
@@ -42,14 +43,6 @@ static void cropLongItem(gpointer data, gpointer user_data) ;
static
void
freeLongItem
(
gpointer
data
,
gpointer
user_data_unused
)
;
gint
findLongItemCB
(
gconstpointer
data
,
gconstpointer
user_data
)
;
#ifdef NOTDEFINEDHERE
static
void
moveExonsIntrons
(
ZMapWindow
window
,
ZMapFeature
origFeature
,
GArray
*
origArray
,
GArray
*
modArray
,
int
transcriptOrigin
,
gboolean
isExon
);
#endif
typedef
struct
windowScrollRegionStruct_
{
ZMapWindow
window
;
...
...
@@ -145,35 +138,36 @@ void zmapWindowSeq2CanOffset(double *start_inout, double *end_inout, double offs
return
;
}
ZMapWindowClampType
zmapWindowClampStartEnd
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
ZMapWindowClampType
zmapWindowClamp
edAt
StartEnd
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
{
ZMapWindowClampType
clamp
=
ZMAP_WINDOW_CLAMP_INIT
;
double
top
,
bot
;
double
top
,
bot
,
crc
=
0
.
0
;
top
=
*
top_inout
;
bot
=
*
bot_inout
;
if
(
top
<
=
window
->
min_coord
)
if
(
top
<
window
->
min_coord
)
{
top
=
window
->
min_coord
;
clamp
|=
ZMAP_WINDOW_CLAMP_START
;
}
#warning THIS IS VERY WRONG ROY!!!! SORT IT OUT!
if
(
bot
>=
(
window
->
max_coord
-
1
))
else
if
(
floor
(
top
)
==
window
->
min_coord
)
clamp
|=
ZMAP_WINDOW_CLAMP_START
;
if
(
bot
>
window
->
max_coord
)
{
if
(
bot
-
window
->
max_coord
>
window
->
max_coord
-
window
->
min_coord
)
printf
(
"*** BIG DIFFERENCE BETWEEN bottom and end of sequence ***
\n
"
);
bot
=
window
->
max_coord
;
clamp
|=
ZMAP_WINDOW_CLAMP_END
;
}
else
if
(
ceil
(
bot
)
==
window
->
max_coord
)
clamp
|=
ZMAP_WINDOW_CLAMP_END
;
*
top_inout
=
top
;
*
bot_inout
=
bot
;
return
clamp
;
}
/* Clamps the span within the length of the sequence,
* possibly shifting the span to keep it the same size. */
ZMapWindowClampType
zmapWindowClampSpan
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
...
...
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