Mercurial > repos > iuc > data_manager_fetch_plasmidfinder
diff data_manager/plasmidfinder_fetch_database.py @ 1:3542cd220bc3 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_plasmidfinder commit 1fa130238d58da20df9eee4e960dd794224400a5
author | iuc |
---|---|
date | Fri, 25 Aug 2023 23:34:04 +0000 (20 months ago) |
parents | b56071bdecad |
children |
line wrap: on
line diff
--- a/data_manager/plasmidfinder_fetch_database.py Thu Jun 15 09:14:08 2023 +0000 +++ b/data_manager/plasmidfinder_fetch_database.py Fri Aug 25 23:34:04 2023 +0000 @@ -15,7 +15,7 @@ def __init__(self, plasmidfinder_database="plasmidfinder_database", - db_name="plasmidfinder_database", + db_name="plasmidfinder-db", plasmidfinder_version="latest"): self.data_table_name = plasmidfinder_database self._db_name = db_name @@ -69,7 +69,7 @@ def __init__(self, output_dir=Path.cwd(), plasmidfinder_url="https://bitbucket.org/genomicepidemiology/plasmidfinder_db/src/master", - db_name="plasmidfinder_database", + db_name="plasmidfinder-db", db_tmp="tmp_database", plasmidfinder_version="latest", json_file_path=None, @@ -87,8 +87,9 @@ self._commit_number = None def git_clone(self): - git.Repo.clone_from(url=self._plasmidfinder_url, to_path=self._output_dir) - self._plasmidfinder_repository = git.Repo(path=self._output_dir) + self.plasmidfinder_db_path = f'{self._output_dir}/{self._db_name}' + git.Repo.clone_from(url=self._plasmidfinder_url, to_path=self.plasmidfinder_db_path) + self._plasmidfinder_repository = git.Repo(path=self.plasmidfinder_db_path) def get_commit_number(self): sha = self._plasmidfinder_repository.head.commit.hexsha