The jcvi.apps.base OptionParser set_beds is a method that allows specifying one or more BED files for parsing and processing by the JCVI genome analysis toolkit.
Example:
``` python
from jcvi.apps.base import OptionParser
parser = OptionParser()
parser.set_beds(help="one or more BED file(s) to process")
args = parser.parse_args()
bed_files = args.beds
```
This code snippet sets up an OptionParser instance and defines an option for specifying BED files. The `set_beds` method is used for this purpose, with the `help` argument providing a description of the option. The `parse_args` method is then called, which returns an object containing the specified parameters as attributes. The `bed_files` variable can be accessed to access the list of BED files that were specified.
The jcvi.apps.base module belongs to the JCVI genome analysis toolkit, a collection of Python tools and libraries for genome analysis and sequencing.
Python OptionParser.set_beds - 37 examples found. These are the top rated real world Python examples of jcvi.apps.base.OptionParser.set_beds extracted from open source projects. You can rate examples to help us improve the quality of examples.