Example #1
0
 def makeRScript(self, client):
     remotedir=self.controller.goodName(self.directory).split('/')[-1]
     self.controller.getParameters()
     model = MSIntegrationModel(self.controller.model, **self.controller.parameters)
     code=model.makeRscript((self.dir, remotedir), self.selectedFiles)
     with open(self.XCMS_SCRIPT, 'w') as f:
         f.write(code)
     print "putting new script"
     user = str(self.username.text())
     sftp=client.open_sftp()
     sftp.put(self.XCMS_SCRIPT, "".join(['/work/',user, '/', self.XCMS_SCRIPT]))
     sftp.close()
Example #2
0
 def makeRScript(self, client):
     remotedir = self.controller.goodName(self.directory).split('/')[-1]
     self.controller.getParameters()
     model = MSIntegrationModel(self.controller.model,
                                **self.controller.parameters)
     code = model.makeRscript((self.dir, remotedir), self.selectedFiles)
     with open(self.XCMS_SCRIPT, 'w') as f:
         f.write(code)
     print "putting new script"
     user = str(self.username.text())
     sftp = client.open_sftp()
     sftp.put(self.XCMS_SCRIPT,
              "".join(['/work/', user, '/', self.XCMS_SCRIPT]))
     sftp.close()
Example #3
0
 def run(self):
     integrator = MSIntegrationModel(self.lspl, parent=self)
     self.emit(SIGNAL("status_message"), "Getting peaks from xcms...")
     integrator.integrateWithR(**self.kw)
Example #4
0
 def run(self):
     integrator = MSIntegrationModel(self.lspl, parent=self)
     self.emit(SIGNAL("status_message"), "Getting peaks from xcms...")
     integrator.integrateWithR(**self.kw)