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

Add sanitization/validation function for ISA-create mode (e.g. Datascriptor) #25

Open
Zigur opened this issue Aug 17, 2020 · 0 comments

Comments

@Zigur
Copy link

Zigur commented Aug 17, 2020

We need some sanitization/validation on study design JSON configs submitted to the rest service.
In brief, these are the checks performed

  • each arm has subject size < MAX_SUBJECT_SIZE = 1000
  • there are no more than MAX_ARMS = 20
  • each sample type in the sample plan produces no more than MAX_SAMPLE_SIZE = 10000 (this is computed as subject_size *sample_size)
  • the combinatorial output of the protocol parameters for each assay must not exceed MAX_ASSAY_COMBINATIONS = 32

If the validation is passed the function returns None. Otherwise, it returns a dict outlining all the checks that are not passed.

The returned messages are open to improvements.

Zigur added a commit that referenced this issue Aug 17, 2020
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

No branches or pull requests

1 participant