I am using a ballgown to create objects. I have only three samples (b73,f1, and mo17). These three samples are present in this path (Ballgwon>samples>b73,f1,mo17>all CTAB files). I want to do a Differential gene expression analysis.
I am trying to run this command: (bg = ballgown(dataDir= "samples", samplePattern = "ERR", pData=pheno_data).
Error: Tue May 25 17:34:22 2021 Tue May 25 17:34:22 2021: Reading linking tables Error in file(file, "rt") : invalid 'description' argument
I have tried multiple ways but all failed. Can anybody help me. I am not lazy to do it by myself but I am trying it for 4 days. Thanks for understanding!
To start with, brackets are not closed. Do not know if it is copy/paste problem or code error. Try posting
tree
of the datadir ('samples") here.That could have been an editing error when I fixed the format. If so my bad. Muhammad Haroon : Please confirm and fix as needed by editing original post.
I did not start with brackets, it was just written to show here..
Can you please run this first? Go to wherever samples directory is and from there execute:
If that fails, can you print tree of
samples
directory?and if possible
this is R bro, not Linux.
bg = ballgown(dataDir= "samples", samplePattern = "ERR", meas="all")
I tried the above command as you suggested but it's not working. Same error!
Please print output from
getwd()
and> list.dirs()
say. Confirm if your samples areb73
,f1
,mo17
as posted in OP.getwd() [1] "C:/Users/MALIK UMAIR ALI/Desktop/Ballgown/samples"
yes, all directories are being shown.
Please post the screenshot of outcome from
list.dirs()
here.In these directories, I have .ctab files for each sample like b73, f1, and mo17.
well, your sample pattern furnished in ballgown function, is incorrect. Could you please post output from
phenodata[,1]
?$ sample_path <- paste( "C:/Users/MALIK UMAIR ALI/Desktop/Ballgown/samples",pheno_data[,1], sep = '/') $ bg = ballgown(samples=as.vector(sample_path),pData=pheno_data)
Thanks! Both of these commands worked. Would you like to explain what was the reason? I will be obliged to you..