1 """@namespace IMP.pmi.metadata
2 Classes for attaching metadata to PMI objects.
4 @note All of these classes are deprecated; use classes from the ihm package
8 from __future__
import print_function, division
14 class Software(ihm.Software):
15 def __init__(self, name, classification, description, url, type='program',
17 super(Software, self).__init__(name=name, classification=classification,
18 description=description, location=url,
19 type=type, version=version)
23 class Citation(ihm.Citation):
28 class Repository(ihm.location.Repository):
33 "Use a subclass of ihm.location.FileLocation instead")
34 class FileLocation(ihm.location.FileLocation):
39 class EMMicrographsDataset(ihm.dataset.EMMicrographsDataset):
40 def __init__(self, location, number):
41 super(EMMicrographsDataset, self).__init__(location)
46 class MassIVELocation(ihm.location.MassIVELocation):
51 class MassSpecDataset(ihm.dataset.MassSpecDataset):
56 class EMDBLocation(ihm.location.EMDBLocation):
61 class EMPIARLocation(ihm.location.EMPIARLocation):
66 class SASBDBLocation(ihm.location.SASBDBLocation):
71 class EMDensityDataset(ihm.dataset.EMDensityDataset):
76 class SASDataset(ihm.dataset.SASDataset):
81 def PythonScript(location):
82 location.content_type = ihm.location.WorkflowFileLocation.content_type
87 "Use ihm.location.VisualizationFileLocation instead")
88 def ChimeraXCommandScript(location):
89 location.content_type = ihm.location.VisualizationFileLocation.content_type
def deprecated_function
Python decorator to mark a function as deprecated.
def deprecated_object
Python decorator to mark a class as deprecated.