Skip to content

Commit ab931aa

Browse files
committed
removed extraneous commented out code from tag by variant classification (mpath loading scripts module in nucleovar)
1 parent 3cbcc0b commit ab931aa

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

postprocessing_variant_calls/maf/helper.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -769,43 +769,6 @@ def tag_row(row, canonical):
769769

770770
return maf
771771

772-
# file_names = [
773-
# EXONIC_FILTERED,
774-
# SILENT_FILTERED,
775-
# NONPANEL_EXONIC_FILTERED,
776-
# NONPANEL_SILENT_FILTERED,
777-
# DROPPED
778-
# ]
779-
780-
# Create exonic, silent, and nonpanel files.
781-
# file_paths = [f"{output_dir}/{name}" for name in file_names]
782-
783-
# headers = "\t".join(MAF_TSV_COL_MAP.values()) + "\n"
784-
785-
# with ExitStack() as stack:
786-
# files = [stack.enter_context(open(path, "w")) for path in file_paths]
787-
788-
# for file in files:
789-
# file.write(headers)
790-
791-
# with open(output_dir + "/" + EXONIC_FILTERED, "w") as exonic, open(
792-
# output_dir + "/" + SILENT_FILTERED, "w") as silent, open(
793-
# output_dir + "/" + NONPANEL_EXONIC_FILTERED, "w") as nonpanel_exonic, open(
794-
# output_dir + "/" + NONPANEL_SILENT_FILTERED, "w") as nonpanel_silent, open(
795-
# output_dir + "/" + DROPPED, "w") as dropped:
796-
797-
# headers = "\t".join(MAF_TSV_COL_MAP.values()) + "\n"
798-
# for f in [exonic, silent, nonpanel_exonic, nonpanel_silent, dropped]:
799-
# f.write(headers)
800-
801-
return headers
802-
803-
# typer.secho(
804-
# f"missing columns expected for {tagging} tagging",
805-
# fg=typer.colors.RED,
806-
# )
807-
# raise typer.Abort()
808-
809772
def tag_by_variant_annotations(self, rules_df):
810773
if rules_df is not None:
811774
for index, row in rules_df.iterrows():

0 commit comments

Comments
 (0)