コード例 #1
0
	def getRMeasureData(self, volumeDensity):
		volPath = os.path.join(self.params['rundir'], volumeDensity)
		if not os.path.exists(volPath):
			apDisplay.printWarning("R Measure failed, volume density not found: "+volPath)
			return None

		resolution = apRecon.runRMeasure(self.apix, volPath)
		if resolution is None:
			return None

		rmesq = appiondata.ApRMeasureData()
		rmesq['volume']=os.path.basename(volumeDensity)
		rmesq['rMeasure']=resolution
		return rmesq
コード例 #2
0
	def getRMeasureData(self, iteration):
		volumeDensity='threed.'+iteration['num']+'a.mrc'

		volPath = os.path.join(self.params['rundir'], volumeDensity)
		if not os.path.exists(volPath):
			apDisplay.printWarning("R Measure failed, volume density not found: "+volPath)
			return None

		resolution = apRecon.runRMeasure(self.params['apix'], volPath)

		if resolution is None:
			return None

		rmesq=appiondata.ApRMeasureData()
		rmesq['volume']=volumeDensity
		rmesq['rMeasure']=resolution

		return rmesq
コード例 #3
0
    def getRMeasureData(self, iteration, reference_number=1):
        ''' run rMeasure resolution and return database object '''

        volumeDensity = os.path.join(self.resultspath, "recon_%s_it%.3d_vol%.3d.mrc" \
                % (self.params['timestamp'], iteration, reference_number))
        if not os.path.exists(volumeDensity):
            apDisplay.printWarning(
                "R Measure failed, volume density not found: " + volumeDensity)
            return None

        resolution = apRecon.runRMeasure(self.runparams['apix'], volumeDensity)
        if resolution is None:
            return None

        ### database object
        rmesq = appiondata.ApRMeasureData()
        rmesq['volume'] = "recon_%s_it%.3d_vol%.3d.mrc" % (
            self.params['timestamp'], iteration, reference_number)
        rmesq['rMeasure'] = resolution

        return rmesq