# HG changeset patch # User iuc # Date 1693006444 0 # Node ID 3542cd220bc3cfe2208a2c1171aa8512e5324572 # Parent b56071bdecad0c54afd318ed841b9636e9d8ddc1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_plasmidfinder commit 1fa130238d58da20df9eee4e960dd794224400a5 diff -r b56071bdecad -r 3542cd220bc3 data_manager/macro.xml --- a/data_manager/macro.xml Thu Jun 15 09:14:08 2023 +0000 +++ b/data_manager/macro.xml Fri Aug 25 23:34:04 2023 +0000 @@ -4,7 +4,7 @@ 2.34.1 4.0.10 3.11.3 - 0 + 1 21.05 diff -r b56071bdecad -r 3542cd220bc3 data_manager/plasmidfinder_fetch_database.py --- 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 diff -r b56071bdecad -r 3542cd220bc3 data_manager_conf.xml --- a/data_manager_conf.xml Thu Jun 15 09:14:08 2023 +0000 +++ b/data_manager_conf.xml Fri Aug 25 23:34:04 2023 +0000 @@ -3,9 +3,9 @@ - - - + + + ${path} diff -r b56071bdecad -r 3542cd220bc3 plasmidfinder_database.loc --- a/plasmidfinder_database.loc Thu Jun 15 09:14:08 2023 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -# this is a tab separated file describing the location of plasmidfinder database -# The name was obtained by merging date of download and commit number -# the columns are: -# value, name, date, path -# -# for example -#plasmidfinder_9002e7282dd0_2022-12-20 9002e7282dd0_2022-12-20 2022-12-20 plasmidfinder-db -#plasmidfinder_1307168b1ce7_2022-12-20 2.1_2022-12-20 2022-12-20 plasmidfinder-db diff -r b56071bdecad -r 3542cd220bc3 test-data/plasmidfinder.loc.test --- a/test-data/plasmidfinder.loc.test Thu Jun 15 09:14:08 2023 +0000 +++ b/test-data/plasmidfinder.loc.test Fri Aug 25 23:34:04 2023 +0000 @@ -1,5 +1,4 @@ -plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmptllq5k0r/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 -plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmpnshbzr8f/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 -plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmpgfqg6r8x/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 -plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmpam2pha1m/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 -plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmp_tzl62ye/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 +plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 plasmidfinder-db +plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmpimkqnsxv/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 +plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmpbqa_r7hv/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 +plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 /tmp/tmpp_z4mmla/galaxy-dev/tool-data/plasmidfinder-db/2.1_2019_08_28 diff -r b56071bdecad -r 3542cd220bc3 test-data/plasmidfinder_test_data_manager_2.1.json --- a/test-data/plasmidfinder_test_data_manager_2.1.json Thu Jun 15 09:14:08 2023 +0000 +++ b/test-data/plasmidfinder_test_data_manager_2.1.json Fri Aug 25 23:34:04 2023 +0000 @@ -1,1 +1,1 @@ -{"data_tables": {"plasmidfinder_database": [{"date": "2019_08_28", "name": "2.1_2019_08_28", "path": "plasmidfinder_database", "value": "plasmidfinder_1307168_2019_08_28"}]}} \ No newline at end of file +{"data_tables": {"plasmidfinder_database": [{"date": "2019_08_28", "name": "2.1_2019_08_28", "path": "plasmidfinder-db", "value": "plasmidfinder_1307168_2019_08_28"}]}} \ No newline at end of file diff -r b56071bdecad -r 3542cd220bc3 tool-data/plasmidfinder_database.loc --- a/tool-data/plasmidfinder_database.loc Thu Jun 15 09:14:08 2023 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -# this is a tab separated file describing the location of plasmidfinder database -# The name was obtained by merging date of download and commit number -# the columns are: -# value, name, date, path -# -# for example -#plasmidfinder_9002e7282dd0_2022-12-20 9002e7282dd0_2022-12-20 2022-12-20 plasmidfinder-db -#plasmidfinder_1307168b1ce7_2022-12-20 2.1_2022-12-20 2022-12-20 plasmidfinder-db diff -r b56071bdecad -r 3542cd220bc3 tool-data/plasmidfinder_database.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/plasmidfinder_database.loc.sample Fri Aug 25 23:34:04 2023 +0000 @@ -0,0 +1,7 @@ +# this is a tab separated file describing the location of plasmidfinder database +# The name was obtained by merging date of download and commit number +# the columns are: +# value, name, date, path +# +# for example +#plasmidfinder_1307168_2019_08_28 2.1_2019_08_28 2019_08_28 plasmidfinder-db diff -r b56071bdecad -r 3542cd220bc3 tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Thu Jun 15 09:14:08 2023 +0000 +++ b/tool_data_table_conf.xml.sample Fri Aug 25 23:34:04 2023 +0000 @@ -3,6 +3,6 @@ value, name, date, path - +
diff -r b56071bdecad -r 3542cd220bc3 tool_data_table_conf.xml.test --- a/tool_data_table_conf.xml.test Thu Jun 15 09:14:08 2023 +0000 +++ b/tool_data_table_conf.xml.test Fri Aug 25 23:34:04 2023 +0000 @@ -1,7 +1,7 @@ - - value, name, date, path +
+ value, name, date, path