pybedtools.bedtool.BedTool.moveto¶
- BedTool.moveto(*args, **kwargs)[source]¶
Move to a new filename (can be much quicker than BedTool.saveas())
Move BED file to new filename,
fn
.Returns a new BedTool for the new file.
Example usage:
>>> # make a copy so we don't mess up the example file >>> a = pybedtools.example_bedtool('a.bed').saveas() >>> a_contents = str(a) >>> b = a.moveto('other.bed') >>> b.fn 'other.bed' >>> b == a_contents True