Open GoogleCodeExporter opened 9 years ago
I added the following test to check this issue:
to alpha.obo
[Term]
id: MYO:1000008
name: term without a definition
def: "" [src_code:NR]
is_obsolete: true
then to Ontology.t
my $ole = $alpha_onto->get_term_by_id('MYO:1000008');
ok ($ole->def_as_string() eq '"" [src_code:NR]');
which actually works.
Original comment by erick.an...@gmail.com
on 4 Mar 2013 at 7:29
Indeed; what you do works, but none of the lines in your example exports the
data (see point "2" in "What steps...." above). I have here provided two files:
(1) The sample script to produce the bogus file ("erick.pl"), and
(2) the bogus file ("export.obo"):
--------export.obo who was expected to be a lossless back-transformation of
SOB_OBO.obo-----------
{{
[Term]
id: SBO:0000051
name: new term name
is_obsolete: true
}}
Hope this helps in the writing of your internal tests.
Original comment by oeks...@gmail.com
on 4 Mar 2013 at 9:09
Attachments:
Original issue reported on code.google.com by
oeks...@gmail.com
on 28 Feb 2013 at 10:51