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

unable to plot using ggplot2, object 'count' not found #44

Open
dotaa opened this issue Oct 3, 2017 · 5 comments
Open

unable to plot using ggplot2, object 'count' not found #44

dotaa opened this issue Oct 3, 2017 · 5 comments

Comments

@dotaa
Copy link

dotaa commented Oct 3, 2017

Hello,
I have successfully loaded the 4Cker object as:
my_obj = createR4CkerObjectFromFiles(files = "hs75l6_13_DN-4C_9p21_DD1_CTCF_view_GACCAG_L006_R1_001_aligned.bedGraph",bait_chr="chr9",bait_coord= 22231303,bait_name = "CTCF-9p21locus", primary_enz = "AAGCTT", samples = c("CTCF_DD1"), conditions = "DD1", replicates = 1,species = "hg",output_dir = "/home/dnotani/ssanaa/software/R.4Cker-master/folder_for_analysis",enz_file=enz_file)
however, upon plotting the object i am getting the following error:
Don't know how to automatically pick scale for object of type Coord/ggproto. Defaulting to continuous.
Error in eval(expr, envir, enclos) : object 'Count' not found

the command for plotting used is the default command given in readme:
ggplot(nb_results$norm_counts_avg, aes(x=Coord, y=Count, colour=Condition))+
theme_bw()+
geom_line()+xlab(paste("Chromosome coordinates (", my_obj@bait_chr, ")", sep =""))+
ylab("Normalized counts")+
ggtitle(paste("Near bait analysis (", my_obj@bait_name, " bait)", sep = ""))

Please help!
Thank you.

@rr1859
Copy link
Owner

rr1859 commented Oct 5, 2017

Hi,

Did you do a nearBait analysis? - nb_results=nearBaitAnalysis(my_obj,k=5)

@dotaa
Copy link
Author

dotaa commented Oct 6, 2017 via email

@dotaa
Copy link
Author

dotaa commented Oct 6, 2017

maybe it doesnt work with no replicates? is that the case??

@rr1859
Copy link
Owner

rr1859 commented Oct 6, 2017

Yes sorry the plotting doesnt work with one replicate - i would recommend visualizing the bedGraph file on a browser.

@dotaa
Copy link
Author

dotaa commented Oct 7, 2017

Hi, In that case, what if i give the same file copy as a replicate? the results wouldn't be different from there being just one replicate would it? or will i give incorrect results?

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

2 participants