Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dataset.md #31

Merged
merged 9 commits into from
Oct 31, 2024
Merged

Update dataset.md #31

merged 9 commits into from
Oct 31, 2024

Conversation

Oufattole
Copy link
Collaborator

@Oufattole Oufattole commented Oct 25, 2024

Thoughts on the dataset template?

We should add that the user is expected to commit in the pull request:

  1. predicates to the file datasets/${dataset_name}/predicates.yaml
  2. the filled out pull request template in the file datasets/${dataset_name}/README.md

Summary by CodeRabbit

  • New Features
    • Introduced a new markdown template for datasets, enhancing documentation with structured sections for dataset name, description, supported tasks, resources, access details, and compliance checklist.
    • Added a checklist section to ensure compliance with the MEDS-DEV API.
    • Expanded sections to include aggregate statistics, cohort descriptions, and detailed access requirements.

Thoughts on the dataset template? What should the folder path be for the predicates file the user is expected to add?
Copy link
Contributor

coderabbitai bot commented Oct 25, 2024

Walkthrough

The changes introduce a new markdown template for datasets within the src/MEDS_DEV/templates/dataset.md file. This template is structured to include sections for the dataset name, description, supported tasks, resources, access details, and a compliance checklist. The template aims to standardize the documentation process for datasets in the MEDS-DEV project.

Changes

File Path Change Summary
src/MEDS_DEV/templates/dataset.md Added a new markdown template for datasets, including sections for name, description, supported tasks, resources, access, and a compliance checklist.

Possibly related PRs

  • Update Datasets README.md to clarify dataset contribution workflow #26: The changes in the src/MEDS_DEV/datasets/README.md file clarify the dataset contribution workflow, which is related to the new dataset template introduced in the main PR, as both aim to enhance the documentation and guidance for dataset contributions.
  • Adding AUMCdb to MEDS-DEV #27: The updates to the AUMCdb dataset's README include a detailed description of access requirements and supported tasks, which aligns with the new sections added in the main PR's dataset template that emphasize access policies and task descriptions.

🐇 In the meadow, templates bloom,
For datasets, they chase away gloom.
With sections neat and checklists bright,
Documentation shines, a pure delight!
Hoppy changes, let’s all cheer,
For structured data, we hold dear! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@mmcdermott
Copy link
Owner

I like this, but chat with @prockenschaub and @rvandewater -- they've added similar dataset templating information in #27, @Oufattole

@rvandewater
Copy link
Contributor

@Oufattole do you prefer to take over our changes as you see fit?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Outside diff range and nitpick comments (2)
src/MEDS_DEV/templates/dataset.md (2)

1-1: Simplify the title format.

The escaped characters make the template harder to read and copy.

-# \[New dataset\] \*\*Add your dataset name here\*\*
+# [New dataset] **Add your dataset name here**

43-48: Consider adding version history and contribution sections.

To better track changes and guide contributors, consider adding these sections:

## Version History
Document any significant updates or changes to the dataset.

## Contributing Guidelines
Specify how others can contribute to improving the dataset or documentation.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between c7c7908 and 8ead4af.

📒 Files selected for processing (1)
  • src/MEDS_DEV/templates/dataset.md (2 hunks)
🧰 Additional context used
🪛 Markdownlint
src/MEDS_DEV/templates/dataset.md

37-37: null
Bare URL used

(MD034, no-bare-urls)

src/MEDS_DEV/templates/dataset.md Outdated Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Outdated Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Outdated Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Outdated Show resolved Hide resolved
kamilest and others added 4 commits October 30, 2024 17:00
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@kamilest kamilest requested a review from Simonlee711 October 30, 2024 21:07
Added some other dataset descriptions that I think might be useful. Included coding standards (e.g OMOP) and also included the date range for the entire dataset (Hospital A contains data from 2013-2019)
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Outside diff range and nitpick comments (2)
src/MEDS_DEV/templates/dataset.md (2)

1-1: Remove unnecessary markdown escapes in title.

The square brackets don't need to be escaped in markdown titles.

-# \[New dataset\] \*\*Add your dataset name here\*\*
+# [New dataset] **Add your dataset name here**

21-21: Maintain consistency in path variables.

The path example uses different formats: $YOUR_DATASET_NAME vs MIMIC-IV. Consider using consistent notation.

-For supported tasks, provide the predicate definitions in a `predicates.yaml` file in `src/MEDS_DEV/datasets/$YOUR_DATASET_NAME` (e.g. `src/MEDS_DEV/datasets/MIMIC-IV/predicates.yaml`).
+For supported tasks, provide the predicate definitions in a `predicates.yaml` file in `src/MEDS_DEV/datasets/${dataset_name}` (e.g. `src/MEDS_DEV/datasets/MIMIC-IV/predicates.yaml`).
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 8ead4af and 4e62cbd.

📒 Files selected for processing (1)
  • src/MEDS_DEV/templates/dataset.md (2 hunks)
