Entering edit mode
6.1 years ago
samuel
▴
260
Hi, I'm trying to learn pybedtools using the intersect and am very new to it.
I want to use the -wb option but can't quite work out how to do this with pybedtools.
At the moment I have:
import pybedtools
a = pybedtools.BedTool(en.bed)
b = pybedtools.BedTool('annot.bed')
a.intersect(b)
If I do:
a.intersect(b, -wb )
I get the error
'NameError: name 'wb' is not defined'
I guess it must be :
Take care of the quotation marks, otherwise python interpret
wb
as a variable.fin swimmer