Skip to content

Commit

Permalink
yyy
Browse files Browse the repository at this point in the history
  • Loading branch information
stolpeo committed Oct 20, 2023
1 parent 5994b6f commit cc24cb8
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 126 deletions.
20 changes: 10 additions & 10 deletions maintenance/management/commands/generate_result_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,42 +121,42 @@ def handle(self, *args, **options):
# from variants.views import UUIDEncoder
# json.dump(duplicates, f, indent=1, cls=UUIDEncoder)
with open("orphaned_sv_flags.tsv", "w") as f:
f.write("case_uuid\tproject\tcase_name\tregion\tis_missing\tjson\n")
f.write("case_uuid\tproject\tcase_name\tregion\tlost\tjson\n")
for line in tsv_lines["svs"]["flags"]:
f.write(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{is_missing}\t{json}\n".format(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{lost}\t{json}\n".format(
**line
)
)
with open("orphaned_sv_comments.tsv", "w") as f:
f.write("case_uuid\tproject\tcase_name\tregion\tis_missing\tjson\n")
f.write("case_uuid\tproject\tcase_name\tregion\tlost\tjson\n")
for line in tsv_lines["svs"]["comments"]:
f.write(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{is_missing}\t{json}\n".format(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{lost}\t{json}\n".format(
**line
)
)
with open("orphaned_sm_flags.tsv", "w") as f:
f.write("case_uuid\tproject\tcase_name\tregion\tis_missing\tjson\n")
f.write("case_uuid\tproject\tcase_name\tregion\tlost\tjson\n")
for line in tsv_lines["sms"]["flags"]:
f.write(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{is_missing}\t{json}\n".format(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{lost}\t{json}\n".format(
**line
)
)
with open("orphaned_sm_comments.tsv", "w") as f:
f.write("case_uuid\tproject\tcase_name\tregion\tis_missing\tjson\n")
f.write("case_uuid\tproject\tcase_name\tregion\tlost\tjson\n")
for line in tsv_lines["sms"]["comments"]:
f.write(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{is_missing}\t{json}\n".format(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{lost}\t{json}\n".format(
**line
)
)
with open("orphaned_sm_acmg_ratings.tsv", "w") as f:
f.write("case_uuid\tproject\tcase_name\tregion\tis_missing\tjson\n")
f.write("case_uuid\tproject\tcase_name\tregion\tlost\tjson\n")
for line in tsv_lines["sms"]["acmg_ratings"]:
f.write(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{is_missing}\t{json}\n".format(
"{case_uuid}\t{project}\t{case_name}\t{chromosome}:{start}-{end}\t{lost}\t{json}\n".format(
**line
)
)
Expand Down
Loading

0 comments on commit cc24cb8

Please sign in to comment.