def buildMetadata( key, type="String", number="1", value="", id="", description=""): # All input are strings metadata = protocol.VariantSetMetadata() metadata.key = key metadata.value = value metadata.id = id metadata.type = type metadata.number = number metadata.description = description return metadata
def buildMetadata( key, type_="String", number="1", value="", id_="", description=""): # All input are strings metadata = protocol.VariantSetMetadata() metadata.key = key metadata.value = value metadata.type = type_ metadata.number = number metadata.description = description if id_ == '': id_ = self.getMetadataId(metadata) metadata.id = id_ return metadata