{"id":25316079,"url":"https://github.com/ineelhere/aactr","last_synced_at":"2025-04-07T16:50:30.485Z","repository":{"id":237408869,"uuid":"794236573","full_name":"ineelhere/aactr","owner":"ineelhere","description":"R package to connect and interact with clinicalTrials.Gov data via the AACT database 🛢️📊","archived":false,"fork":false,"pushed_at":"2024-05-05T02:05:45.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-13T18:54:09.889Z","etag":null,"topics":["clinicaltrials","database-connector","package","postgresql","postgresql-database","r","registry","wrapper"],"latest_commit_sha":null,"homepage":"https://ineelhere.github.io/aactr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ineelhere.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}},"created_at":"2024-04-30T18:08:05.000Z","updated_at":"2024-05-09T13:05:49.000Z","dependencies_parsed_at":"2024-05-05T03:19:26.869Z","dependency_job_id":null,"html_url":"https://github.com/ineelhere/aactr","commit_stats":null,"previous_names":["ineelhere/aactr"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineelhere%2Faactr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineelhere%2Faactr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineelhere%2Faactr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ineelhere%2Faactr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ineelhere","download_url":"https://codeload.github.com/ineelhere/aactr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694886,"owners_count":20980731,"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":["clinicaltrials","database-connector","package","postgresql","postgresql-database","r","registry","wrapper"],"created_at":"2025-02-13T18:54:09.091Z","updated_at":"2025-04-07T16:50:30.464Z","avatar_url":"https://github.com/ineelhere.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aactR\nR package to connect and interact with clinical trials data via the AACT\n\n### Installation\nInstall the package from GitHub using `devtools` package\n\n```R\nlibrary(devtools)\ninstall_github(\"ineelhere/aactr\")\n```\nIf you don't have the `devtools` package already please install it with `install.packages(\"devtools\")`\n\nCheck if the package got installed by importing it\n```R\nlibrary(aactr)\n```\n\n### AACT Setup\n* Sign up at https://aact.ctti-clinicaltrials.org/users/sign_up\n* You will need the `Username` and `Password` you created.\n\n### Using the package features\n👉 To connect to the AACT database, use the `connect_aact()` function:\n```R\nlibrary(aactr)\nconn \u003c- aact_connect(username, password) \n```\n`username` and `password` should be the same as your AACT account.\n\n👉 To quickly check if your AACT db connection is actually fetching data: \n```R\nlibrary(aactr)\ncheck_connection(conn)\n```\nNote, we just used the `conn` connection created earlier.\n\nYou should expect an output similar to -\n```\n                        study_type\n1 Observational [Patient Registry]\n2                   Interventional\n3                  Expanded Access\n4                             \u003cNA\u003e\n5                    Observational\n```\n\n👉 To refer to AACT database schema and details\n```R\nlibrary(aactr)\nget_schema()\n```\n👉 To run custom queries for fetching data from the AACT database\n```R\nlibrary(aactr)\n\nget_query(\n  conn, \n  query = \"\n    SELECT \n      nct_id, \n      source, \n      enrollment, \n      overall_status\n    FROM \n      studies\n    LIMIT \n      5;\n  \"\n)\n\n```\nYou may define the query string outside the function call, store it in a variable and just pass it to the `get_query()` function.\n\nExpected output:\n```\n       nct_id                         source enrollment     overall_status\n1 NCT05762861            University of Minho        200 Not yet recruiting\n2 NCT02950012                  BIO-CAT, Inc.        100          Completed\n3 NCT05251298   University Hospital Muenster        370         Recruiting\n4 NCT01376921 Merck KGaA, Darmstadt, Germany        300          Completed\n5 NCT05237219             University of Pecs          0          Withdrawn\n```\n\n👉 A quick info reference\n```R\nlibrary(aactr)\ninfo()\n```\n\n\n\n\n💡 Got questions and/or suggestions? Please create an issue/PR on the GitHub repository: https://github.com/ineelhere/aactr\n\nP.S. More features on the way!\n___\n\n**© `Indraneel Chakraborty` | 2024** 🧑‍💻[LinkedIn](https://www.linkedin.com/in/indraneelchakraborty/) | [X/Twitter](https://twitter.com/ineelhere)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fineelhere%2Faactr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fineelhere%2Faactr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fineelhere%2Faactr/lists"}