-
Notifications
You must be signed in to change notification settings - Fork 212
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
bamCoverage: TypeError: slice indices must be integers or None or have an __index__ method #491
Comments
That's very strange. Can you post your BAM file somewhere (you can create an account on deeptools.ie-freiburg.mpg.de and ftp the file there if needed)? |
Hi, strange indeed. This is from ATAC-Seq data. I can provide a Dropbox link, but I'd rather do this non-publicly, can I send you an email or something with the link? Thanks for the quick help! |
Certainly, you can use my institute email address: ryan@ie-freiburg.mpg.de |
This is now available in pypi and will be available in conda whenever TravisCI is finished. |
Hello, I recently got this same error when doing --MNase option combined with --minFragmentLength and --maxFragmentLength. bamFilesList: ['ATAC2_rep1_sorted.bam'] The above exception was the direct cause of the following exception: Traceback (most recent call last): Any thoughts? Thanks! Sheila |
@SheilaTeves What version are you using? |
Oh, I still have 2.5.1. I will upgrade and check if it's still an issue |
Since a recent update of all packages and deepTools, I receive the following error when running bamCoverage using BOTH the --extendReads and --centerReads parameter, either one of these 2 parameters works fine, but not the combination. The exact same command worked before (see below), the BAM file is also fine.
bamCoverage --bam test2.merged.final.bam --binSize 10 --centerReads --extendReads --outFileName test2.merged.final.bigwig --outFileFormat bigwig --region chr21
region: chr21:10
verbose: False
center_read: True
bamFilesList: ['test2.merged.final.bam']
ignoreDuplicates: False
samFlag_include: None
numberOfProcessors: 4
bedFile: None
out_file_for_raw_data: None
save_data: False
numberOfSamples: None
blackListFileName: None
chrsToSkip: []
stepSize: 10
defaultFragmentLength: 56
smoothLength: None
zerosToNans: False
maxPairedFragmentLength: 224
minFragmentLength: 0
minMappingQuality: None
maxFragmentLength: 0
binLength: 10
samFlag_exclude: None
I believe this error is related to the following warning that I received earlier, that however did not result in an error and produced the correct output file:
.../miniconda3/lib/python3.5/site-packages/deeptools/countReadsPerBin.py:628: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Any suggestions how to fix it? Sounds like an implementation issue. All my conda packages are up to date, and I even installed deepTools only in an isolated conda environment to make sure there is no possible interference with other tools. I am using deepTools 2.4.2
The text was updated successfully, but these errors were encountered: