about summary refs log tree commit diff
path: root/wqflask/base
diff options
context:
space:
mode:
authorZachary Sloan2012-11-27 14:44:14 -0600
committerZachary Sloan2012-11-27 14:44:14 -0600
commit0931212bc692177cfc0ebcf016bc869dd4f88fd8 (patch)
treef238113134c33ab87d9fa7eafa104c8f32981878 /wqflask/base
parent1749c660a7e71f10bbdec04f8bf7bb77df3f3eef (diff)
downloadgenenetwork2-0931212bc692177cfc0ebcf016bc869dd4f88fd8.tar.gz
Renamed webqtlDataSet.py to data_set.py
Renamed the class webqtlDataset to DataSet

Finished cisLRS and transLRS search types in d_search.py

Fixed parent/f1 issue in show_trait.py
Diffstat (limited to 'wqflask/base')
-rwxr-xr-xwqflask/base/data_set.py (renamed from wqflask/base/webqtlDataset.py)23
1 files changed, 14 insertions, 9 deletions
diff --git a/wqflask/base/webqtlDataset.py b/wqflask/base/data_set.py
index 933077fd..992c673e 100755
--- a/wqflask/base/webqtlDataset.py
+++ b/wqflask/base/data_set.py
@@ -30,7 +30,7 @@ import webqtlConfig
 
 
 
-class webqtlDataset:
+class DataSet(object):
     """
     Dataset class defines a dataset in webqtl, can be either Microarray,
     Published phenotype, genotype, or user input dataset(temp)
@@ -55,14 +55,7 @@ class webqtlDataset:
             self.fullname = 'Temporary Storage'
             self.shortname = 'Temp'
         elif dbName.find('Publish') >= 0:
-            self.searchfield = ['name','post_publication_description','abstract','title','authors']
-            self.disfield = ['name','pubmed_id',
-                            'pre_publication_description', 'post_publication_description', 'original_description',
-                            'pre_publication_abbreviation', 'post_publication_abbreviation',
-                            'lab_code', 'submitter', 'owner', 'authorized_users',
-                            'authors','title','abstract', 'journal','volume','pages','month',
-                            'year','sequence', 'units', 'comments']
-            self.type = 'Publish'
+            pass
         elif dbName.find('Geno') >= 0:
             self.searchfield = ['name','chr']
             self.disfield = ['name','chr','mb', 'source2', 'sequence']
@@ -155,3 +148,15 @@ class webqtlDataset:
     def genHTML(self, Class='c0dd'):
         return  HT.Href(text = HT.Span('%s Database' % self.fullname, Class= "fwb " + Class),
                 url= webqtlConfig.INFOPAGEHREF % self.name,target="_blank")
+
+class PhenotypeDataSet(DataSet):
+    
+    def __init__(self):
+        self.searchfield = ['name','post_publication_description','abstract','title','authors']
+        self.disfield = ['name','pubmed_id',
+                            'pre_publication_description', 'post_publication_description', 'original_description',
+                            'pre_publication_abbreviation', 'post_publication_abbreviation',
+                            'lab_code', 'submitter', 'owner', 'authorized_users',
+                            'authors','title','abstract', 'journal','volume','pages','month',
+                            'year','sequence', 'units', 'comments']
+        self.type = 'Publish'
\ No newline at end of file