Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OBITools
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools
Commits
98b677a8
Commit
98b677a8
authored
Oct 20, 2008
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GeneOntology Access file reader
parent
3d20fb3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
__init__.py
src/obitools/goa/__init__.py
+0
-0
parser.py
src/obitools/goa/parser.py
+33
-0
No files found.
src/obitools/goa/__init__.py
0 → 100644
View file @
98b677a8
src/obitools/goa/parser.py
0 → 100644
View file @
98b677a8
from
itertools
import
imap
from
obitools
import
utils
class
GoAFileIterator
(
utils
.
ColumnFile
):
def
__init__
(
self
,
stream
):
utils
.
ColumnFile
.
__init__
(
self
,
stream
,
'
\t
'
,
True
,
(
str
,))
_colname
=
[
'database'
,
'ac'
,
'symbol'
,
'qualifier'
,
'goid'
,
'origin'
,
'evidence'
,
'evidnce_origine'
,
'namespace'
,
'db_object_name'
,
'gene'
,
'object_type'
,
'taxid'
,
'date'
,
'assigned_by'
]
def
next
(
self
):
data
=
utils
.
ColumnFile
.
next
(
self
)
data
=
dict
(
imap
(
None
,
GoAFileIterator
.
_colname
,
data
))
return
data
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment