{"id":18365344,"url":"https://github.com/mit-lcp/downcast","last_synced_at":"2025-08-23T23:17:25.383Z","repository":{"id":72102585,"uuid":"111462908","full_name":"MIT-LCP/downcast","owner":"MIT-LCP","description":"Tools for unpacking and converting data from the DWC system","archived":false,"fork":false,"pushed_at":"2022-03-08T14:29:02.000Z","size":455,"stargazers_count":1,"open_issues_count":6,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-15T20:15:38.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MIT-LCP.png","metadata":{"files":{"readme":"README","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}},"created_at":"2017-11-20T21:07:03.000Z","updated_at":"2024-03-12T12:42:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e440b62-e2a8-43a6-a779-4d94fb7f0daf","html_url":"https://github.com/MIT-LCP/downcast","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIT-LCP%2Fdowncast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIT-LCP%2Fdowncast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIT-LCP%2Fdowncast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIT-LCP%2Fdowncast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MIT-LCP","download_url":"https://codeload.github.com/MIT-LCP/downcast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225664,"owners_count":21068078,"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":[],"created_at":"2024-11-05T23:13:13.424Z","updated_at":"2025-04-10T13:22:52.401Z","avatar_url":"https://github.com/MIT-LCP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Downcast\n--------\n\nThis repository contains tools for processing and converting data from\nthe DWC system into WFDB and other open formats.\n\n\nRequirements\n------------\n\nPython 3.4 or later is required.  A Unix-like platform is required -\nDebian and CentOS have been tested; Mac OS might work as well.  This\npackage will not work on Windows.\n\nFor processing data in BCP format, the ply package is required.\n\nFor processing data directly from SQL Server, the pymssql package is\nrequired.  (This package is now mostly abandoned and should probably\nbe replaced with a different backend.)\n\n\nQuick start\n-----------\n\nIf you have access to the demo DWC database, download and unpack these\nfiles (about 30 GB uncompressed.)  You will then need to create a\n\"server.conf\" file, which should look like this:\n\n[demo]\ntype = bcp\nbcp-path = /home/user/dwc-demo\n\n(where /home/user/dwc-demo is the directory containing \"Alert.dat\",\n\"Alert.fmt\", etc.)  See server.conf.example for other examples.\n\nThe demo database spans the time period from 1:00 AM EDT on October\n31, 2004, to midnight EST on November 1.  To parse and convert a slice\nof the data (say, from 10:00 to 10:05 AM), first we initialize an\noutput directory and set the starting time:\n\n  $ ./downcast.py --init --server demo \\\n                  --output-dir /home/user/dwc-test-output \\\n                  --start \"2004-10-31 10:00:00.000 -05:00\"\n\nThen run a batch conversion while specifying the end time:\n\n  $ ./downcast.py --batch --server demo \\\n                  --output-dir /home/user/dwc-test-output \\\n                  --end \"2004-10-31 10:05:00.000 -05:00\"\n\nIf we wanted to keep going, we could run the same --batch command\nagain, increasing the end timestamp each time.  We don't need to\nspecify the starting timestamp for --batch, since the \"current\"\ntimestamp is saved automatically.\n\nTo \"finalize\" the output (and forcibly truncate all patient records at\nthe specified end time), we use the --terminate option.  This wouldn't\nbe done for a real database conversion, but it's useful for a simple\ntest:\n\n  $ ./downcast.py --batch --server demo \\\n                  --output-dir /home/user/dwc-test-output \\\n                  --end \"2004-10-31 10:05:00.000 -05:00\" \\\n                  --terminate\n\nThis should result in a bunch of patient records in WFDB format,\nstored in /home/user/dwc-test-output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmit-lcp%2Fdowncast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmit-lcp%2Fdowncast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmit-lcp%2Fdowncast/lists"}