You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small refactor of fetch_mlr_lineage_fitness script primarily to break out a `main()` function and to call this function from `if __name__ == '__main__':`
# broken for the all-time builds. It would be possible to swap this to key on
16
17
# clade instead, but I think the greater detail of lineages is better in this case
17
18
18
-
# Set up argument parser
19
-
parser=argparse.ArgumentParser(description="Fetch MLR lineage fitness and match to strain-level metadata")
20
-
parser.add_argument("--metadata", required=True, help="Path to the metadata TSV")
21
-
parser.add_argument("--metadata-id-columns", default=["strain", "name", "Virus name"], nargs="+", help="List of columns to use as identifiers in the metadata file")
22
-
parser.add_argument("--metadata-clade-attribute", default="Nextclade_pango", help="Matched attribute to MLR variants")
23
-
parser.add_argument("--mlr-url", default="https://data.nextstrain.org/files/workflows/forecasts-ncov/gisaid/pango_lineages/global/mlr/latest_results.json", help="URL to fetch the forecasts JSON data.")
24
-
parser.add_argument("--output-node-data", required=True, help="Path to save the output JSON node data.")
parser=argparse.ArgumentParser(description="Fetch MLR lineage fitness and match to strain-level metadata")
39
+
parser.add_argument("--metadata", required=True, help="Path to the metadata TSV")
40
+
parser.add_argument("--metadata-id-columns", default=["strain", "name", "Virus name"], nargs="+", help="List of columns to use as identifiers in the metadata file")
41
+
parser.add_argument("--metadata-clade-attribute", default="Nextclade_pango", help="Matched attribute to MLR variants")
42
+
parser.add_argument("--mlr-url", default="https://data.nextstrain.org/files/workflows/forecasts-ncov/gisaid/pango_lineages/global/mlr/latest_results.json", help="URL to fetch the forecasts JSON data.")
43
+
parser.add_argument("--output-node-data", required=True, help="Path to save the output JSON node data.")
0 commit comments