Skip to content

Conversation

@Phlya
Copy link
Member

@Phlya Phlya commented Sep 6, 2024

No description provided.

)
if self.single_mapped_by_side:
left_only_mapped_count = np.logical_and(
df_filtered["chrom1"] != unmapped_chrom,
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm, this definition of "one-sided mapped" won't work for chimeric reads originating from R1. It will count them as "two-sided" although they factually come from R1 oly. This looks like a re-implementation of single-end mapped pairs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ummm is there a way to account for those properly at all at this stage? I think without some extra arguments this information is just lost...

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, you need walk_pair_type column for that
https://pairtools.readthedocs.io/en/latest/parsing.html#rescuing-complex-walks section walk_pair_types

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.

4 participants