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

convert Redcap2ReproSchema.js to redcap2reproschema.py #30

Merged
merged 26 commits into from
Jan 8, 2024

Conversation

yibeichan
Copy link
Contributor

@yibeichan yibeichan commented Dec 25, 2023

here i converted/translated RedCap2ReproSchema.js to a python file reproschema/redcap2reproschema.py

Changes include:

  • fully converted python file redcap2reproschema.py with unnecessary functions (e.g., create context file for each activity)
  • created a template .yaml file (templates/redcap2rs.yaml) for predefined metadata
  • integrated the tool with CLI
  • updated README.md with instructions on how to use it as CLI and as a python function

@yibeichan yibeichan self-assigned this Dec 25, 2023
@yibeichan yibeichan changed the title [WIP] convert Redcap2ReproSchema.js to redcap2reproschema.py convert Redcap2ReproSchema.js to redcap2reproschema.py Dec 27, 2023
@yibeichan
Copy link
Contributor Author

i tested it using a redcap dictionary (two assessments combined from the redcap library) and the outputs are here, pretty good

@yibeichan
Copy link
Contributor Author

i realized that we don't need to specify a github handler in this case. in the javascript version, it (github repo url) was needed to generate protocol-specific context. we don't need such context here.
also, I added a test for testing redcap2reproschema in cli. it worked.

so, this PR is 100% done. I'm gonna move to other tasks.

@yibeichan yibeichan merged commit db29603 into ReproNim:master Jan 8, 2024
9 checks passed
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.

1 participant