Skip to content

Commit

Permalink
reformatted merge_reports.py with python black
Browse files Browse the repository at this point in the history
  • Loading branch information
tives82 committed Mar 14, 2024
1 parent 2fa0e60 commit a1af0e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/merge_reports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pandas as pd
import sys


def merge_tsvs(files):
# Read the first TSV into a DataFrame
df = pd.read_csv(files[0], sep="\t")
Expand All @@ -15,11 +16,12 @@ def merge_tsvs(files):

return df


def main():
files = sys.argv[1:] # List of TSV file paths from the command line arguments
merged_df = merge_tsvs(files)
merged_df.to_csv("summary_report.tsv", sep="\t", index=False)


if __name__ == "__main__":
main()

0 comments on commit a1af0e9

Please sign in to comment.