@@ -76,6 +76,7 @@ def __init__(self):
7676 self ._spectra_url = ['' ]
7777 self ._local_spectra_file = None
7878 self ._study = None
79+ self ._subtype = None
7980 self ._title = None
8081
8182 # Optional properties
@@ -870,6 +871,31 @@ def study(self, study):
870871 else :
871872 raise Exception ("Invalid study." )
872873
874+ @property
875+ def subtype (self ):
876+ """
877+ str: Retrieves the subtype of the Proteome (host or microbiome).
878+ """
879+ self .logger .debug ("In 'subtype' getter." )
880+
881+ return self ._subtype
882+
883+ @subtype .setter
884+ @enforce_string
885+ def subtype (self , subtype ):
886+ """
887+ Sets the subtype of the proteome. Must be either 'host' or 'microbiome'.
888+
889+ Args:
890+ subtype (str): host or microbiome.
891+
892+ Returns:
893+ None
894+ """
895+ self .logger .debug ("In 'subtype' setter." )
896+
897+ self ._subtype = subtype
898+
873899 def validate (self ):
874900 """
875901 Validates the current object's data/JSON against the current
@@ -981,7 +1007,7 @@ def _get_raw_doc(self):
9811007 'spectra_format' : self ._spectra_format ,
9821008 'spectra_url' : self ._spectra_url ,
9831009 'study' : self ._study ,
984- 'subtype' : self ._study ,
1010+ 'subtype' : self ._subtype ,
9851011 'tags' : self ._tags
9861012 }
9871013 }
@@ -1038,7 +1064,7 @@ def required_fields():
10381064 "search_engine" , "protid_format" , "pepid_format" ,
10391065 "protmod_format" , "spectra_format" ,
10401066 "local_spectra_file" , "local_protmod_file" , "local_protid_file" ,
1041- "local_pepid_file" , "study" )
1067+ "local_pepid_file" , "study" , "subtype" )
10421068
10431069 def delete (self ):
10441070 """
0 commit comments