aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/get_group_samplelists.py
diff options
context:
space:
mode:
authorzsloan2016-06-20 11:03:20 -0500
committerGitHub2016-06-20 11:03:20 -0500
commit8222ef16d443dc41db9d7e09b1af400d8d866854 (patch)
treee4f5b49aa21c32aa2b770b1a65c8fef7782b625f /wqflask/maintenance/get_group_samplelists.py
parentd90dc3748557d1d6fbaa59f71fe676b8a7c393ca (diff)
parent10df36b60273d81678f6630c07a2d8e5a6409282 (diff)
downloadgenenetwork2-8222ef16d443dc41db9d7e09b1af400d8d866854.tar.gz
Merge pull request #168 from genenetwork/staging
Staging
Diffstat (limited to 'wqflask/maintenance/get_group_samplelists.py')
-rwxr-xr-xwqflask/maintenance/get_group_samplelists.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/maintenance/get_group_samplelists.py b/wqflask/maintenance/get_group_samplelists.py
index a9059fad..2d48ce78 100755
--- a/wqflask/maintenance/get_group_samplelists.py
+++ b/wqflask/maintenance/get_group_samplelists.py
@@ -28,7 +28,7 @@ def get_samplelist_from_geno(genofilename):
genofile = gzip.open(genofilename)
else:
genofile = open(genofilename)
-
+
for line in genofile:
line = line.strip()
if not line:
@@ -36,9 +36,9 @@ def get_samplelist_from_geno(genofilename):
if line.startswith(("#", "@")):
continue
break
-
+
headers = line.split()
-
+
if headers[3] == "Mb":
samplelist = headers[4:]
else:
@@ -47,7 +47,7 @@ def get_samplelist_from_geno(genofilename):
def get_samplelist_from_plink(genofilename):
genofile = open(genofilename)
-
+
samplelist = []
for line in genofile:
line = line.split(" ")