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 handling chimeric alignments in hicBuildMatrix #151

Merged
merged 3 commits into from
Nov 24, 2017

Conversation

ajank
Copy link

@ajank ajank commented Nov 17, 2017

See the commit comments for details.

Aleksander Jankowski added 2 commits November 17, 2017 15:57
SAM format specification does not impose an order of alignment lines (i.e. supplementary alignments might appear before or after the representative alignment). Here in code, the first alignment is taken as "primary", all the following as "supplementary", hence the flag is_supplementary should be ignored. The decision regarding which alignment is representative is usually arbitrary.
This should depend on the position of the first match (operation M in CIGAR string) in the read sequence. Currently, it depends on the number of CIGAR tuples before the first match. The fix makes e.g. 1H64M36H rank higher than 65S36M.
@fidelram
Copy link
Contributor

@ajank I will take care of the flake8 error. Meanwhile, can you document a bit the lines that you modified? Simply add something similar to the git commit message to the file.

@fidelram fidelram merged commit 2f54528 into deeptools:master Nov 24, 2017
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.

2 participants