Skip to content

Commit

Permalink
removed extraneous commented out code from tag by variant classificat…
Browse files Browse the repository at this point in the history
…ion (mpath loading scripts module in nucleovar)
  • Loading branch information
rnaidu committed Sep 25, 2024
1 parent 3cbcc0b commit ab931aa
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions postprocessing_variant_calls/maf/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,43 +769,6 @@ def tag_row(row, canonical):

return maf

# file_names = [
# EXONIC_FILTERED,
# SILENT_FILTERED,
# NONPANEL_EXONIC_FILTERED,
# NONPANEL_SILENT_FILTERED,
# DROPPED
# ]

# Create exonic, silent, and nonpanel files.
# file_paths = [f"{output_dir}/{name}" for name in file_names]

# headers = "\t".join(MAF_TSV_COL_MAP.values()) + "\n"

# with ExitStack() as stack:
# files = [stack.enter_context(open(path, "w")) for path in file_paths]

# for file in files:
# file.write(headers)

# with open(output_dir + "/" + EXONIC_FILTERED, "w") as exonic, open(
# output_dir + "/" + SILENT_FILTERED, "w") as silent, open(
# output_dir + "/" + NONPANEL_EXONIC_FILTERED, "w") as nonpanel_exonic, open(
# output_dir + "/" + NONPANEL_SILENT_FILTERED, "w") as nonpanel_silent, open(
# output_dir + "/" + DROPPED, "w") as dropped:

# headers = "\t".join(MAF_TSV_COL_MAP.values()) + "\n"
# for f in [exonic, silent, nonpanel_exonic, nonpanel_silent, dropped]:
# f.write(headers)

return headers

# typer.secho(
# f"missing columns expected for {tagging} tagging",
# fg=typer.colors.RED,
# )
# raise typer.Abort()

def tag_by_variant_annotations(self, rules_df):
if rules_df is not None:
for index, row in rules_df.iterrows():
Expand Down

0 comments on commit ab931aa

Please sign in to comment.