You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run peakHeatmap, I am getting the following error:
peakHeatmap(MYB3sortGR, TxDb = txdb, upstream = 500, downstream = 500, ignore_strand = TRUE)
preparing promoter regions... 2024-01-13 02:13:09 AM
preparing tag matrix... 2024-01-13 02:13:09 AM
preparing start_site regions by gene... 2024-01-13 02:13:09 AM
preparing tag matrix... 2024-01-13 02:13:09 AM Error in split.default(1:length(windows), as.factor(seqnames(windows))) :
group length is 0 but data length > 0
In addition: Warning message:
In .merge_two_Seqinfo_objects(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
MYB3sortGR does not have the leftmost column numbers in brackets, so I though maybe there is something wrong with
the GRanges object, so I then added column names to my .bed file. The first few lines of the .bed file would now look like this:
Now, the leftmost column numbers are in brackets as is for the promoters GR object.
However, when I run peakHeatmap using this new MYB3sortCN GRanges object, I still get an error, albeit I different error.
When I run peakHeatmap, I am getting the following error:
peakHeatmap(MYB3sortGR, TxDb = txdb, upstream = 500, downstream = 500, ignore_strand = TRUE)
preparing promoter regions... 2024-01-13 02:13:09 AM
preparing tag matrix... 2024-01-13 02:13:09 AM
preparing start_site regions by gene... 2024-01-13 02:13:09 AM
preparing tag matrix... 2024-01-13 02:13:09 AM
Error in split.default(1:length(windows), as.factor(seqnames(windows))) :
group length is 0 but data length > 0
In addition: Warning message:
In .merge_two_Seqinfo_objects(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
The GRanges object, MYB3sortGR, looks like this:
object with 6213 ranges and 2 metadata columns:
txdb looks like this:
The code works fine when I use tagMatrix. I get a heatmap.
The promoter GRanges object looks like this:
My MYB3sortGR was made from a bed file downloaded from GEO. It was created by:
MYB3sort <- read.delim(file = "GSE80564_AT1G22640_MYB3_ABA_optimal_narrowPeak_p16_ChipSeek_sort.bed", sep = "\t", header = FALSE)
MYB3sortGR <- toGRanges(MYB3sort)
The top of the bed file looks like this:
chr5 7014051 7015074 RepAll_peak_27510 883
chr5 19837638 19838886 RepAll_peak_30304 862
chr2 7258604 7262109 RepAll_peak_9773 854
chr1 5590500 5591353 RepAll_peak_1885 836
MYB3sortGR does not have the leftmost column numbers in brackets, so I though maybe there is something wrong with
the GRanges object, so I then added column names to my .bed file. The first few lines of the .bed file would now look like this:
chr | start | end | peak | score |
chr1 | 20174 | 21639 | RepAll_peak_7 | 292 |
chr1 | 37751 | 38229 | RepAll_peak_10 | 294 |
and imported the bed file into R using read.delim() and header = TRUE, to make the dataframe, MYB3sortCN.
From the dataframe, I made a GRanges object:
makeGRangesFromDataFrame(MYB3sortCN)
Now, the leftmost column numbers are in brackets as is for the promoters GR object.
However, when I run peakHeatmap using this new MYB3sortCN GRanges object, I still get an error, albeit I different error.
peakHeatmap(MYB3sortCN, TxDb = txdb, upstream = 1000, downstream = 1000 )
My sessioninfo:
Any idea of what my problem is ?
The text was updated successfully, but these errors were encountered: