-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Documentation for the validation of a pathology folder.
- Loading branch information
1 parent
faa2443
commit 4d706ec
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,39 @@ | ||
[![codecov](https://codecov.io/gh/madgik/mipdb/branch/main/graph/badge.svg?token=BGF1OU23JA)](https://codecov.io/gh/madgik/mipdb) | ||
# mipdb [![codecov](https://codecov.io/gh/madgik/mipdb/branch/main/graph/badge.svg?token=BGF1OU23JA)](https://codecov.io/gh/madgik/mipdb) | ||
|
||
mipdb is a tool to validate datasets for the MIP platform. | ||
|
||
## Prerequisites | ||
|
||
Before you begin, ensure you have met the following requirements: | ||
|
||
- **python** | ||
- **pip** | ||
|
||
## Installation | ||
|
||
You can easily install mipdb using `pip`: | ||
|
||
```bash | ||
pip install mipdb | ||
``` | ||
|
||
## Usage | ||
|
||
### Validating a Pathology Folder | ||
|
||
**Command**: `mipdb validate-folder <folder_path>` | ||
|
||
**Description**: | ||
- The command enforces the following [requirements](https://github.com/HBPMedical/mip-deployment/blob/master/documentation/NewDataRequirements.md). | ||
- First, the metadata file itself is validated. | ||
- Secondly, the csvs in the folder are validated against the metadata. | ||
|
||
**Note**: You can nest multiple pathology folders within a parent folder, and the `validate-folder` command will automatically iterate through each pathology folder. | ||
|
||
**Examples**: | ||
```bash | ||
mipdb validate-folder /home/user/data/dementia | ||
``` | ||
```bash | ||
mipdb validate-folder /home/user/data | ||
``` |