Skip to content
Snippets Groups Projects

Minor Update to do: Use chr-pos rather than ip to create project Id for local analysis Draw the JASS Logo in the stderr

Closed Cyril NERIN requested to merge dev_cnerin into dev
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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"))
  • This solution will be functional. However, a simpler solution would be to have only one get_id() method, and add successively chromosome, start and end if they are defined.

  • Please register or sign in to reply
  • closed

  • reopened

  • closed

  • Please register or sign in to reply
    Loading