Open joewandy opened 4 years ago
As discussed on slack, we will create another model called 'Factor'. This will be linked to the Sample model, and use it to store the group, life stage, tissue and mutant in the case of FlyMet. For other dataset, we can store different factors, like timepoints etc.
Alternatively we could store the factors in a JSON dictionary and put them into a column in the sample .. But this is not very relational.
The PyMT data can now be successfully loaded through the pipeline. However many views are not working, due to the hardcoding in the codes (related to issue #60). Will work on that next.
At the moment, the sample metadata stored in the database is specific to FlyMet. It assumes the following info are provided: lifestage, tissue, mutant. For other dataset, these info won't be available, and different types of metadata will be available. I would like to perform the following enhancement to the pipeline to make it more generic in order to be able to load other non-FlyMet dataset in.
In particular here are the codes that will be modified:
In the population script
In the model
and in the serialiser