[Biopython] Integrating SQL query to biopython

Animesh Agrawal animesh.agrawal at anu.edu.au
Thu May 24 05:58:12 UTC 2012


Hi, 

I am running small SQL queries to select sequences from a local BIOSQL
database. One instance such query is as follows:

 

SELECT  biosequence.*

FROM    biosequence JOIN bioentry USING (bioentry_id)

WHERE   biosequence.seq NOT LIKE "%X%"

AND   biosequence.alphabet = 'protein' 

 

I am wondering, how do I integrate this SQL query with Biopython code to get
the output in form of SeqRecord or Seq objects.

 

Cheers,

Animesh  

 

Animesh Agrawal

PhD Scholar

Computational & Conceptual Biology, JCSMR 

Australian National University 

Canberra, Australia

Tel:    +61 2 6125 8303

Email:  animesh.agrawal at anu.edu.au

 




More information about the Biopython mailing list