Ejemplo n.º 1
0
 def get_status(self):
     u""" Returns current status of job """
     method = '/msa/{0}/{1}/{2}/status'.format(self.upload_id, self.type,
                                               self.id)
     response = dm.get(method, params=None)
     self.status = response.get('status')
     return response.get('status')
Ejemplo n.º 2
0
def get_by_id(id, upload_id, type):
    u""" Starts a new analysis for the given file. """
    # We need to have an option of whether they want mail
    # and/or want the call to block until finished, or neither
    method = '/msa/{0}/{1}/{2}'.format(upload_id, type, id)
    json = dm.get(method)
    return Analysis(json)
Ejemplo n.º 3
0
 def update_with_latest(self):
     u""" Returns current status of job """
     method = '/msa/{0}/{1}/{2}'.format(self.upload_id, self.type,
                                               self.id)
     json = dm.get(method, params=None)
     self.update(json)
Ejemplo n.º 4
0
def get(id):
    u"""Get preexisting id"""
    method = '/hivcluster/' + id
    json = dm.get(method)
    return HivCluster(json)