Procedure for pubMLST schemes (example: borrelia_3-cgMLST-639-pubmlst)
Create an account on the pubMLST website.
Generate a consumer token and secret from your account settings
(My account → API keys → Enter key name → Submit).
On your account page, go to Database registrations, check all databases, and register.
Download coreprofiler locally and run the following command to obtain your access token and secret:
coreprofiler db get_request_tokens --scheme <SCHEME_NAME> --consumer_key <YOUR_CONSUMER_TOKEN> --consumer_secret <YOUR_CONSUMER_SECRET>
Replace the placeholders with your scheme of interest (example: borrelia_3) and your actual consumer token and secret.
This command will provide you with a URL to visit in order to authorize the client software to access your account.
After authorizing, it will give you a verification code that you need to enter in the command line prompt.
It will then return your access token and secret.
Provide the consumer token, consumer secret, access token, and access secret in the data manager tool
by setting these bash variables in a .txt file:
export COREPROFILER_CONSUMER_TOKEN="<YOUR_CONSUMER_TOKEN>"
export COREPROFILER_CONSUMER_SECRET="<YOUR_CONSUMER_SECRET>"
export COREPROFILER_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"
export COREPROFILER_ACCESS_SECRET="<YOUR_ACCESS_SECRET>"
Set the path to this .txt file in your environment by making an environment variable
(example: export COREPROFILER_SECRETS_PATH="/path/to/your/secret_file.txt").
Procedure for BigsDB schemes (example: bordetella_1-cgMLST_genus-1415-BIGSdb)
Create an account on the BigsDB website.
Ask for a consumer token and secret by sending an email to bigsdb@pasteur.fr
(subject: API client key).
On your account page, go to Database registrations, check all databases, and register.
Download coreprofiler locally and run the following command to obtain your access token and secret:
coreprofiler db get_request_tokens --scheme <SCHEME_NAME> --consumer_key <YOUR_CONSUMER_TOKEN> --consumer_secret <YOUR_CONSUMER_SECRET>
Replace the placeholders with your scheme of interest (example: bordetella_1) and your actual consumer token and secret.
This command will provide you with a URL to visit in order to authorize the client software to access your account.
After authorizing, it will give you a verification code that you need to enter in the command line prompt.
It will then return your access token and secret.
Provide the consumer token, consumer secret, access token, and access secret in the data manager tool
by setting these bash variables in a .txt file:
export COREPROFILER_CONSUMER_TOKEN="<YOUR_CONSUMER_TOKEN>"
export COREPROFILER_CONSUMER_SECRET="<YOUR_CONSUMER_SECRET>"
export COREPROFILER_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"
export COREPROFILER_ACCESS_SECRET="<YOUR_ACCESS_SECRET>"
Set the path to this .txt file in your environment by making an environment variable
(example: export COREPROFILER_SECRETS_PATH="/path/to/your/secret_file.txt").
|
|