コード例 #1
0
 def to_json(self, sess_obj):
     base_json = BaseMoBEDAC.to_json(self, sess_obj)
     parts = [base_json]
     self.dump_attr(parts,self.pi, ProjectORM.PROJECT_PI)
     self.dump_attr(parts,self.funding_source, ProjectORM.PROJECT_FUNDING_SOURCE)
     self.dump_attr(parts,self.description, ProjectORM.PROJECT_DESCRIPTION)
     #self.dump_collection_attr(parts, self.samples, 'samples')
     result =  ",".join(parts)
     print result
     return result
コード例 #2
0
 def to_json(self, sess_obj):
     base_json = BaseMoBEDAC.to_json(self, sess_obj)
     parts = [base_json]
     self.dump_attr(parts, self.pi, ProjectORM.PROJECT_PI)
     self.dump_attr(parts, self.funding_source, ProjectORM.PROJECT_FUNDING_SOURCE)
     self.dump_attr(parts, self.description, ProjectORM.PROJECT_DESCRIPTION)
     # self.dump_collection_attr(parts, self.samples, 'samples')
     result = ",".join(parts)
     print result
     return result
コード例 #3
0
 def to_json(self, sess_obj):
     base_json = BaseMoBEDAC.to_json(self, sess_obj)
     parts = [base_json]
     # dump derived parts here
     self.dump_attr(parts,self.project, self.PROJECT)
     
     #self.dump_collection_attr(parts, self.libraries, 'libraries')
     
     result =  ",".join(parts)
     print result
     return result
コード例 #4
0
    def to_json(self, sess_obj):
        base_json = BaseMoBEDAC.to_json(self, sess_obj)
        parts = [base_json]

        self.dump_attr(parts, self.type, self.TYPE)
        self.dump_attr(parts, self.protein, self.PROTEIN)
        self.dump_attr(parts, self.provenance, self.PROVENANCE)
        self.dump_attr(parts, self.provenance, self.SEQUENCES)
        self.dump_attr(parts, self.library_id, self.LIBRARY_ID)
        result = ",".join(parts)
        print result
        return result
コード例 #5
0
ファイル: libraryorm.py プロジェクト: johnjh/vamps_mobedac_ws
 def to_json(self, sess_obj):
     base_json = BaseMoBEDAC.to_json(self, sess_obj)
     parts = [base_json]
     # dump derived parts here
     self.dump_attr(parts,self.lib_type, self.LIB_TYPE)
     self.dump_attr(parts,self.lib_insert_len, self.LIB_INSERT_LEN)
     self.dump_attr(parts,self.sample, self.SAMPLE)
     self.dump_attr(parts,json.loads(self.sequence_set_ids), self.SEQUENCESET_ID_ARRAY)
     print "UUU: self.sequence_set_ids = %s" % self.sequence_set_ids
     result =  ",".join(parts)
     print result
     return result
コード例 #6
0
 def to_json(self, sess_obj):
     base_json = BaseMoBEDAC.to_json(self, sess_obj)
     parts = [base_json]
     # dump derived parts here
     self.dump_attr(parts, self.lib_type, self.LIB_TYPE)
     self.dump_attr(parts, self.lib_insert_len, self.LIB_INSERT_LEN)
     self.dump_attr(parts, self.sample, self.SAMPLE)
     self.dump_attr(parts, json.loads(self.sequence_set_ids),
                    self.SEQUENCESET_ID_ARRAY)
     self.dump_attr(parts, self.sequence_set_names, self.SEQUENCE_FILE_NAME)
     print "UUU: self.sequence_set_ids = %s" % self.sequence_set_ids
     result = ",".join(parts)
     print result
     return result