IMP logo
IMP Reference Guide  develop.27926d84dc,2024/04/20
The Integrative Modeling Platform
pmi1/metadata.py
1 """@namespace IMP.pmi1.metadata
2 Classes for attaching metadata to PMI objects.
3 
4 @note All of these classes are deprecated; use classes from the ihm package
5  instead.
6 """
7 
8 from __future__ import print_function, division
9 import IMP
10 import ihm.location
11 import ihm.dataset
12 
13 @IMP.deprecated_object("2.9", "Use ihm.Software instead")
14 class Software(ihm.Software):
15  def __init__(self, name, classification, description, url, type='program',
16  version=None):
17  super(Software, self).__init__(name=name, classification=classification,
18  description=description, location=url,
19  type=type, version=version)
20 
21 
22 @IMP.deprecated_object("2.9", "Use ihm.Citation instead")
23 class Citation(ihm.Citation):
24  pass
25 
26 
27 @IMP.deprecated_object("2.9", "Use ihm.location.Repository instead")
28 class Repository(ihm.location.Repository):
29  pass
30 
31 
33  "Use a subclass of ihm.location.FileLocation instead")
34 class FileLocation(ihm.location.FileLocation):
35  pass
36 
37 
38 @IMP.deprecated_object("2.9", "Use ihm.dataset.EMMicrographsDataset instead")
39 class EMMicrographsDataset(ihm.dataset.EMMicrographsDataset):
40  def __init__(self, location, number):
41  super(EMMicrographsDataset, self).__init__(location)
42  self.number = number
43 
44 
45 @IMP.deprecated_object("2.9", "Use ihm.location.MassIVELocation instead")
46 class MassIVELocation(ihm.location.MassIVELocation):
47  pass
48 
49 
50 @IMP.deprecated_object("2.9", "Use ihm.dataset.MassSpecDataset instead")
51 class MassSpecDataset(ihm.dataset.MassSpecDataset):
52  pass
53 
54 
55 @IMP.deprecated_object("2.9", "Use ihm.location.EMDBLocation instead")
56 class EMDBLocation(ihm.location.EMDBLocation):
57  pass
58 
59 
60 @IMP.deprecated_object("2.9", "Use ihm.location.EMPIARLocation instead")
61 class EMPIARLocation(ihm.location.EMPIARLocation):
62  pass
63 
64 
65 @IMP.deprecated_object("2.9", "Use ihm.location.SASBDBLocation instead")
66 class SASBDBLocation(ihm.location.SASBDBLocation):
67  pass
68 
69 
70 @IMP.deprecated_object("2.9", "Use ihm.dataset.EMDensityDataset instead")
71 class EMDensityDataset(ihm.dataset.EMDensityDataset):
72  pass
73 
74 
75 @IMP.deprecated_object("2.9", "Use ihm.dataset.SASDataset instead")
76 class SASDataset(ihm.dataset.SASDataset):
77  pass
78 
79 
80 @IMP.deprecated_function("2.9", "Use ihm.location.WorkflowFileLocation instead")
81 def PythonScript(location):
82  location.content_type = ihm.location.WorkflowFileLocation.content_type
83  return location
84 
85 
87  "Use ihm.location.VisualizationFileLocation instead")
88 def ChimeraXCommandScript(location):
89  location.content_type = ihm.location.VisualizationFileLocation.content_type
90  return location
def deprecated_function
Python decorator to mark a function as deprecated.
Definition: __init__.py:9550
def deprecated_object
Python decorator to mark a class as deprecated.
Definition: __init__.py:9522