"Object of type 'closure' is not subsettable" Error
1
0
Entering edit mode
2.5 years ago

So I'm performing an ATAC-seq analysis using ArchR software and have had the same error persisting when running the following:

p <- ggPoint( # ggPoint: a ggplot-based dot plot wrapper function
  x = df[,1],
  y = df[,2], 
  colorDensity = TRUE,
  continuousSet = "sambaNight", 
  xlabel = "Log10UniqueFragments", 
  ylabel = "TSS Enrichment", 
  xlim = c(log10(500), quantile(df[,1], probs = 0.99)),
  ylim = c(0, quantile(df[,2], probs = 0.99))

  ) + geom_hline(yintercept = 4, lty = "dashed") + geom_vline(xintercept = 3, lty = "dashed")

Error in df[, 1]: object of type 'closure' is not subsettable

I have also tried switching out the brackets for parantheses but this does not fix the error. Any suggestions?

atac-seq scatac-seq archr • 1.4k views
ADD COMMENT
0
Entering edit mode

what happens when you type just df[,1]? Do you get the same error? If yes, can you also provide the output of str(df)?

ADD REPLY
0
Entering edit mode
2.5 years ago

Perhaps define x and y as xinput <- df[,1] from your dataframe outside of the ggpoint call , then use xinput within the command ?

ADD COMMENT

Login before adding your answer.

Traffic: 1672 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6