kids-first/kf-api-dataservice

SequencingExperiment and GenomicFile Model and Endpoint Changes

znatty22 opened this issue · 0 comments

See #466 for design details.

We need to be able to search for downstream genomic files (i.e. gVCF/VCF) by
sequencing experiment information pertaining to the original harmonized
genomic files (i.e. bams).

After more discussion, we've determined the simplest
and more performant solution would be to make the relationship between sequencing
experiment and genomic file many to many so that we can directly link downstream
genomic files to their associated sequencing experiments.

This ticket covers the implementation of the data model change and the associated endpoints

To do:

  • Back out the changes that added reflected sequencing experiment fields on genomic file model
  • Model change - make SE GF relationship many-to-many
  • /sequencing-experiment-genomic-files
  • /genomic-files?sequencing_experiment_id=<se kf id>
  • /sequencing-experiments?genomic_file_id=<gf kf id>