aboutsummaryrefslogtreecommitdiff
path: root/web/webqtl/search/pubmedsearch.py
diff options
context:
space:
mode:
authorroot2012-05-08 18:39:56 -0500
committerroot2012-05-08 18:39:56 -0500
commitea46f42ee640928b92947bfb204c41a482d80937 (patch)
tree9b27a4eb852d12539b543c3efee9d2a47ef470f3 /web/webqtl/search/pubmedsearch.py
parent056b5253fc3857b0444382aa39944f6344dc1ceb (diff)
downloadgenenetwork2-ea46f42ee640928b92947bfb204c41a482d80937.tar.gz
Add all the source codes into the github.
Diffstat (limited to 'web/webqtl/search/pubmedsearch.py')
-rwxr-xr-xweb/webqtl/search/pubmedsearch.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/webqtl/search/pubmedsearch.py b/web/webqtl/search/pubmedsearch.py
new file mode 100755
index 00000000..d0d18ff5
--- /dev/null
+++ b/web/webqtl/search/pubmedsearch.py
@@ -0,0 +1,12 @@
+import sys
+import os
+import MySQLdb
+import time
+
+db='db_webqtl_leiyan'
+author="megan memphis"
+
+con = MySQLdb.Connect(db=db,user='webqtlupd',passwd='webqtl', host="localhost")
+cursor = con.cursor()
+cursor.execute('select PhenotypeId, Locus, DataId, Phenotype.Post_publication_description from PublishXRef, Phenotype where PublishXRef.PhenotypeId = Phenotype.Id and InbredSetId=%s'%InbredSetId)
+PublishXRefInfos = cursor.fetchall()