Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in cursor:(cursor + seq - 1) : result would be too long a vector running plotPeakProf2 #250

Open
johannesnicolaus opened this issue Jan 22, 2025 · 1 comment

Comments

@johannesnicolaus
Copy link

Hello, I got an error trying to run plotPeakProf2 for my data when I specify the upstream and downstream parameters. When it is not specified, it works ok.

The command:

plotPeakProf2(gr2, TxDb = gr1, type = "body", by = "gene", nbin = 50, upstream = 500, downstream = 500)

I'm not sure how it can be replicated, I can send the input files if needed. I tried running this using different GR objects and nothing worked.

The output

#
#.. 'TxDb' is a self-defined 'GRanges' object...
#
>> binning method is used...2025-01-22 11:06:47 AM
>> preparing body regions by name... 2025-01-22 11:06:47 AM
>> preparing tag matrix by binning...  2025-01-22 11:06:47 AM 
>> preparing matrix with flank extension from (gene_SS-500bp)~(gene_TS+500bp)... 2025-01-22 11:06:47 AM
>> 0 peaks(0%), having lengths smaller than 50bp, are filtered... 2025-01-22 11:06:47 AM
Error in cursor:(cursor + seq - 1) : result would be too long a vector
@Serine94209792
Copy link

Serine94209792 commented Jan 25, 2025

same problem, but once you changed it to percentage, it works.

tagMatrix=getTagMatrix(peak0, windows=windows, upstream = rel(0.2), downstream = rel(0.2),nbin = 50) #make actual extension of 36bp

binning method is used...2025-01-25 17:44:48
preparing body regions by H3K4me3... 2025-01-25 17:44:48
preparing tag matrix by binning... 2025-01-25 17:44:48
preparing matrix with extension from (H3K4me3_SS-20%)~(H3K4me3_TS+20%)... 2025-01-25 17:44:48
0 peaks(0%), having lengths smaller than 50bp, are filtered... 2025-01-25 17:44:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants