Hi, I have been trying to merge HTseq files into one data matrix using following script. However, I am encountering following error;
directory <- "C/RNA SEQ adv cgrp/IWAT"
sampleFiles <- grep("COUNT FILES",list.files(directory),value=TRUE)
condition <- c('237 COUNT FILES','264 COUNT FILES','267 COUNT FILES','265 COUNT FILES')
sampleTable <- data.frame(sampleName = sampleFiles,
+ fileName = sampleFiles,
+ condition = condition)
Error in data.frame(sampleName = sampleFiles, fileName = sampleFiles, :
arguments imply differing number of rows: 0, 4
I have checked individual files and they all have same number of rows.
Hello, Did you get this problem solved? I also want to merge HTSeq files.
Thanks.
akashagri19, please see my answer (below). If you want, please also provide more information about the problem that you are receiving, and try to include a fully reproducible example (of the error) so that we can better help you.
I used the following code on R
I have my .txt file on the working directory, but I received this error message
Thanks.
Where did you get this code from? Did you test it step by step?