Search
Question: problem with the dba() function in DiffBind
0
3.1 years ago by
mm24890
United States
mm24890 wrote:

I'm trying to use DiffBind for re-analyses of some data. The only files that are changed from my previous run of DiffBind are the peak files from MACS2. They are still in the same format as before. Previously I was able to run Diffbind and analyse this same dataset without errors. However, now when I try the very first step of DiffBind (ta <- dba(sampleSheet="

0-2k4   pMet  1 macs
Error in [.data.frame(peaks, , 2) : undefined columns selected
1: In read.table(samplesheet, sep = ",", stringsAsFactors = F, header = T) :
line 1 appears to contain embedded nulls
line 2 appears to contain embedded nulls
line 3 appears to contain embedded nulls
line 4 appears to contain embedded nulls
line 5 appears to contain embedded nulls
7: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
embedded nul(s) found in input

I can't figure out what the problem is.
Any help would be greatly appreciated.

modified 3.0 years ago by Rory Stark2.5k • written 3.1 years ago by mm24890
0
3.1 years ago by
Rory Stark2.5k
CRUK, Cambridge, UK
Rory Stark2.5k wrote:

Hi Mahya-

If you could send me your samplesheet (metadataBROAD.csv) and at least the first MACS2 peak file (0-2k4), I can troubleshoot this.

Also, what version of DiffBind are you using?

Cheers-

Rory

Thanks Rory

I emailed the files to you.

0
3.0 years ago by
Rory Stark2.5k
CRUK, Cambridge, UK
Rory Stark2.5k wrote:

Hi Mahya-

I've had a look and see the issue but I'm not sure exactly how the MACS2 peak files were generated.

The problem is that, while MACS2 uses the .xls extensions for the peak files, they are actually tab-delimited ASCII files. The peak file you sent me is a binary Excel file. The sample sheet actually refers to as an .xlslx file (which is not supported), although the file you sent is .xls.

Did the peak file you sent come directly from MACS2, or was it re-saved as an Excel .xls file separately?

-Rory

Thanks Rory

The peak files were re-saved as .xls separately. How can I fix this issue?

Hi,

It should be sufficient if you open them in Excel, then save them as "tab-delimited text".  Or try to get the original files, if they are hidden away somewhere.

Cheers,

- Gord