Source code for datacatalog.formats.biofab.convert

import sys
from ..converter import Converter, ConversionError, ValidationError

[docs]class Biofab(Converter): """Convert UW-Biofab provenance exports to sample-set schema""" VERSION = '0.0.1' FILENAME = 'biofab_provenance'
[docs] def convert(self, input_fp, output_fp=None, verbose=True, config={}, enforce_validation=True): """Do the conversion by running a method in runner.py""" from .runner import convert_biofab passed_config = config if config != {} else self.options return convert_biofab(self.targetschema, self.encoding, input_fp, verbose=verbose, config=passed_config, output_file=output_fp, enforce_validation=enforce_validation)