cd ~/datasets/physionet
wget -r -N -c -np https://physionet.org/files/ltstdb/1.0.0/
Locally build the docker image:
docker build -t wfdb-docker .
Run the docker image:
DATASET_DIR=~/datasets/physionet/files/ltstdb/1.0.0/
docker run -it --rm -v $DATASET_DIR:/data wfdb-docker wfdb2mat -r /data/s2011 -f 0 -t 5
Or if you don't want to build the image locally, you can pull it from dockerhub:
DATASET_DIR=~/datasets/physionet/files/ltstdb/1.0.0/
docker pull ghcr.io/spagnolog/wfdb-docker:main
docker run -it --rm -v $DATASET_DIR:/data ghcr.io/spagnolog/wfdb-docker:main wfdb2mat -r /data/s20221 -f 0 -t 5