AWGL / somatic_db

A database for analysing cancer NGS data within AWMGS
https://awgl.github.io/somatic_db/
0 stars 2 forks source link

Initial SWGS models and upload #130

Closed Istaisa closed 2 months ago

Istaisa commented 3 months ago

This is very much a work in progress but it puts down the fundamentals and I want to try and avoid one giant one at once.

Included in this pull request:

Test data and running the imports: After making migrations, load the fixtures: manage.py loaddata swgs/fixtures/setup_fixtures.json Then import te data: manage.py import_wgs --patient_json test_patient_info.json --qc_json test_overall_qc.json --germline_snv_json test_germline_snv.json --somatic_snv_json test_somatic_snv.json

Example jsons are available here: https://github.com/AWGL/dragenswgs_post_processing/tree/vcf_to_json/tests/test_data/test_svd_files from the cell lines data. These will get moved in to SVD once they're finalised I've got some clinvar and cancer hotspots tweaked to make.

Istaisa commented 2 months ago

Added basic CSV download functionality - closes #131 . Currently it downloads everything displayed on webpage, I can add in clinvar, cancer hotspots etc. as well, I just need to update my SVD test dataset for those. We can comment out the SWGS link from the main bar to put it live in the background. Also to add: I'll do an upload script refactor once we've got everything going in as there is some code duplication due to the different germline/somatic models.

Istaisa commented 2 months ago

All inline comments resolved.