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

plotDeletion() error #6

Open
thedam opened this issue Feb 7, 2018 · 0 comments
Open

plotDeletion() error #6

thedam opened this issue Feb 7, 2018 · 0 comments

Comments

@thedam
Copy link

thedam commented Feb 7, 2018

Hi,
I think you have something wrong in plotDeletion function.
when I run:

lapply(1:nrow(results$filteredCalls),function(i){
  plotDeletion(results$filteredCalls, i, results$bedOrdered, results$rpkmDtOrdered,  lowRPKMthreshold, plotsDir, mainText=""  )})

I get error:

Error in !calls$inAOH_1000[other_idx] : invalid argument type

I discovered that when I'm setting:
minAOHsize <- 500
the hardcoded variable calls$inAOH_1000 becomes calls$inAOH_500. After changing it manually in the code, everything works.
so when I'm using: minAOHsize <- 500
I have to manually change it:

	if (length(other_idx)>0){
		noAOH <- calls$FID[other_idx][which(!calls$inAOH_1000[other_idx])]
	}

on this:

	if (length(other_idx)>0){
		noAOH <- calls$FID[other_idx][which(!calls$inAOH_500[other_idx])]
	}

(however at the end there are printed such info:

[[121]]
null device
1

[[122]]
null device
1

[[123]]
null device
1

but at least I obtain all 123 plots).

Thanks
Damian Loska

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