Skip to content

Revise handling of COSMIC mutational signatures - #17

Merged
brendanreardon merged 16 commits into
mainfrom
remove-R
Nov 22, 2023
Merged

brendanreardon merged 16 commits into
mainfrom
remove-R

Conversation

@brendanreardon

@brendanreardon brendanreardon commented Nov 22, 2023 •

Copy link
Copy Markdown
Collaborator

This pull request utilizes v.2023-11-09 of the underlying MOAlmanac database and the algorithm version is incremented to 0.5.0.

This pull request changes how COSMIC mutational signatures are managed by MOAlmanac. deconstructSigs is no longer run as a subprocess within the Docker and code environment in favor of "bringing your own" COSMIC mutational signatures. Like the database, this algorithm supports SBS COSMIC mutational signatures from v3.4.

Additions:

  • example_data/example.sbs_contributions.txt has been added as an example input of COSMIC v3.4 SBS signatures.
  • moalmanac/moalmanac.py now accepts --mutational_signatures as an input argument.

Revisions:

  • The Dockerfile now uses miniconda:3.11 as a base image and no longer installs R. The base-image/ folder has thus been removed, as that was used to have a base image with a stable R installation.
  • README.md was revised to remove details of installing R and deconstructSigs.
  • docs/description-of-inputs.md now contains input specifications for COSMIC mutational signatures.
  • moalmanac/annotator.py and colnames.ini have been revised to adjust how mutational signatures are handled with the updates to v3.4.
  • Files within the example_output folder have been renamed to use example_output. as a prefix instead of example.
  • The default minimum contribution set in config.ini for mutational signature contributions has been lowered from 0.20 to 0.06. Relevant fields under function_toggle to enable/disable running of deconstructSigs as a subprocess and plotting have been removed.
  • example_output/example_output.actionable.txt has been updated to include annotations and interpretations from the revised signature implementations and called copy number alterations.
  • Outputs produced from deconstructSigs as a subprocess and figures for mutational signatures have been removed, though the latter may be reintroduced in a later release. moalmanac/annotator.py, moalmanac/features.py, moalmanac/illustrator.py, and moalmanac/moalmanac.py have been revised to remove functionality for running deconstructSigs as a subprocess.
  • moalmanac/test/annotator_tests.py was updated to include last_updated as a field for sorting and updated based on the v.2023-11-09 database release.
  • moalmanac/test/features_tests.py was updated to remove tests for deprecated functions that were used for COSMIC signature import, and presently used tests were revised for the new functionality.

Bug fixes:

  • The "Called copy number alterations" section of docs/description-of-inputs.md incorrectly listed "Required files" instead of "Required fields" as a sub header.

Pre-pull request check list,

  • Relevant documentation has been updated
  • All unit tests pass
  • All outputs pre- and post- changes match by md5 hash
  • All files changed have been reviewed

@brendanreardon

brendanreardon commented Nov 22, 2023 •

Copy link
Copy Markdown
Collaborator Author

The main README.md, docs/description-of-inputs.md, and docs/description-of-outputs.md have been updated to reflect changes made in this pull request.

All unit tests pass, and outputs match except where expected.

All files changed have been reviewed.

@brendanreardon
brendanreardon merged commit 37c7b04 into main Nov 22, 2023
@brendanreardon
brendanreardon deleted the remove-R branch November 22, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant