Commit 8e68c018 authored by Schoorlemmer, Joran's avatar Schoorlemmer, Joran
Browse files


parent efef5d64
......@@ -50,7 +50,9 @@ def group_replicates(sample_names):
with open(sample_names) as f_names:
for f in f_names:
f = f.strip("\n")
rep_dict_key = f[:-5]
# strip redundant info out of string
fn = f[:-4].split('-')
rep_dict_key = fn[0] + fn[1][0:3]+ fn[1][4:]
if not rep_dict_key in rep_dict:
rep_dict[rep_dict_key] = {}
rep_dict[rep_dict_key][f] = parse_gtf('samples/'+ str(f))
......@@ -107,4 +109,5 @@ def main(ref_name, sample_names):
# Run script
if __name__ == "__main__":
main(argv[1], argv[2])
\ No newline at end of file
#main(argv[1], argv[2])
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment