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

pairtools split - float mapQ value #182

Open
nservant opened this issue Jul 13, 2023 · 2 comments
Open

pairtools split - float mapQ value #182

nservant opened this issue Jul 13, 2023 · 2 comments

Comments

@nservant
Copy link

nservant commented Jul 13, 2023

Hi,
I'm using pairtools split to transform a pairsam into a pairs.gz file, and then apply pairtools select on the output with

pairtools select "(mapq1>10 and mapq2>10)" -o selected.pairs.gz test_split.pairs.gz

The select crashed for a format issue ;

ValueError: invalid literal for int() with base 10: '60.0'

Of note, I tried with several other regular expressions like ;

  • (int(mapq1)>10 and int(mapq2)>10)
  • (int(float(mapq1))>10 and int(float(mapq2))>10)
    But I still have the issue

I think the float encoding of the mapQ values is already there before the select ... I'll try to find where exactly.
Would you have any idea to fix this issue ?
Thanks

@agalitsyna
Copy link
Member

I believe your contact pairs have non-typical encoding of mapq. What mapper/version did you use?
We usually use bwa mem output, and its mapq is integer.
That's the first time I encounter non-integer mapq, but it is worthy changing the pairtools defaults then.
Can you provide more details and, probably a sample of your pairs file?

@golobor
Copy link
Member

golobor commented Mar 17, 2024

sorry for the massive delay, this is likely to be already solved or stale.
@nservant , did you find any solution to this issue that we could share with others?

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

No branches or pull requests

3 participants