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
035ec48a
Commit
035ec48a
authored
18 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add a graph style mode and some individual graph modes and a function to set the mode.
parent
b23a4394
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/include/ZMap/zmapFeature.h
+20
-7
20 additions, 7 deletions
src/include/ZMap/zmapFeature.h
with
20 additions
and
7 deletions
src/include/ZMap/zmapFeature.h
+
20
−
7
View file @
035ec48a
...
...
@@ -25,9 +25,9 @@
* Description: Data structures describing a sequence feature.
*
* HISTORY:
* Last edited: Dec
12 14:53
2006 (
rds
)
* Last edited: Dec
21 12:12
2006 (
edgrif
)
* Created: Fri Jun 11 08:37:19 2004 (edgrif)
* CVS info: $Id: zmapFeature.h,v 1.10
7
2006-12-
13 08:31:36 rds
Exp $
* CVS info: $Id: zmapFeature.h,v 1.10
8
2006-12-
21 12:14:03 edgrif
Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_FEATURE_H
...
...
@@ -315,10 +315,9 @@ typedef struct
struct
{
unsigned
int
perfect
:
1
;
/* If align != NULL and perfect == TRUE
then gaps array is a "perfect"
alignment within style specified
slop factor. */
/* If align != NULL and perfect == TRUE then gaps array is a "perfect"
* alignment with allowance for a style specified slop factor. */
unsigned
int
perfect
:
1
;
}
flags
;
}
ZMapHomolStruct
,
*
ZMapHomol
;
...
...
@@ -453,11 +452,21 @@ typedef enum
ZMAPSTYLE_MODE_BASIC
,
/* Basic box features. */
ZMAPSTYLE_MODE_TRANSCRIPT
,
/* Usual transcript like structure. */
ZMAPSTYLE_MODE_ALIGNMENT
,
/* Usual homology structure. */
ZMAPSTYLE_MODE_TEXT
/* Text only display. */
ZMAPSTYLE_MODE_TEXT
,
/* Text only display. */
ZMAPSTYLE_MODE_GRAPH
/* Graphs of various types. */
}
ZMapStyleMode
;
/* Specifies the style of graph. */
typedef
enum
{
ZMAPSTYLE_GRAPH_INVALID
,
/* Initial setting. */
ZMAPSTYLE_GRAPH_LINE
,
/* Just points joining a line. */
ZMAPSTYLE_GRAPH_HISTOGRAM
/* Usual blocky like graph. */
}
ZMapStyleGraphMode
;
/* Specifies how wide features should be in relation to their score. */
typedef
enum
...
...
@@ -509,6 +518,9 @@ typedef struct ZMapFeatureTypeStyleStruct_
ZMapStyleMode
mode
;
/* Specifies how features that
reference this style will be processed. */
ZMapStyleGraphMode
graph_mode
;
/* Says how to draw a graph. */
double
baseline
;
struct
{
/* I don't want a general show/hide flag here because we should
...
...
@@ -766,6 +778,7 @@ gboolean zMapStyleFormatMode(char *mode_str, ZMapStyleMode *mode_out) ;
void
zMapStyleSetColours
(
ZMapFeatureTypeStyle
style
,
char
*
outline
,
char
*
foreground
,
char
*
background
)
;
void
zMapStyleSetMag
(
ZMapFeatureTypeStyle
style
,
double
min_mag
,
double
max_mag
)
;
void
zMapStyleSetScore
(
ZMapFeatureTypeStyle
style
,
double
min_score
,
double
max_score
)
;
void
zMapStyleSetGraph
(
ZMapFeatureTypeStyle
style
,
ZMapStyleGraphMode
mode
,
double
min
,
double
max
,
double
baseline
)
;
void
zMapStyleSetStrandAttrs
(
ZMapFeatureTypeStyle
type
,
gboolean
strand_specific
,
gboolean
frame_specific
,
gboolean
show_rev_strand
,
gboolean
show_as_3_frame
)
;
...
...
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