original_docstring: Constructs a BED record from a line of text. The length of the
          object matches the number of columns in the input line; in the case
          incompatible values, a BEDError exception is raised.
          
docstring: Constructs a BED record from a line of text. The length of the
  object matches the number of columns in the input line; in the case
  incompatible values, a BEDError exception is raised.
docstring_tokens: Constructs a BED record from a line of text . The length of the object matches the number of columns in the input line ; in the case incompatible values a BEDError exception is raised .
code: def parse(cls, line: str, _len: Optional[int] = None) -> "BEDRecord":
          """Constructs a BED record from a line of text. The length of the
          object matches the number of columns in the input line; in the case
          incompatible values, a BEDError exception is raised.
          """
          fields = line.rstrip("\r\n").split("\t")
          length = len(fields)
          if length < 3:
              raise BEDError("invalid BED record; not enough columns")
          elif not fields[0]:
              raise BEDError("contig is blank")
          elif length >= 6 and fields[5] not in "+-":
              raise BEDError("strand must be + or -")
  
          return BEDRecord(
              contig=fields[0],
              start=cls._parse_field(1, int, fields),
              end=cls._parse_field(2, int, fields),
              name=fields[3] if length >= 4 else None,
              score=cls._parse_field(4, int, fields) if length >= 5 else None,
              strand=fields[5] if length >= 6 else None,
          )
code_tokens: def parse ( cls , line : str , _len : Optional [ int ] = None ) -> "BEDRecord" : fields = line . rstrip ( "\r\n" ) . split ( "\t" ) length = len ( fields ) if length < 3 : raise BEDError ( "invalid BED record; not enough columns" ) elif not fields [ 0 ] : raise BEDError ( "contig is blank" ) elif length >= 6 and fields [ 5 ] not in "+-" : raise BEDError ( "strand must be + or -" ) return BEDRecord ( contig = fields [ 0 ] , start = cls . _parse_field ( 1 , int , fields ) , end = cls . _parse_field ( 2 , int , fields ) , name = fields [ 3 ] if length >= 4 else None , score = cls . _parse_field ( 4 , int , fields ) if length >= 5 else None , strand = fields [ 5 ] if length >= 6 else None , )
short_docstring: Constructs a BED record from a line of text.
short_docstring_tokens: Constructs a BED record from a line of text .
comment: """Constructs a BED record from a line of text. The length of the
          object matches the number of columns in the input line; in the case
          incompatible values, a BEDError exception is raised.
          """