🧰 Additional context used
🪛 Markdownlint
src/MEDS_DEV/templates/dataset.md

11-11: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


12-12: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


13-13: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


14-14: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


15-15: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


33-33: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


34-34: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


35-35: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


37-37: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


38-38: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


39-39: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)

🔇 Additional comments (2)
src/MEDS_DEV/templates/dataset.md (2)

Line range hint 41-49: LGTM!

The access requirements section is well-structured and covers all necessary aspects of dataset access.

🧰 Tools
🪛 Markdownlint

11-11: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


12-12: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


13-13: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


14-14: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


15-15: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


33-33: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


34-34: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


35-35: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


37-37: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


38-38: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


39-39: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


56-65: LGTM!

The checklist is comprehensive and covers all necessary aspects of dataset submission.

src/MEDS_DEV/templates/dataset.md Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Outdated Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Show resolved Hide resolved
Added a point of contact for proprietary data, enabling users to proceed with submitting a job for evaluation.
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Outside diff range and nitpick comments (2)
src/MEDS_DEV/templates/dataset.md (2)

9-15: Standardize example formatting.

The examples in the description section use inconsistent formatting. Some use "e.g." within parentheses while others use a comma followed by "e.g."

-Aggregate statistics (e.g., number of patients, time range, age distributions, demographic distributions)
+Aggregate statistics, e.g.:
+  - Number of patients
+  - Time range
+  - Age distributions
+  - Demographic distributions
🧰 Tools
🪛 Markdownlint

11-11: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


12-12: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


13-13: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


14-14: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


15-15: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


21-21: Clarify predicate file path instruction.

The instruction for the predicate file path uses a variable notation that might be unclear to users.

-For supported tasks, provide the predicate definitions in a `predicates.yaml` file in `src/MEDS_DEV/datasets/$YOUR_DATASET_NAME` (e.g. `src/MEDS_DEV/datasets/MIMIC-IV/predicates.yaml`).
+For supported tasks, provide the predicate definitions in a `predicates.yaml` file in the dataset directory. For example, if your dataset is named "MIMIC-IV", the file should be at `src/MEDS_DEV/datasets/MIMIC-IV/predicates.yaml`.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 4e62cbd and 146b189.

📒 Files selected for processing (1)
  • src/MEDS_DEV/templates/dataset.md (1 hunks)
🧰 Additional context used
🪛 Markdownlint
src/MEDS_DEV/templates/dataset.md

11-11: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


12-12: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


13-13: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


14-14: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


15-15: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


33-33: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


34-34: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


35-35: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


37-37: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


38-38: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


39-39: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)

src/MEDS_DEV/templates/dataset.md Outdated Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Show resolved Hide resolved
@kamilest
Copy link
Collaborator

@prockenschaub @rvandewater I tried to merge the two versions for the dataset template (sorry this turned out to be concurrent!) and included suggestions from @Simonlee711 and coderabbit. Let me know if you have any thoughts!

@Jeanselme maybe we should also think about and request more information on any fairness-related considerations for the dataset (e.g. which groups are possible, request their definitions, etc.)

Also cc: @Oufattole @mmcdermott

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Outside diff range and nitpick comments (1)
src/MEDS_DEV/templates/dataset.md (1)

21-21: Consider adding predicates.yaml format example.

While the location for predicates.yaml is clear, providing an example of its expected format would help users create valid definitions.

Would you like me to generate an example predicates.yaml format?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 146b189 and 158ac5e.

📒 Files selected for processing (1)
  • src/MEDS_DEV/templates/dataset.md (1 hunks)
🧰 Additional context used
🪛 Markdownlint
src/MEDS_DEV/templates/dataset.md

11-11: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


12-12: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


13-13: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


33-33: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


34-34: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


35-35: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


37-37: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


38-38: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


39-39: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)

🔇 Additional comments (3)
src/MEDS_DEV/templates/dataset.md (3)

3-3: LGTM! Clear instructions for template usage.

The introduction clearly specifies where to place the README.md file and how to name the directory.


31-39: LGTM! Comprehensive resource requirements.

The section provides a clear and thorough list of required documentation and resources.

🧰 Tools
🪛 Markdownlint

33-33: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


34-34: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


35-35: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


37-37: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


38-38: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


39-39: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


47-51: LGTM! Well-structured access requirements.

The section thoroughly covers all aspects of dataset access, from policies to points of contact.

src/MEDS_DEV/templates/dataset.md Show resolved Hide resolved
src/MEDS_DEV/templates/dataset.md Show resolved Hide resolved
@kamilest kamilest mentioned this pull request Oct 30, 2024
@rvandewater
Copy link
Contributor

Looks good @kamilest

@kamilest kamilest merged commit c514d99 into main Oct 31, 2024
5 checks passed
@kamilest kamilest deleted the dataset-template branch October 31, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants