Hello everyone,
I generated quant.sf files with salmon tool and now I want to import them into R and later perform a differential expression analysis. I'm following the procedure in this link Salmon/Sailfish
the first code is
files <- file.path(/home/RNAseq/salmon_folder/salmonSFquant/treated_1/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/treated_2/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/treated_3/quant.sf,
/home/RNAseq/salmon_folder/salmonSFquant/untreated_1/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/untreated_2/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/untreated_3/quant.sf,"salmon"
,samples$run, "quant.sf")
for some reason I have this error
files <- file.path(/home/RNAseq/salmon_folder/salmonSFquant/treated_1/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/treated_2/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/treated_3/quant.sf,
Error: unexpected '/' in "files <- file.path(/"
> /home/RNAseq/salmon_folder/salmonSFquant/untreated_1/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/untreated_2/quant.sf, /home/RNAseq/salmon_folder/salmonSFquant/untreated_3/quant.sf,"salmon"
Error: unexpected '/' in " /"
> ,samples$run, "quant.sf")
Error: unexpected ',' in " ,"
Do I have to create a sample.txt?
I'm new to bioinformatic in general and R too, so I would appreciate any help,
thank you
Hi Michael, next time I will put the name of the package in the tag. I just use the tilda sign and I solved the issue... thanks :)
can I ask you for another help? I should be close to DESeq2 ...
Can you tell me why I do have the error for reader=read_tsv, is it missing something?
thank you
Probably an old version of Bioconductor.
biocLite("BiocUpgrade") Error: Bioconductor version 3.8 cannot be upgraded with R version 3.5.0 In addition: Warning message: 'biocLite' is deprecated. Use 'BiocManager::install' instead. See help("Deprecated")
I hope is not for that,
thank you Michael
Back to the beginning.
Just don’t specify “reader”. The function is telling you that it doesn’t know about “reader”.
And read help locally: ?tximport, vignette(“tximport”)
If you read help online and have out of date software you will get confused.
Hi Michael, I tried as you suggested to me but it didn't work .. so I start looking on the web for the solution without success. I have to say that when I write every path I check using the autocompletion if it's ok but this tool does't like my files. I ended up to do this pipeline:
.
.
Is it correct this command line below like this? probably is this the problem
I run this command below to se if he recognizes my files but I get 0
.
I can't figure it out what's wrong, I would be more then happy to figure this out
thank you
That last error says that
files
is not pointing to files that exist at the location you specified.You can just look at
files
and check that those are correct locations.We are just checking,
internally to make sure the user is pointing to files that exist and can be read into R.
if I do
I have this
I'm sure that the files quant.sf are in the location of the path used
thank you
Ok if you look above you are trying to build a path using
samples$run
. But look atsamples
, does this have a column namedrun
? You have to be careful about your R code and make sure that you are doing sensible things at each step. You can't refer to a column of a table that doesn't exist.To be honest with you I though that $run was a function of R, I learned something more, thanks. I did some adjustment, I have different results but still the same error...
Thank you Michael
This is not really an issue with tximport but with working with R and specifying files. I have limited time unfortunately to reply to support requests here, essentially I have to carve it out of my spare time. I’d recommend sitting with a bioinformatician who can look over your shoulder and give some advice on avoiding small coding errors.
Ok Michael, I will follow your suggestion
Thanks
Ok I fixed the problem,
I modified the codes, mainly by writing the entire paths for all the codes and fixing the variable file.path.
Hi Merlin,
I am the new guy to bioinformatic in general and R too. and i come across the similar problem. Can you post your final solution to this problem? Really appreciate.