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

Fix using the "Color by modifications" setting on files that need ref renaming #2128

Merged
merged 4 commits into from
Jul 14, 2021

Conversation

cmdcolin
Copy link
Collaborator

Fixes #2125

There is a subtle chain of behaviors where because the ref renaming didn't work, it created the invalid state seen in #2125

It started with the assemblyName not being defined, so renameRegionsIfNeeded returned the regions back, so then the bamadapter just returned 0 features for requests to the wrong chromosome for getting the 'modification color map' preprocessing step, so then the colors were black

complicated chain of events...it could be interesting if it used the assemblyName on the region object perhaps but this fixes the issue in the current way that things work

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Jul 14, 2021
@cmdcolin
Copy link
Collaborator Author

Note that the way it is done here is also the way it is done e.g. on the wiggle get stats rpc call

@codecov
Copy link

codecov bot commented Jul 14, 2021

Codecov Report

Merging #2128 (371ad3d) into main (ec358f4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2128   +/-   ##
=======================================
  Coverage   61.99%   61.99%           
=======================================
  Files         476      476           
  Lines       22781    22781           
  Branches     5351     5351           
=======================================
  Hits        14123    14123           
  Misses       8377     8377           
  Partials      281      281           
Impacted Files Coverage Δ
plugins/alignments/src/shared.ts 54.54% <ø> (ø)

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 ec358f4...371ad3d. Read the comment docs.

@cmdcolin cmdcolin force-pushed the add_assembly_name_for_mod_renames branch from 544d5b7 to 350d400 Compare July 14, 2021 06:29
@cmdcolin cmdcolin added bug Something isn't working and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Jul 14, 2021
@cmdcolin
Copy link
Collaborator Author

can merge this and consider further refactor additionally

@cmdcolin cmdcolin merged commit 5bd7b12 into main Jul 14, 2021
@cmdcolin cmdcolin deleted the add_assembly_name_for_mod_renames branch July 15, 2021 17:21
@cmdcolin cmdcolin changed the title Fix using Color by modifications on BAM/CRAM that need ref renaming Fix using the "Color by modifications" setting on files that need ref renaming Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifications/methylation fails with nanopolish sample
1 participant