Minor Update to do: Use chr-pos rather than ip to create project Id for local analysis Draw the JASS Logo in the stderr
1 unresolved thread
Merge request reports
Activity
added enhancement label
requested review from @hmenager
assigned to @cnerin
177 181 return m.hexdigest() 178 182 179 def get_local_id(self, ip): 180 ip = ip.replace('.', '_') 181 id_project = "local_{}".format(ip) 182 folder_path = os.path.join(config["DATA_DIR"], 183 "project_{}".format(id_project)) 184 # If the folder exists, it is deleted with the files it contains 185 #if os.path.exists(folder_path): 186 #print("On tente de detruire l'arborescence") 187 #shutil.rmtree(folder_path) 188 183 def get_local_id(self, chromosome, start, end): 184 m = hashlib.md5() 185 for phenotype_id in [phenotype.id for phenotype in self._phenotypes]: 186 m.update(str(phenotype_id).encode("utf-8"))
Please register or sign in to reply