parameters: (header)
return_statement: return start, end_list
docstring: Input: a SPAdes FASTG header line
      Output: a tuple of starting segment and a list of ending segments
docstring_summary: Input: a SPAdes FASTG header line
      Output: a tuple of starting segment and a list of ending segments
docstring_tokens: Input : a SPAdes FASTG header line Output : a tuple of starting segment and a list of ending segments
function: def get_links_from_header(header):
      """
      Input: a SPAdes FASTG header line
      Output: a tuple of starting segment and a list of ending segments
      """
      if header[-1] == ';':
          header = header[:-1]
      start = get_signed_number_from_header(header)
      end_list = []
      pieces = header.split(':')
      if len(pieces) > 1:
          ends = pieces[1].split(',')
          for end in ends:
              end_list.append(get_signed_number_from_header(end))
      return start, end_list
function_tokens: def get_links_from_header ( header ) : if header [ - 1 ] == ';' : header = header [ : - 1 ] start = get_signed_number_from_header ( header ) end_list = [ ] pieces = header . split ( ':' ) if len ( pieces ) > 1 : ends = pieces [ 1 ] . split ( ',' ) for end in ends : end_list . append ( get_signed_number_from_header ( end ) ) return start , end_list