Guest User

Untitled

a guest
May 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. list_of_genes = ["IFNL", "TMPT", "G6PD", "UGT1A1", ...]
  2. for gene in list_of_genes:
  3. sql.execute('''SELECT DISTINCT gene_symbol, haplo_function FROM Haplotypes
  4. WHERE gene_symbol LIKE "%" + ? + "%"
  5. ''', (gene,))
  6.  
  7. for gene in list_of_genes:
  8. sql.execute('''SELECT DISTINCT gene_symbol, haplo_function FROM Haplotypes
  9. WHERE gene_symbol LIKE ?
  10. ''', (gene,))
  11.  
  12. cur.execute('SELECT * FROM t WHERE t.param LIKE ?', ("%" + val + "?",))
Add Comment
Please, Sign In to add comment