Mercurial > repos > iuc > data_manager_build_coreprofiler
comparison README.rst @ 1:a95177c4d627 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/data_managers/data_manager_build_coreprofiler commit ed6d188035ac31aa2da132889141b0898aa6bc86
| author | iuc |
|---|---|
| date | Fri, 21 Nov 2025 13:12:00 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:c3553950db1b | 1:a95177c4d627 |
|---|---|
| 1 This tool downloads and builds the **CoreProfiler** scheme. | |
| 2 ------------------------------------------------------------------------------- | |
| 3 | |
| 4 You can find the list of available schemes, as well as the reference platforms supported by CoreProfiler, in the | |
| 5 `CoreProfiler documentation <https://gitlab.com/ifb-elixirfr/abromics/coreprofiler/-/blob/main/README.md?ref_type=heads#basic-usage>`_. | |
| 6 | |
| 7 Please refer to this page for details on how to use the tool and which schema options are available. | |
| 8 | |
| 9 Use Galaxy's data manager framework to download and install new CoreProfiler schemes. | |
| 10 | |
| 11 If you want to use a scheme from **EnteroBase**, you do not need to provide any token or secret. | |
| 12 | |
| 13 However, if you want to use a scheme from **pubMLST** or **BigsDB**, you will need to follow a procedure before launching the data manager. | |
| 14 | |
| 15 BIGSdb and PubMLST platforms require **OAuth1 authentication** to access and download the most up-to-date schemes. | |
| 16 While authentication is not strictly mandatory, skipping it may result in downloading outdated schemes. | |
| 17 | |
| 18 This authentication involves two types of tokens: | |
| 19 | |
| 20 * **Consumer tokens**: permanent tokens used to initiate the authentication flow. | |
| 21 * **Access tokens**: tokens required to download a scheme. | |
| 22 | |
| 23 Procedure for **pubMLST schemes** (example: ``borrelia_3-cgMLST-639-pubmlst``) | |
| 24 ------------------------------------------------------------------------------- | |
| 25 | |
| 26 1. Create an account on the `pubMLST website <https://pubmlst.org/bigsdb>`_. | |
| 27 2. Generate a consumer token and secret from your account settings | |
| 28 (**My account → API keys → Enter key name → Submit**). | |
| 29 3. On your account page, go to **Database registrations**, check all databases, and register. | |
| 30 4. Download `coreprofiler <https://gitlab.com/ifb-elixirfr/abromics/coreprofiler>`_ locally and run the following command to obtain your access token and secret: | |
| 31 | |
| 32 .. code-block:: bash | |
| 33 | |
| 34 coreprofiler db get_request_tokens --scheme <SCHEME_NAME> \ | |
| 35 --consumer_key <YOUR_CONSUMER_TOKEN> \ | |
| 36 --consumer_secret <YOUR_CONSUMER_SECRET> | |
| 37 | |
| 38 Replace the placeholders with your scheme of interest (example: ``borrelia_3``) and your actual consumer token and secret. | |
| 39 | |
| 40 This command will provide you with a URL to visit in order to authorize the client software to access your account. | |
| 41 After authorizing, it will give you a verification code that you need to enter in the command line prompt. | |
| 42 It will then return your access token and secret. | |
| 43 | |
| 44 5. Provide the consumer token, consumer secret, access token, and access secret in the data manager tool | |
| 45 by setting these bash variables in a ``.txt`` file: | |
| 46 | |
| 47 .. code-block:: bash | |
| 48 | |
| 49 export COREPROFILER_CONSUMER_TOKEN="<YOUR_CONSUMER_TOKEN>" | |
| 50 export COREPROFILER_CONSUMER_SECRET="<YOUR_CONSUMER_SECRET>" | |
| 51 export COREPROFILER_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" | |
| 52 export COREPROFILER_ACCESS_SECRET="<YOUR_ACCESS_SECRET>" | |
| 53 | |
| 54 6. Set the path to this ``.txt`` file in your environment by making an environment variable | |
| 55 (example: ``export COREPROFILER_SECRETS_PATH="/path/to/your/secret_file.txt"``). | |
| 56 | |
| 57 | |
| 58 Procedure for **BigsDB schemes** (example: ``bordetella_1-cgMLST_genus-1415-BIGSdb``) | |
| 59 -------------------------------------------------------------------------------------- | |
| 60 | |
| 61 1. Create an account on the `BigsDB website <https://bigsdb.pasteur.fr/cgi-bin/bigsdb/bigsdb.pl?page=registration>`_. | |
| 62 2. Ask for a consumer token and secret by sending an email to ``bigsdb@pasteur.fr`` | |
| 63 (subject: **API client key**). | |
| 64 3. On your account page, go to **Database registrations**, check all databases, and register. | |
| 65 4. Download `coreprofiler <https://gitlab.com/ifb-elixirfr/abromics/coreprofiler>`_ locally and run the following command to obtain your access token and secret: | |
| 66 | |
| 67 .. code-block:: bash | |
| 68 | |
| 69 coreprofiler db get_request_tokens --scheme <SCHEME_NAME> \ | |
| 70 --consumer_key <YOUR_CONSUMER_TOKEN> \ | |
| 71 --consumer_secret <YOUR_CONSUMER_SECRET> | |
| 72 | |
| 73 Replace the placeholders with your scheme of interest (example: ``bordetella_1``) and your actual consumer token and secret. | |
| 74 | |
| 75 This command will provide you with a URL to visit in order to authorize the client software to access your account. | |
| 76 After authorizing, it will give you a verification code that you need to enter in the command line prompt. | |
| 77 It will then return your access token and secret. | |
| 78 | |
| 79 5. Provide the consumer token, consumer secret, access token, and access secret in the data manager tool | |
| 80 by setting these bash variables in a ``.txt`` file: | |
| 81 | |
| 82 .. code-block:: bash | |
| 83 | |
| 84 export COREPROFILER_CONSUMER_TOKEN="<YOUR_CONSUMER_TOKEN>" | |
| 85 export COREPROFILER_CONSUMER_SECRET="<YOUR_CONSUMER_SECRET>" | |
| 86 export COREPROFILER_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" | |
| 87 export COREPROFILER_ACCESS_SECRET="<YOUR_ACCESS_SECRET>" | |
| 88 | |
| 89 6. Set the path to this ``.txt`` file in your environment by making an environment variable | |
| 90 (example: ``export COREPROFILER_SECRETS_PATH="/path/to/your/secret_file.txt"``). |
