(refers to pybedtools.BedTool.sequence, but the error message is similar)
Hi Aaron,
sorry to ressuscitate this topic, but I am having a similar problem, that is, my script is breaking with the message:
Error message was:
c(16596 bp). Skipping.
Feature (chrM:16589-16599) beyond the length of chrM size (16596 bp). Skipping.
The difference to the OP, is that I am not using slop, but rather I am extracting 5' and 3' location using the (quite useful) helper functions pybedtools.featurefuncs.five_prime and three_prime. I looked in manual, and also directly in the code, but could not find an option similar to 'chromsizes', as in:
c = a.slop(g=pybedtools.chromsizes('hg19'), b=100)
for the functions five_prime/three_prime. Was this by design? Or am I missing something? Of course I could try and recreate those function with some sort of 'slop', but maybe there is a better solution.
Cheers,
António