Singer tap for ClinicalTrials.gov, built with the Meltano SDK for Singer Taps.
Project description
tap-clinicaltrials
Singer tap for ClinicalTrials.gov study records data.
Built with the Meltano Tap SDK for Singer Taps.
Capabilities
catalogstatediscoveraboutstream-maps
Settings
| Setting | Required | Default | Description |
|---|---|---|---|
| start_date | False | None | Earliest datetime to get data from |
| condition | False | None | Conditions or disease query |
| sponsor | False | None | Sponsor query |
| stream_maps | False | None | Config object for stream maps capability. For more information check out Stream Maps. |
| stream_map_config | False | None | User-defined config values to be used within map expressions. |
| flattening_enabled | False | None | 'True' to enable schema flattening and automatically expand nested properties. |
| flattening_max_depth | False | None | The max depth to flatten schemas. |
| batch_config | False | None |
A full list of supported settings and capabilities is available by running: tap-clinicaltrials --about
Installation
In a Meltano project
Using a direct reference
meltano add extractor tap-clinicaltrials --from-ref=https://raw.githubusercontent.com/edgarrmondragon/tap-clinicaltrials/main/plugin.yaml
Requires Meltano v3.1.0+.
From MeltanoHub
Not yet available.
From PyPI
python3 -m pip install --upgrade tap-clinicaltrials
With pipx
pipx install tap-clinicaltrials
From source
git clone https://github.com/edgarrmondragon/tap-clinicaltrials
cd tap-clinicaltrials
python3 -m pip install .
Usage
You can easily run tap-clinicaltrials by itself or in a pipeline using Meltano.
With Meltano
-
Clone the repo and
cdinto it:git clone https://github.com/edgarrmondragon/tap-clinicaltrials.git cd tap-clinicaltrials
-
Make sure you have Meltano installed
-
Install all plugins
meltano install -
Configure the
tap-clinicaltrialstap:meltano config tap-clinicaltrials set start_date '2020-01-01' meltano config tap-clinicaltrials set condition 'COVID-19' meltano config tap-clinicaltrials set sponsor 'Pfizer'
-
Run a test
tap-clinicaltrialsextractionmeltano run tap-clinicaltrials target-duckdb
-
That's it! Check the data
$ duckdb output/warehouse.duckdb -c "select nctid, lastUpdateSubmitDate, protocolsection->>'$.identificationModule.briefTitle' from clinicaltrials.studies limit 5; ┌─────────────┬──────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ nctid │ lastupdatesubmitdate │ (protocolsection ->> '$.identificationModule.briefTitle') │ │ varchar │ varchar │ varchar │ ├─────────────┼──────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ NCT06156215 │ 2023-12-06 │ PROmotion of COVID-19 BOOSTer VA(X)Ccination in the Emergency Department - PROBOOSTVAXED │ │ NCT05487040 │ 2023-12-06 │ A Study to Measure the Amount of Study Medicine in Blood in Adult Participants With COVID-19 and … │ │ NCT06163677 │ 2023-12-07 │ A Study to Look at the Health Outcomes of Patients With COVID-19 and Influenza. │ │ NCT05032976 │ 2023-12-07 │ Korea Comirnaty Post-marketing Surveillance │ │ NCT05596734 │ 2023-12-11 │ A Study to Evaluate the Safety, Tolerability, and Immunogenicity of Combined Modified RNA Vaccine… │ └─────────────┴──────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────┘
Executing the Tap Directly
tap-clinicaltrials --version
tap-clinicaltrials --help
tap-clinicaltrials --config CONFIG --discover > ./catalog.json
Developer Resources
Initialize your Development Environment
pipx install hatch
Create and Run Tests
Run integration tests:
hatch run test:integration
You can also test the tap-clinicaltrials CLI interface directly:
hatch run sync:console -- --about --format=json
SDK Dev Guide
See the dev guide for more instructions on how to use the SDK to develop your own taps and targets.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tap_clinicaltrials-0.2.11.tar.gz.
File metadata
- Download URL: tap_clinicaltrials-0.2.11.tar.gz
- Upload date:
- Size: 79.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb7114e5a73a7fe789ee71a046b5de779b22455eaab883e0e1a8fb1eeb9374d4
|
|
| MD5 |
e449148b81aa7930347492e32848c67b
|
|
| BLAKE2b-256 |
fe2ebe695bbb3c5bae2d47a9ea9ad4d203d0d8e0af33187de5d0d1f650b72194
|
Provenance
The following attestation bundles were made for tap_clinicaltrials-0.2.11.tar.gz:
Publisher:
build.yml on edgarrmondragon/tap-clinicaltrials
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tap_clinicaltrials-0.2.11.tar.gz -
Subject digest:
cb7114e5a73a7fe789ee71a046b5de779b22455eaab883e0e1a8fb1eeb9374d4 - Sigstore transparency entry: 722826447
- Sigstore integration time:
-
Permalink:
edgarrmondragon/tap-clinicaltrials@22f7844208ac787109b9d0f37105393036650f24 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/edgarrmondragon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@22f7844208ac787109b9d0f37105393036650f24 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tap_clinicaltrials-0.2.11-py3-none-any.whl.
File metadata
- Download URL: tap_clinicaltrials-0.2.11-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
454e73ae0bd33a6f72890317e483e8c67cd84c2209fab1da1c0a65ffc17eb2f3
|
|
| MD5 |
7d1521b45a271eea427021c71eed8032
|
|
| BLAKE2b-256 |
8d5f52e14ec6dcb779ac20fb4190bc84c699db810678cf0b724dacd04cf38ba3
|
Provenance
The following attestation bundles were made for tap_clinicaltrials-0.2.11-py3-none-any.whl:
Publisher:
build.yml on edgarrmondragon/tap-clinicaltrials
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tap_clinicaltrials-0.2.11-py3-none-any.whl -
Subject digest:
454e73ae0bd33a6f72890317e483e8c67cd84c2209fab1da1c0a65ffc17eb2f3 - Sigstore transparency entry: 722826489
- Sigstore integration time:
-
Permalink:
edgarrmondragon/tap-clinicaltrials@22f7844208ac787109b9d0f37105393036650f24 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/edgarrmondragon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@22f7844208ac787109b9d0f37105393036650f24 -
Trigger Event:
push
-
Statement type: