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
97c02df2
Commit
97c02df2
authored
17 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
fix subpart to string convertor.
parent
87d090c9
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/zmapFeature/zmapFeatureFormatInput.c
+16
-4
16 additions, 4 deletions
src/zmapFeature/zmapFeatureFormatInput.c
with
16 additions
and
4 deletions
src/zmapFeature/zmapFeatureFormatInput.c
+
16
−
4
View file @
97c02df2
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapFeature.h
* HISTORY:
* Last edited:
Dec 11 11
:0
4
200
6
(edgrif)
* Last edited:
Jan 4 10
:0
2
200
8
(edgrif)
* Created: Thu Sep 15 12:01:30 2005 (rds)
* CVS info: $Id: zmapFeatureFormatInput.c,v 1.1
2
200
6-12-11 11:4
4:
0
4 edgrif Exp $
* CVS info: $Id: zmapFeatureFormatInput.c,v 1.1
3
200
8-01-04 10:0
4:
1
4 edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -261,7 +261,6 @@ char *zMapFeatureType2Str(ZMapFeatureType type)
char
*
zMapFeatureSubPart2Str
(
ZMapFeatureSubpartType
subpart
)
{
static
char
*
subparts
[]
=
{
"."
,
"Intron"
,
"Exon"
,
"Exon (CDS)"
,
"Gap"
,
"Match"
}
;
char
*
subpart_str
;
zMapAssert
(
subpart
==
ZMAPFEATURE_SUBPART_INVALID
...
...
@@ -269,7 +268,20 @@ char *zMapFeatureSubPart2Str(ZMapFeatureSubpartType subpart)
||
subpart
==
ZMAPFEATURE_SUBPART_EXON_CDS
||
subpart
==
ZMAPFEATURE_SUBPART_GAP
||
subpart
==
ZMAPFEATURE_SUBPART_MATCH
)
;
subpart_str
=
subparts
[
subpart
]
;
/* Ok, for now the subpart enum has shifted values to allow OR'ing of other flags into it,
* hence we need to do these tests...this may change back sometime. */
if
(
subpart
&
ZMAPFEATURE_SUBPART_EXON_CDS
)
subpart_str
=
"Exon (CDS)"
;
else
if
(
subpart
&
ZMAPFEATURE_SUBPART_EXON
)
subpart_str
=
"Exon"
;
else
if
(
subpart
&
ZMAPFEATURE_SUBPART_INTRON
)
subpart_str
=
"Intron"
;
else
if
(
subpart
&
ZMAPFEATURE_SUBPART_GAP
)
subpart_str
=
"Gap"
;
else
if
(
subpart
&
ZMAPFEATURE_SUBPART_MATCH
)
subpart_str
=
"Match"
;
else
zMapAssertNotReached
()
;
return
subpart_str
;
}
...
...
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