PyPop.popaggregate#
Module for collecting multiple population outputs.
Classes#
Aggregates output from multiple population runs. |
Functions#
|
Transform XML string using XSLT and save to stdout. |
|
Transform XML string using XSLT and save to file. |
|
Transform XML file using XSLT and save to stdout. |
|
Transform XML file using XSLT and save to a file. |
Module Contents#
- class Meta(popmetabinpath=None, datapath=None, metaXSLTDirectory=None, dump_meta=False, TSV_output=True, prefixTSV=None, PHYLIP_output=False, ihwg_output=False, batchsize=0, outputDir=None, xml_files=None)#
Aggregates output from multiple population runs.
Transform a specified list of
.xmloutput files to.tsvtab-separated values (TSV) form.- Parameters:
popmetabinpath (str) – the directory for where meta sources are kept
datapath (str) – data where XSLT and other meta sources may be kept
metaXSLTDirectory (str) – fallback XSLT directory
dump_meta (bool) – create the
meta.xmlfile (default toFalse,)TSV_output (bool) – output
.tsvtables by default (enabled by default). (such tables can be used by R)prefixTSV (str) – prefix to use for all
.tsvfilesPHYLIP_output (bool) – create PHYLIP output (disabled by default)
ihwg_output (bool) – by default, don’t enable the 13th IHWG format headers
batchsize (int) – size of batches to process separately (default
batchsize=0, a separate batch for each file)outputDir (str) – output directory to write XML files to
xml_files (list) – list of generate XML files
- translate_string_to_stdout(xslFilename, inString, outputDir=None, params=None)#
Transform XML string using XSLT and save to stdout.
- translate_string_to_file(xslFilename, inString, outFile, outputDir=None, params=None)#
Transform XML string using XSLT and save to file.
- translate_file_to_stdout(xslFilename, inFile, inputDir=None, params=None)#
Transform XML file using XSLT and save to stdout.
- translate_file_to_file(xslFilename, inFile, outFile, inputDir=None, outputDir=None, params=None)#
Transform XML file using XSLT and save to a file.
- Parameters:
- Returns:
transformation successful
- Return type: