diff options
Diffstat (limited to 'wqflask/maintenance/get_group_samplelists.py')
-rw-r--r-- | wqflask/maintenance/get_group_samplelists.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/wqflask/maintenance/get_group_samplelists.py b/wqflask/maintenance/get_group_samplelists.py index 04e94886..fb22898a 100644 --- a/wqflask/maintenance/get_group_samplelists.py +++ b/wqflask/maintenance/get_group_samplelists.py @@ -6,16 +6,6 @@ import gzip from base import webqtlConfig -def process_genofiles(geno_dir=webqtlConfig.GENODIR): - print("Yabba") - #sys.exit("Dabba") - os.chdir(geno_dir) - for geno_file in glob.glob("*"): - if geno_file.lower().endswith(('.geno', '.geno.gz')): - #group_name = genofilename.split('.')[0] - sample_list = get_samplelist(geno_file) - - def get_samplelist(file_type, geno_file): if file_type == "geno": return get_samplelist_from_geno(geno_file) @@ -37,7 +27,7 @@ def get_samplelist_from_geno(genofilename): continue break - headers = line.split() + headers = line.split("\t") if headers[3] == "Mb": samplelist = headers[4:] |