Skip to content

Commit

Permalink
Switch LAPIS for open to v2 by default
Browse files Browse the repository at this point in the history
- also new 'lintype' option in README.md
  • Loading branch information
DrYak committed May 30, 2024
1 parent 04379d0 commit 84cfa22
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ Usage: cojac cooc-curate [OPTIONS] [VOC]...

Options:
-u, --url URL url to use when querying covspectrum (e.g.
https://lapis.cov-spectrum.org/open/v1,
https://lapis.cov-spectrum.org/gisaid/v1, etc.)
https://lapis.cov-spectrum.org/open/v2,
https://lapis.cov-spectrum.org/gisaid/v2, etc.)
--lintype FIELD switch the lineage field queried on covspectrum
(e.g. nextcladePangoLineage: as determined with
nextclade, pangoLineage: as provided by upstream
sequence repository)
-a, --amplicons YAML use the YAML file generated by mutbamscan to
query amplicons instead of mutations
-m, --mutations always do mutations (even if amplicons YAML
Expand Down Expand Up @@ -195,8 +199,12 @@ Usage: cojac sig-generate [OPTIONS]

Options:
-u, --url URL url to use when querying covspectrum (e.g.
https://lapis.cov-spectrum.org/open/v1,
https://lapis.cov-spectrum.org/gisaid/v1, etc.)
https://lapis.cov-spectrum.org/open/v2,
https://lapis.cov-spectrum.org/gisaid/v2, etc.)
--lintype FIELD switch the lineage field queried on covspectrum
(e.g. nextcladePangoLineage: as determined with
nextclade, pangoLineage: as provided by upstream
sequence repository)
--var, --variant PANGO Pangolineage of the root variant to list [required]
--extras LAPIS Additional LAPIS query arguments passed as a YAML
flow, e.g.: '{dateFrom: "2022-02-01", variantQuery:
Expand Down
2 changes: 1 addition & 1 deletion cojac/cooc_curate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#


server = "https://lapis.cov-spectrum.org/open/v1"
server = "https://lapis.cov-spectrum.org/open/v2"
lintype = "nextcladePangoLineage"
debug = False

Expand Down
2 changes: 1 addition & 1 deletion cojac/sig_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
required=False,
default=None,
type=str,
help="url to use when querying covspectrum (e.g. https://lapis.cov-spectrum.org/open/v1, https://lapis.cov-spectrum.org/gisaid/v1, etc.)",
help="url to use when querying covspectrum (e.g. https://lapis.cov-spectrum.org/open/v2, https://lapis.cov-spectrum.org/gisaid/v2, etc.)",
)
@click.option(
"--lintype",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_workflow():
"cojac",
"sig-generate",
"--url",
"https://lapis.cov-spectrum.org/open/v1",
"https://lapis.cov-spectrum.org/open/v2",
"--variant",
"BA.1",
]
Expand Down

0 comments on commit 84cfa22

Please sign in to comment.