

def get_output_ref(self, field, index=None, metadata=None):
    '\n        :param field: Output field name of this analysis\n        :type field: string\n        :param index: If the referenced field is an array, optionally specify an index (starting from 0) to indicate a particular member of the array\n        :type index: int\n        :param metadata: If the referenced field is of a data object class, a string indicating the metadata that should be read, e.g. "name", "properties.propkey", "details.refgenome"\n        :type metadata: string\n\n        Returns a dict containing a valid reference to an output of this analysis.\n        '
    link = {
        '$dnanexus_link': {
            'analysis': self._dxid,
            'field': field,
        },
    }
    if (index is not None):
        link['$dnanexus_link']['index'] = index
    if (metadata is not None):
        link['$dnanexus_link']['metadata'] = metadata
    return link

dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/bindings/dxanalysis.py DXAnalysis.get_output_ref/original