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

Error in if (class(medianReadsPerBin) == "numeric") { : the condition has length > 1 #7

Open
mdugo opened this issue Jul 7, 2023 · 0 comments

Comments

@mdugo
Copy link

mdugo commented Jul 7, 2023

Hi,
I am running the function optimalBinsize on a bunch of shallow WGS .bam files in R version 4.2.1

When the last sample is processed by the function, I get the following error:

Error in if (class(medianReadsPerBin) == "numeric") { : the condition has length > 1

The problem is that when multiple bam files are processed class(medianReadsPerBin) outputs "matrix" "array" causing the condition to have length > 1.

Best

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

1 participant