pybedtools.bedtool.BedTool.field_count

BedTool.field_count(n=10)[source]

Number of fields in each line of this BedTool (checks n lines)

Return the number of fields in the features this file contains. Checks the first n features.

>>> a = pybedtools.example_bedtool('a.bed')
>>> a.field_count()
6