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

Bug: AssertionError when --cutoff-analysis was set #341

Closed
freedog8 opened this issue Nov 2, 2019 · 4 comments
Closed

Bug: AssertionError when --cutoff-analysis was set #341

freedog8 opened this issue Nov 2, 2019 · 4 comments
Assignees

Comments

@freedog8
Copy link

freedog8 commented Nov 2, 2019

Describe the bug
An exception was thrown when run callpeak program with --cutoff-analysis set.

Screenshots
image
Screenshots (no --cutoff-analysis)
image

**Screenshots (with control, maybe another issue) **
image
image

Another data with contorl
image
image

Another data with contorl (no --cutoff-analysis)
image
image

System (please complete the following information):

  • OS: Linux
  • python-3.7.5
  • numpy-1.17.2
  • macs2 2.2.5
@taoliu
Copy link
Contributor

taoliu commented Nov 2, 2019

Hi @freedog8. In the first three cases, the fragment size inferred from BAMPE file is 0 and very few reads are "valid" after filtering. It seems that MACS2 can't correctly read the information. Could you share with me a chunk of your clean.bam file from bowtie? A way to get around this is to convert the BAMPE into a BEDPE file. In the BEDPE file, you just need three columns: chromosome, the leftmost position of the read pair, and the rightmost position of the read pair.

As for the "Another data with control", the complaint on rcond is caused by numpy. I will update the code to silence the warning. And the ValueError can be a quick fix. Stay tuned.

@taoliu
Copy link
Contributor

taoliu commented Nov 2, 2019

hmm... I didn't realize that the find_optimal_cutoff function is an unfinished function from years ago... I have disabled that. The cutoff analysis should output a cutoff analysis table for you, but the 'suggest an optimal cutoff' feature should not be enabled.

The updates can be found in PR: #342 , and will be included in the next release.

@freedog8
Copy link
Author

freedog8 commented Nov 2, 2019

Hi @freedog8. In the first three cases, the fragment size inferred from BAMPE file is 0 and very few reads are "valid" after filtering. It seems that MACS2 can't correctly read the information. Could you share with me a chunk of your clean.bam file from bowtie? A way to get around this is to convert the BAMPE into a BEDPE file. In the BEDPE file, you just need three columns: chromosome, the leftmost position of the read pair, and the rightmost position of the read pair.

As for the "Another data with control", the complaint on rcond is caused by numpy. I will update the code to silence the warning. And the ValueError can be a quick fix. Stay tuned.

Oh, I just realize that the ChIP-Seq data of the first three cases is single-end. That‘s the reason. Thanks!

@taoliu
Copy link
Contributor

taoliu commented Nov 9, 2019

Cutoff-analysis in callpeak cmd has been fixed in 2dd2839

@taoliu taoliu closed this as completed Nov 9, 2019
@taoliu taoliu mentioned this issue Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants