Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • eb7458b
  • /
  • Snakefile
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:c648b6a162d39802e683482a2de9a0c0fac49667
directory badge
swh:1:dir:eb7458b7e7697b1c86c8ae0dd228796778171e57

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Snakefile
#!/bin/python3

# Including all of the different snakefiles
include: 'snakefiles/geodist.snake'
include: 'snakefiles/subsets.snake'
include: 'snakefiles/plotting.snake'

# NOTE : eventually we hope to make these FigShare links
rule download_minimal_data:
  output:
    directory("data/")
  shell:
    """
      wget -O data_minimal.tar.gz https://www.dropbox.com/s/7a7lcocxshzrwty/data_minimal2.tar.gz?dl=0 
      tar -xvf data_minimal.tar.gz
    """

rule download_data_w_geodist:
  output:
    directory("data/")
  shell:
    """
      wget -O data_w_geodist.tar.gz  https://www.dropbox.com/s/hno1so98qcghsli/data_w_geodist.tar.gz?dl=0
      tar -xvf data_w_geodist.tar.gz
    """

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API