Skip to content

Add long_read option to make_fragment_file#471

Open
anagchar wants to merge 1 commit into
scverse:mainfrom
anagchar:main
Open

Add long_read option to make_fragment_file#471
anagchar wants to merge 1 commit into
scverse:mainfrom
anagchar:main

Conversation

@anagchar

Copy link
Copy Markdown

Long-read pipelines (e.g. ONT) mark PCR duplicates upstream with tools such as Picard MarkDuplicates, so reads arrive with the BAM duplicate flag (0x400) set. make_fragment_file discarded those reads during filtering, that made frac_duplicates always 0 and every per-fragment count 1.

Add a long_read flag (default False) that keeps duplicate-flagged reads so SnapATAC2 deduplicates them itself and reports accurate per-fragment counts and frac_duplicates. Default behavior remain unchanged.

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