def split_jaspar_id(id):
 id_split = id.split('.')
 base_id = None
 version = None
 if (len(id_split) == 2):
  base_id = id_split[0]
  version = id_split[1]
 else:
  base_id = id
 return (base_id, version)

def split_jaspar_id ( id ) : id_split = id . split ( '.' ) base_id = None version = None if ( len ( id_split ) == 2 ) : base_id = id_split [ 0 ] version = id_split [ 1 ] else : base_id = id return ( base_id , version )
utility function to split a jaspar matrix id into its component .