Clinical-Genomics / chanjo2

Persistent coverage analysis tool using the d4 format
https://clinical-genomics.github.io/chanjo2/
2 stars 0 forks source link

Do not save cases/samples into the sql database and work uniquely with stats runned on d4 files on the fly #330

Closed northwestwitch closed 2 months ago

northwestwitch commented 3 months ago

THIS IS A MAJOR CHANGE,

but with the refactoring of the computation of the coverage completeness (upcoming PR), why can't we release a mayor? It's good timing.

Description

Changed

Currently chanjo2 supports saving cases and samples (including paths to local d4 files) data into the database for later use. Later use being the following endpoints:

None of the functionalities are used by us or our collaborators, so I want to simplify chanjo2 by removing them.

How to test

Expected outcome

Review

This version is a

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.18%. Comparing base (c65c670) to head (719f1b8). Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #330 +/- ## ======================================= Coverage 90.18% 90.18% ======================================= Files 30 30 Lines 1457 1457 ======================================= Hits 1314 1314 Misses 143 143 ``` | [Flag](https://app.codecov.io/gh/Clinical-Genomics/chanjo2/pull/330/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Clinical-Genomics) | Coverage Ξ” | | |---|---|---| | [unittests](https://app.codecov.io/gh/Clinical-Genomics/chanjo2/pull/330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Clinical-Genomics) | `90.18% <100.00%> (ΓΈ)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Clinical-Genomics#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

northwestwitch commented 2 months ago

Hi @Jakob37, I was wondering if you have some time to give this PR a review? It's not adding any new feature, only removing stuff we are not using (see PR description) thus simplifying the whole thing. Thanks!

Jakob37 commented 2 months ago

Hi @Jakob37, I was wondering if you have some time to give this PR a review? It's not adding any new feature, only removing stuff we are not using (see PR description) thus simplifying the whole thing. Thanks!

Yes, I can take a look before the end of this week!

Jakob37 commented 2 months ago

I ran this locally together with the Scout stack. The latest main branch of Scout.

I needed to mount in the Scout demo data folder to get it working - before that Chanjo2 couldn't access the d4 file. But that is probably as expected.

Looks good!

new_chanjo2

Jakob37 commented 2 months ago

I eyed through the code as well. Didn't find anything to comment on there. This seems to simplify the code a lot, nice πŸ˜„

northwestwitch commented 2 months ago

I eyed through the code as well. Didn't find anything to comment on there. This seems to simplify the code a lot, nice πŸ˜„

Thank you! Let's go for this and a new major release when we have the new faster completeness stats in place!

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud