aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset
diff options
context:
space:
mode:
authorroot2014-02-19 14:01:30 -0600
committerroot2014-02-19 14:01:30 -0600
commitee6ce155a4816bf937e7a4facb622d5f17fd394f (patch)
tree75124175fdf08a5c2bfa6a6dd996f5c26e51782b /wqflask/maintenance/dataset
parentf6d2368d7a89413a8622123e7e43eecc8bef5882 (diff)
downloadgenenetwork2-ee6ce155a4816bf937e7a4facb622d5f17fd394f.tar.gz
Committer: root <root@alexandria.uthsc.edu>
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset')
-rw-r--r--wqflask/maintenance/dataset/load_phenotypes.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/wqflask/maintenance/dataset/load_phenotypes.py b/wqflask/maintenance/dataset/load_phenotypes.py
index 91bc2d15..274b8593 100644
--- a/wqflask/maintenance/dataset/load_phenotypes.py
+++ b/wqflask/maintenance/dataset/load_phenotypes.py
@@ -1,13 +1,26 @@
import sys
+import csv
import utilities
def main(argv):
+ #
config = utilities.get_config(argv[1])
print "config:"
for item in config.items('config'):
print "\t%s" % (str(item))
-
+ #
+ datafile = open(config.get('config', 'datafile'), 'r')
+ phenotypedata = csv.reader(datafile, delimiter='\t', quotechar='"')
+ for row in phenotypedata:
+ #print row
+ pass
+ #
+ metafile = open(config.get('config', 'metafile'), 'r')
+ phenotypemeta = csv.reader(metafile, delimiter='\t', quotechar='"')
+ for row in phenotypemeta:
+ print row[1]
+
if __name__ == "__main__":
print "command line arguments:\n\t%s" % sys.argv
main(sys.argv)