{"id":23609730,"url":"https://github.com/ginkgo-project/ssget","last_synced_at":"2025-06-14T11:34:50.533Z","repository":{"id":109047123,"uuid":"146129928","full_name":"ginkgo-project/ssget","owner":"ginkgo-project","description":"Command line tool for working with matrices from the SuiteSparse Matrix Collection (sparse.tamu.edu)","archived":false,"fork":false,"pushed_at":"2020-03-29T15:56:38.000Z","size":16,"stargazers_count":9,"open_issues_count":2,"forks_count":4,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-12T16:11:01.346Z","etag":null,"topics":["bash","sparse-matrix","suitesparse"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ginkgo-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-25T21:11:51.000Z","updated_at":"2025-04-24T02:59:07.000Z","dependencies_parsed_at":"2023-04-05T23:33:18.261Z","dependency_job_id":null,"html_url":"https://github.com/ginkgo-project/ssget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ginkgo-project/ssget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginkgo-project%2Fssget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginkgo-project%2Fssget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginkgo-project%2Fssget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginkgo-project%2Fssget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ginkgo-project","download_url":"https://codeload.github.com/ginkgo-project/ssget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginkgo-project%2Fssget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259809659,"owners_count":22914910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","sparse-matrix","suitesparse"],"created_at":"2024-12-27T15:14:14.139Z","updated_at":"2025-06-14T11:34:50.526Z","avatar_url":"https://github.com/ginkgo-project.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"SSGet\n-----\n\nThis is a command line version of the SSGet tool for working with matrices from\nthe Suite Sparse collection ([sparse.tamu.edu](sparse.tamu.edu)).\n\nDependencies\n------------\n\nStandard UNIX tools:\n\n*   bash\n*   curl\n*   tar (only for `-e` option with `-t MM` or `-t RB`)\n*   make (only for installation)\n\n\nInstallation\n------------\n\n```sh\ngit clone https://github.com/ginkgo-project/ssget.git\ncd ssget\nsudo make install\n```\n\nOr a one-liner that doesn't create a local copy of the repository:\n\n```sh\nsudo curl -Lo /usr/local/bin/ssget https://raw.githubusercontent.com/ginkgo-project/ssget/master/ssget\n```\n\nUsage\n-----\n\nRun `ssget -h` to get a list of available options:\n\n```\nUsage: ssget [options]\n\nAvailable options:\n    -c           clean files extracted from archive\n    -d           (re)download matrix info file\n    -e           download matrix and extract archive\n    -f           download matrix and get path to archive\n    -h           show this help\n    -i ID        matrix id\n    -j           print information about the matrix in JSON format\n    -n           get number of matrices in collection\n    -p PROPERTY  print information about the matrix, PROPERTY is the propery to\n                 print, one of group, name, rows, cols, nonzeros, real, binary,\n                 2d3d, posdef, psym, nsym, kind\n    -r           remove archive\n    -t TYPE      matrix type, TYPE is one of: MM (matrix market, '.mtx'), RB\n                 (Rutherford Boeing, '.rb'), mat (MATLAB, '.mat')\n    -v           get database version\n    -s           search database with conditions. It uses @PROPERTY as the\n                 placeholder\n\nCalling ssget without arguments is equivalent to: ssget -i 0 -t MM -v\n```\n\nExamples\n--------\n\n\n### Example 1\n\nReturn properties of all matrices as a JSON array:\n\n```sh\nNUM_PROBLEMS=$(ssget -n)\n\necho \"[\"\nfor (( i=1; i \u003c= ${NUM_PROBLEMS}; ++i )); do\n    ssget -i $i -j\n    echo \",\"\ndone\necho \"]\"\n```\n\n\n### Example 2\n\nDownload matrix arhives for the entire collection, and print the size:\n\n```sh\nNUM_PROBLEMS=$(ssget -n)\n\nTOTAL_SIZE=0\n\nfor (( i=1; i \u003c= ${NUM_PROBLEMS}; ++i )); do\n    # ssget -i $i -j\n    ARCHIVE=$(ssget -i $i -f)\n    SIZE=($(du -k ${ARCHIVE}))\n    echo \"${ARCHIVE}: ${SIZE}KB\"\n    TOTAL_SIZE=$((${TOTAL_SIZE} + ${SIZE}))\ndone\n\necho \"Total: ${TOTAL_SIZE}KB\"\n```\n\n__NOTE:__ This will transfer and store a huge amount of data!\n\n\n### Example 3\nExtract (and download if needed) the matrix with ID=10, pass its location to\nthe program `foo` and delete the extracted files (but keep the archive)\nafterwards:\n\n```sh\nfoo $(ssget -ei10)\nssget -ci10\n```\n\n### Example 4\nDelete the archive for matrix with ID=10\n\n```sh\nssget -ri10\n```\n\n### Example 5\nSearch the database with `400 \u003c= #rows \u003c= 450` and\n`numerical symmertry \u003e= 0.99`\n\n```sh\n./ssget -s '[ @rows -ge 400 ] \u0026\u0026 [ @rows -le 450 ] \u0026\u0026 [ $(awk \"BEGIN{print(@nsym \u003c= 0.99)}\") -eq 1 ]'\n```\n\nLicense\n-------\nBSD 3-clause\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginkgo-project%2Fssget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fginkgo-project%2Fssget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginkgo-project%2Fssget/lists"}