Entering edit mode
8.6 years ago
Kevin_Smith
▴
10
How can I do this with peaks in a bed file and genes in a txt file ? Also I will like to see the nearest gene to each peak.
Thank you very much
I'm using pybedtools, do you know how I can use your code with this module?
Thanks!
To use with Python, call with subprocess or similar library.
I'm new with python , I'm using pybedtool. I don't know how to do it. Do you can give me more specific instructions?
For example:
More details are available via the documentation. Search engines will also point you to a good review of the
subprocess
library, among others.Using pybedtools you can do something like the following (I simply adapted the code found in pybedtools documentation):