MAGE::XML::Reader(3pm) | User Contributed Perl Documentation | MAGE::XML::Reader(3pm) |
Bio::MAGE::XML::Reader - a module for exporting MAGE-ML
use Bio::MAGE::XML::Reader; my $reader = Bio::MAGE::XML::Reader->new(handler=>$handler, sax1=>$sax1, verbose=>$verbose, log_file=>\*STDERR, ); # set the sax1 attribute $reader->sax1($bool); # get the current value $value = $reader->sax1(); # set the content/document handler - this method is provided for completeness # the value should be set in the call to the constructor to be effective $reader->handler($HANDLER); # get the current handler $handler = $reader->handler(); # set the attribute $reader->verbose($integer); # get the current value $value = $reader->verbose(); # set the attribute $reader->log_file($filename); # get the current value $value = $reader->log_file(); # whether to read data cubes externally (default == FALSE) $writer->external_data($bool); my $fh = \*STDOUT; my $mage = $reader->read($file_name);
Methods for transforming information from a MAGE-OM objects into MAGE-ML.
These methods have a polymorphic setter/getter method that sets an attribute which affects the parsing of MAGE-ML. If given a value, the method will save the value to the attribute, if invoked with no argument it will return the current value of the attribute.
These attributes can all be set in the call to the constructor using the named parameter style.
called with the integer parameter that specifies the desired level of output
called with the file handle to which output should be sent
called during the constructor for any needed work
Title : parser Usage : $obj->parser($newval) Function: Example : Returns : value of parser (a scalar) Args : on set, new value (a scalar or undef, optional)
Default Value: false
Default Value: false
"read()" can read from STDIN by specifying '-' as the filename. This enables you to handle compressed XML files:
gzip -dc file.xml.gz | read.pl [options]
Hey! The above document had some coding errors, which are explained below:
2020-12-01 | perl v5.32.0 |