cwltool.cwlprov.ro ================== .. py:module:: cwltool.cwlprov.ro .. autoapi-nested-parse:: Stores class definition of ResearchObject and WritableBagFile. Classes ------- .. autoapisummary:: cwltool.cwlprov.ro.ResearchObject Module Contents --------------- .. py:class:: ResearchObject(fsaccess, temp_prefix_ro = 'tmp', orcid = '', full_name = '') CWLProv Research Object. .. py:attribute:: temp_prefix :value: 'tmp' .. py:attribute:: orcid :value: '' .. py:attribute:: full_name :value: '' .. py:attribute:: folder .. py:attribute:: closed :value: False .. py:attribute:: bagged_size :type: dict[str, int] .. py:attribute:: tagfiles :type: set[str] .. py:attribute:: annotations :type: list[cwltool.cwlprov.Annotation] :value: [] .. py:attribute:: fsaccess .. py:attribute:: engine_uuid :value: 'urn:uuid:Instance of uuid.UUID' .. py:attribute:: ro_uuid .. py:attribute:: base_uri :value: 'arcp://uuid,Instance of uuid.UUID/' .. py:attribute:: cwltool_version .. py:attribute:: has_manifest :value: False .. py:attribute:: relativised_input_object :type: cwl_utils.types.CWLObjectType .. py:method:: initialize_provenance(full_name, host_provenance, user_provenance, orcid, fsaccess, run_uuid = None) Provide a provenance profile initialization hook function. Allows overriding the default strategy to define the provenance profile concepts and associations to extend details as needed. .. py:method:: self_check() Raise ValueError if this RO is closed. .. py:method:: __str__() Represent this RO as a string. .. py:method:: resolve_user() Provide a user provenance hook function. Allows overriding the default strategy to retrieve user provenance in case the calling code can provide a better resolution. The function must return a tuple of the (username, fullname) that identifies the user. This user will be applied on top to any provided ORCID or fullname by agent association. .. py:method:: user_provenance(document) Add the user provenance. .. py:method:: resolve_host() Provide a host provenance hook function. Allows overriding the default strategy to retrieve host provenance in case the calling code can provide a better resolution. The function must return a tuple of the (fqdn, uri) that identifies the host. .. py:method:: host_provenance(document) Record host provenance. .. py:method:: add_tagfile(path, timestamp = None) Add tag files to our research object. .. py:method:: add_uri(uri, timestamp = None) Add the given URI to this RO. .. py:method:: add_annotation(about, content, motivated_by = 'oa:describing') Cheap URI relativize for current directory and /. .. py:method:: generate_snapshot(prov_dep) Copy all of the CWL files to the snapshot/ directory. .. py:method:: has_data_file(sha1hash) Confirm the presence of the given file in the RO. .. py:method:: add_data_file(from_fp, timestamp = None, content_type = None) Copy inputs to data/ folder. .. py:method:: add_to_manifest(rel_path, checksums) Add files to the research object manifest.