msysbio / bacterial_growth

a database and an interface for bacterial growth data
1 stars 3 forks source link

Combination of user input parameters in --createInfoFile #12

Open jcasadogp opened 1 year ago

jcasadogp commented 1 year ago

With the positional argument createInfoFile, the user can introduce 3 optional arguments: --num_studies, --num_biological_replicatesand --num_perturbations. The problem is because of the combinations that can be created with this input parameters. --num_studies is already limited to 0 or 1; only one study can be added at a time. Is --num_biological_replicates is 1, -num_perturbations can be 0, 1 or N, as all the perturbations will be added in that single new experiment. But, if -num_biological_replicates is N, the perturbations we may add after that will all be included in the last biological replicate introduced in the database. Solve this in way that is easy for the user to understand the combinations he can make.

jcasadogp commented 1 year ago

Possible solution. Add this into the YAML file. Modify the create_populate_file.py.

Code:

BIOLOGICAL_REPLICATE:
- BIOLOGICAL_REPLICATE_IDENTIFIER: 1
  NAME:
    value: _name_
    ## description: Name of the biological replicate

PERTURBATION:
- BIOLOGICAL_REPLICATE_IDENTIFIER: _id_
    ## description: Indicate the BR name you provided before.
hariszaf commented 1 year ago

:+1:

jcasadogp commented 1 year ago

Related change to be made: