Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add docker container for vcf2cytosure #869

Merged
merged 19 commits into from
Mar 7, 2022
Merged

Conversation

ashwini06
Copy link
Contributor

@ashwini06 ashwini06 commented Feb 24, 2022

This PR:

Previously vcf2cytosure is added to the annotate container in PR #650. But there exists a problem loading vcf2cytosure in this container

aa1

The problem might be with the loading entry points for vcf2cytosure installation and its installation exited..

Removed: vcf2cytosure from annotate container

Added: New Docker container for vcf2cytosure. Related to #858

Review and tests:

  • Tests pass
  • Code review
  • New code is executed and covered by tests, and test approve

@ashwini06 ashwini06 added the Feature New feature label Feb 24, 2022
@ashwini06 ashwini06 self-assigned this Feb 24, 2022
@codecov
Copy link

codecov bot commented Feb 24, 2022

Codecov Report

Merging #869 (0c6ee47) into develop (8c2b2af) will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #869      +/-   ##
===========================================
- Coverage    99.65%   99.60%   -0.06%     
===========================================
  Files           29       29              
  Lines         1761     1761              
===========================================
- Hits          1755     1754       -1     
- Misses           6        7       +1     
Flag Coverage Δ
unittests 99.60% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
BALSAMIC/constants/common.py 100.00% <ø> (ø)
BALSAMIC/utils/cli.py 99.71% <0.00%> (-0.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c2b2af...0c6ee47. Read the comment docs.

@ashwini06 ashwini06 marked this pull request as draft February 24, 2022 14:55
@ashwini06 ashwini06 marked this pull request as ready for review March 2, 2022 14:46
@ashwini06
Copy link
Contributor Author

ashwini06 commented Mar 2, 2022

Tested the new container. vcf2cytosure is installed correctly

vc

Also noted that the current container tests for annotate (same code in all container tests) didn't really capture the problem with loading vcf2cytosure
The code in the container tests https://github.com/Clinical-Genomics/BALSAMIC/blob/70fbdbe718edcd42e165442a521444fcb41d5c55/container_tests/annotate/annotate.sh#L8 only check fo the path but doesn't look for loading of the tool for eg: vcf2cytosure --help (error like in description screenshot) is not actually captured.

Coverage is dropped, because of this https://app.codecov.io/gh/Clinical-Genomics/BALSAMIC/compare/869/changes#D1L490. By simply removing these pip installation of bioinfo-tool will solve the coverage drop, but I would like to leave it as such, so we have an open option for installing bioinfo-tools via pip in the container in the future.

Regarding this https://github.com/Clinical-Genomics/BALSAMIC/pull/869/checks?check_run_id=5393027413, I tried the option with pip install --no-cache-dir . but that has problems with vcf2cytosure installation with constants module.
@ivadym let me know if you have any suggestions on this part.

@ashwini06 ashwini06 marked this pull request as draft March 2, 2022 16:39
Copy link
Contributor

@ivadym ivadym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Regarding your comment, it seems that Python does not know where to look for the required modules, but it should be solved setting explicitly the PYTHONPATH environment variable. I tested it locally with the changes that I suggested and it works:

Screen Shot 2022-03-02 at 20 26 40

BALSAMIC/containers/vcf2cytosure/Dockerfile Outdated Show resolved Hide resolved
BALSAMIC/containers/vcf2cytosure/Dockerfile Outdated Show resolved Hide resolved
@ashwini06
Copy link
Contributor Author

👍

Regarding your comment, it seems that Python does not know where to look for the required modules, but it should be solved setting explicitly the PYTHONPATH environment variable. I tested it locally with the changes that I suggested and it works:

Screen Shot 2022-03-02 at 20 26 40

Thanks @ivadym for your suggestions :) It works fine now with your suggestions

@ashwini06 ashwini06 marked this pull request as ready for review March 4, 2022 14:03
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ashwini06
Copy link
Contributor Author

@ivadym @khurrammaqbool : Ready for review 🔈

Copy link
Contributor

@ivadym ivadym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ashwini06 ashwini06 merged commit 89b5e69 into develop Mar 7, 2022
@ashwini06 ashwini06 deleted the feat/add_vcf2cytosure branch March 7, 2022 10:37
@ashwini06 ashwini06 mentioned this pull request Apr 5, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants