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
c031cef2
Commit
c031cef2
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
Change returned feature struct to include sequence, start/end.
parent
330b358a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/ZMap/zmapGFF.h
+4
-4
4 additions, 4 deletions
src/include/ZMap/zmapGFF.h
src/zmapGFF/zmapGFF2parser.c
+13
-7
13 additions, 7 deletions
src/zmapGFF/zmapGFF2parser.c
with
17 additions
and
11 deletions
src/include/ZMap/zmapGFF.h
+
4
−
4
View file @
c031cef2
...
...
@@ -28,16 +28,16 @@
* of ZMapFeatureStruct's, one for each GFF source.
*
* HISTORY:
* Last edited: Jun 2
2 09:43
2004 (edgrif)
* Last edited: Jun 2
5 12:06
2004 (edgrif)
* Created: Sat May 29 13:18:32 2004 (edgrif)
* CVS info: $Id: zmapGFF.h,v 1.
3
2004-06-2
2
1
2:26:39
edgrif Exp $
* CVS info: $Id: zmapGFF.h,v 1.
4
2004-06-2
5
1
3:31:53
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_GFF_H
#define ZMAP_GFF_H
#include
<glib.h>
#include
<ZMap/zmapFeature.h>
/* An instance of a parser. */
typedef
struct
ZMapGFFParserStruct_
*
ZMapGFFParser
;
...
...
@@ -55,7 +55,7 @@ void zMapGFFSetParseOnly(ZMapGFFParser parser, gboolean parse_only) ;
void
zMapGFFSetSOCompliance
(
ZMapGFFParser
parser
,
gboolean
SO_compliant
)
;
GData
*
zmapGFFGetFeatures
(
ZMapGFFParser
parser
)
;
ZMapFeatureContext
zmapGFFGetFeatures
(
ZMapGFFParser
parser
)
;
int
zMapGFFGetVersion
(
ZMapGFFParser
parser
)
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapGFF/zmapGFF2parser.c
+
13
−
7
View file @
c031cef2
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: See ZMap/zmapGFF.h
* HISTORY:
* Last edited: Jun 2
2
1
3:36
2004 (
rnc
)
* Last edited: Jun 2
5
1
0:55
2004 (
edgrif
)
* Created: Fri May 28 14:25:12 2004 (edgrif)
* CVS info: $Id: zmapGFF2parser.c,v 1.
4
2004-06-2
2
1
2
:3
8:25 rnc
Exp $
* CVS info: $Id: zmapGFF2parser.c,v 1.
5
2004-06-2
5
1
3
:3
1:32 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -207,18 +207,24 @@ GArray *zmapGFFGetFeatures(ZMapGFFParser parser)
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
GData
*
zmapGFFGetFeatures
(
ZMapGFFParser
parser
)
ZMapFeatureContext
zmapGFFGetFeatures
(
ZMapGFFParser
parser
)
{
GData
*
features
=
NULL
;
ZMapFeatureContext
feature_context
=
NULL
;
if
(
!
parser
->
parse_only
)
{
g_datalist_init
(
&
features
)
;
feature_context
=
g_new
(
ZMapFeatureContextStruct
,
1
)
;
g_datalist_foreach
(
&
(
parser
->
feature_sets
),
getFeatureArray
,
&
features
)
;
feature_context
->
sequence
=
g_strdup
(
parser
->
sequence_name
)
;
feature_context
->
start
=
parser
->
sequence_start
;
feature_context
->
end
=
parser
->
sequence_end
;
g_datalist_init
(
&
(
feature_context
->
features
))
;
g_datalist_foreach
(
&
(
parser
->
feature_sets
),
getFeatureArray
,
&
(
feature_context
->
features
))
;
}
return
feature
s
;
return
feature
_context
;
}
...
...
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