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
581a43e6
Commit
581a43e6
authored
17 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add more code for the stats recording code.
parent
c93af22b
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/zmapWindow_P.h
+92
-25
92 additions, 25 deletions
src/zmapWindow/zmapWindow_P.h
with
92 additions
and
25 deletions
src/zmapWindow/zmapWindow_P.h
+
92
−
25
View file @
581a43e6
...
...
@@ -26,9 +26,9 @@
* Description: Defines internal interfaces/data structures of zMapWindow.
*
* HISTORY:
* Last edited:
Sep 27 17:09
2007 (edgrif)
* Last edited:
Oct 12 09:15
2007 (edgrif)
* Created: Fri Aug 1 16:45:58 2003 (edgrif)
* CVS info: $Id: zmapWindow_P.h,v 1.19
5
2007-10-
04
10:
01:51
edgrif Exp $
* CVS info: $Id: zmapWindow_P.h,v 1.19
6
2007-10-
12
10:
52:32
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_P_H
...
...
@@ -62,6 +62,83 @@
#define ITEM_FEATURE_DATA ZMAP_WINDOW_P_H "item_feature_data"
/* All Align/Block/Column/Feature FooCanvas containers have stats blocks attached to them
* via this key, below structs show data collected for each. */
#define ITEM_FEATURE_STATS ZMAP_WINDOW_P_H "item_feature_stats"
/* All feature stats structs must have these common fields at their start. */
typedef
struct
{
ZMapFeatureType
feature_type
;
ZMapFeatureTypeStyle
style
;
int
num_children
;
int
num_items
;
}
ZMapWindowStatsAnyStruct
,
*
ZMapWindowStatsAny
;
typedef
struct
{
ZMapFeatureType
feature_type
;
ZMapFeatureTypeStyle
style
;
int
features
;
int
items
;
}
ZMapWindowStatsBasicStruct
,
*
ZMapWindowStatsBasic
;
typedef
struct
{
ZMapFeatureType
feature_type
;
ZMapFeatureTypeStyle
style
;
int
transcripts
;
int
items
;
/* Transcript specific stats. */
int
exons
;
int
introns
;
int
cds
;
int
exon_boxes
;
int
intron_boxes
;
int
cds_boxes
;
}
ZMapWindowStatsTranscriptStruct
,
*
ZMapWindowStatsTranscript
;
/* Alignment stats. */
typedef
struct
{
ZMapFeatureType
feature_type
;
ZMapFeatureTypeStyle
style
;
int
total_matches
;
/* All matches drawn. */
int
items
;
/* Alignment specific stats. */
int
ungapped_matches
;
/* Ungapped matches drawn. */
int
gapped_matches
;
/* Gapped matches drawn as gapped matches. */
int
not_perfect_gapped_matches
;
/* Gapped matches drawn as ungapped because
failed quality check. */
int
total_boxes
;
/* Total alignment boxes drawn. */
int
ungapped_boxes
;
/* Ungapped boxes drawn. */
int
gapped_boxes
;
/* Gapped boxes drawn. */
int
imperfect_boxes
;
/* Gapped boxes _not_ drawn because of
quality check. */
}
ZMapWindowStatsAlignStruct
,
*
ZMapWindowStatsAlign
;
#define zmapWindowStatsAddBasic(STATS_PTR, FEATURE_PTR) \
(ZMapWindowStatsBasic)zmapWindowStatsAddChild((STATS_PTR), (ZMapFeatureAny)(FEATURE_PTR))
#define zmapWindowStatsAddTranscript(STATS_PTR, FEATURE_PTR) \
(ZMapWindowStatsTranscript)zmapWindowStatsAddChild((STATS_PTR), (ZMapFeatureAny)(FEATURE_PTR))
#define zmapWindowStatsAddAlign(STATS_PTR, FEATURE_PTR) \
(ZMapWindowStatsAlign)zmapWindowStatsAddChild((STATS_PTR), (ZMapFeatureAny)(FEATURE_PTR))
/* Feature set data, this struct is attached to all FooCanvas column objects via ITEM_FEATURE_SET_DATA key. */
#define ITEM_FEATURE_SET_DATA ZMAP_WINDOW_P_H "item_feature_set_data"
typedef
struct
...
...
@@ -383,7 +460,9 @@ typedef struct _ZMapWindowMarkStruct *ZMapWindowMark ;
typedef
struct
_ZMapWindowLongItemsStruct
*
ZMapWindowLongItems
;
typedef
struct
_ZMapWindowFToIFactoryStruct
*
ZMapWindowFToIFactory
;
typedef
struct
_ZMapWindowFToIFactoryStruct
*
ZMapWindowFToIFactory
;
typedef
struct
_ZMapWindowStatsStruct
*
ZMapWindowStats
;
/* My intention is to gradually put all configuration data (spacing, borders, colours etc)
...
...
@@ -399,27 +478,6 @@ typedef struct
}
ZMapWindowConfigStruct
,
*
ZMapWindowConfig
;
/* Stats struct, useful for debugging but also for general information about a window. */
typedef
struct
{
/* Alignment stats. */
int
total_matches
;
/* All matches drawn. */
int
gapped_matches
;
/* Gapped matches drawn as gapped matches. */
int
not_perfect_gapped_matches
;
/* Gapped matches drawn as ungapped because
failed quality check. */
int
ungapped_matches
;
/* Ungapped matches drawn. */
int
total_boxes
;
/* Total alignment boxes drawn. */
int
gapped_boxes
;
/* Gapped boxes drawn. */
int
ungapped_boxes
;
/* Ungapped boxes drawn. */
int
imperfect_boxes
;
/* Gapped boxes _not_ drawn because of
quality check. */
}
ZMapWindowStatsStruct
,
*
ZMapWindowStats
;
/* Represents a single sequence display window with its scrollbars, canvas and feature
...
...
@@ -430,7 +488,12 @@ typedef struct _ZMapWindowStruct
ZMapWindowConfigStruct
config
;
/* Holds window configuration info. */
ZMapWindowStatsStruct
stats
;
/* Holds statitics about no. of features etc. */
/* this needs to go..... */
ZMapWindowStats
stats
;
/* Holds statitics about no. of
features etc. */
/* Widgets for displaying the data. */
GtkWidget
*
parent_widget
;
...
...
@@ -1125,8 +1188,12 @@ void zmapWindowRulerGroupDraw(FooCanvasGroup *parent, double project_at,
/* End Ruler Functions */
ZMapWindowStats
zmapWindowStatsCreate
(
ZMapFeatureAny
feature_any
)
;
ZMapWindowStatsAny
zmapWindowStatsAddChild
(
ZMapWindowStats
stats
,
ZMapFeatureAny
feature_any
)
;
void
zmapWindowStatsReset
(
ZMapWindowStats
stats
)
;
void
zmapWindowStatsPrint
(
ZMapWindowStats
stats
)
;
void
zmapWindowStatsDestroy
(
ZMapWindowStats
stats
)
;
ZMapWindowItemFeatureSetData
zmapWindowItemFeatureSetCreate
(
ZMapWindow
window
,
ZMapFeatureTypeStyle
style
,
...
...
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