Skip to main content

UKB_Wrapper_Repo

This library has been designed to provide convenient access to UKB dataset to users of PSC and Openmind7 clusters by leveraging Datalad package. Datalad allows its users to store large datasets in a distributed manner and faciliate easier collaboration. Currently the repo has modules dedicated to three types of data stored within the UKB dataset namely Scalar, Genetic and Bulk data types. The library also serves as a directory for all the unique categories and field ids which are part of UKB dataset.

Datalad is designed as a tool to version control large datasets in a manner quite similar to Git but limited to either a single network, HPC cluster. This library has been designed to help the end user make use the principles of datalad to access data stored on a different cluster and even with limited knowledge of how datalad works.

Additionally this repository also houses the notebook files related to this project showcasing exploratory data analysis done on multiple categories.The modules are currently designed to give access to the necessary data through the use of maximum of three-four lines of code.

  1. Import relevant modules and initilize objects
from UKBRepo.UKBRepo import module_scalar_data_handler as scalar_module

scalar_handler_object=scalar_module.scalar_data_handler()
  1. Pick the main category to which your datatype belongs (T1_Images/Freesurfer/Diet/Smoking)
scalar_handler_object.display_all_ukb_categories()
  1. Fetch relevant field for that Category
bulk_handler_object.get_field_ids_for_category(Category_Name)
  1. Retrive the list of subjects who have those particular field ids
bulk_handler_object.get_subject_list_field_ids(Field_Id_List)
  1. Retrive relevant data for the subjects
bulk_handler_object.get_data_bulk(Field_Id,subject_id)

After executing the funtion of data retrival,the output user receives depends upon the type of data bieng requested. In case of scalar data the user will recive the actual data in the output whereas in case of bulk data it will be the path where the fetched bulk data files have been stored.

Requirements

  1. Datalad
  2. Git-annex
  3. Pandas
  4. Numpy

Refrences

http://handbook.datalad.org/en/latest/

Metadata

Release files for ukbaccessrepo 0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ukbaccessrepo 0.20
File Size Uploaded
ukbaccessrepo-0.20.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ukbaccessrepo 0.20
File Interpreter ABI Platform
ukbaccessrepo-0.20-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / ukbaccessrepo-0.20.tar.gz

Download URL ukbaccessrepo-0.20.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2acb1aec05920f266c6d625526da7faca2bf6f54957426666f01bee573989460
BLAKE2b-256 checksum
How to use checksums
91df3d5e3b87502b99d8d614bd92d4c5d24b71ce45f8abc5a51e1d1fc006e926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / ukbaccessrepo-0.20-py3-none-any.whl

Download URL ukbaccessrepo-0.20-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7d3236bf352a3f9dff40ecf18fed3ac14c252e1255787cba588faffd89a0e3b
BLAKE2b-256 checksum
How to use checksums
4b38860f4984ba6e3709bcbe329a4c155ebbce6d96dca4c9a0d19c4590992378
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

0.370

3 release files

0.360

2 release files

0.350

2 release files

0.340

2 release files

0.320

2 release files

0.310

2 release files

0.307

2 release files

0.306

2 release files

0.304

2 release files

0.303

2 release files

0.302

1 release file

0.301

1 release file

0.33

2 release files

0.25

2 release files

0.24

2 release files

0.23

2 release files

0.22

2 release files

0.21

2 release files

This release

0.20 This release

2 release files

0.19

2 release files

0.18

2 release files

0.16

2 release files

0.15

2 release files

0.12

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page