コード例 #1
0
    def extract(self, experiment, type, indiv):
        noResultVal = ['NA', 'NA', 'NA']
        filepath = experiment[2] + os.path.sep + PathConfig.populationFolderNormal + os.path.sep + indiv[0] + "_vox.vxa"
        if os.path.isfile(filepath):
            vd = VoxelData(filepath)
            relCounts = vd.getRelCounts()
            if not relCounts:
                return noResultVal

            return [relCounts["fat"], relCounts["muscle"], relCounts["bone"]]
        else:
            return noResultVal
コード例 #2
0
    def extract(self, experiment, type, indiv):
        noResultVal = ["NA", "NA", "NA"]
        filepath = GetAltFile.getAltPopFile(experiment, type, indiv)
        if filepath != False:
            vd = VoxelData(filepath)
            relCounts = vd.getRelCounts()
            if not relCounts:
                return noResultVal

            return [relCounts["fat"], relCounts["muscle"], relCounts["bone"]]
        else:
            return noResultVal