parameters: (self, seq, len_seq)
return_statement: return query_num
docstring: Cast a python DNA string into a Ctype int8 matrix
docstring_summary: Cast a python DNA string into a Ctype int8 matrix
docstring_tokens: Cast a python DNA string into a Ctype int8 matrix
function: def _DNA_to_int_mat (self, seq, len_seq):
          """
          Cast a python DNA string into a Ctype int8 matrix
          """
          # Declare the matrix
          query_num_decl = c_int8 * len_seq
          query_num = query_num_decl()
  
          # for each letters in ATCGN transform in integers thanks to self.base_to_int
          for i in range(len_seq):
              try:
                  value = self.base_to_int[seq[i]]
              # if the base is not in the canonic DNA bases assign 4 as for N
              except KeyError:
                  value = 4
              finally:
                  query_num[i] = value
  
          return query_num
function_tokens: def _DNA_to_int_mat ( self , seq , len_seq ) : # Declare the matrix query_num_decl = c_int8 * len_seq query_num = query_num_decl ( ) # for each letters in ATCGN transform in integers thanks to self.base_to_int for i in range ( len_seq ) : try : value = self . base_to_int [ seq [ i ] ] # if the base is not in the canonic DNA bases assign 4 as for N except KeyError : value = 4 finally : query_num [ i ] = value return query_num