Skip to content

Commit

Permalink
docs: zenodo example
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Mar 30, 2022
1 parent 3ff25a9 commit 76159ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/snakefiles/remote_files.rst
Expand Up @@ -26,6 +26,7 @@ Snakemake includes the following remote providers, supported by the correspondin
* GridFTP: ``snakemake.remote.gridftp``
* iRODS: ``snakemake.remote.iRODS``
* EGA: ``snakemake.remote.EGA``
* Zenodo: ``snakemake.remote.zenodo``
* AUTO: an automated remote selector

Amazon Simple Storage Service (S3)
Expand Down Expand Up @@ -811,14 +812,15 @@ Zenodo UI and REST API responses were designed with having in mind uploads of a
Avoid creating uploads with too many files, and instead group and zip them to make it easier their distribution to end-users.
.. code-block:: python
from snakemake.remote.zenodo import RemoteProvider
import os
# let Snakemake assert the presence of the required environment variable
envvars:
"MYZENODO_PAT"
access_token=os.environ["MYZENODO_PAT"]
access_token = os.environ["MYZENODO_PAT"]
zenodo = RemoteProvider(deposition="your deposition id", access_token=access_token)
rule upload:
Expand Down

0 comments on commit 76159ae

Please sign in to comment.