The Dataset column to display on the Auspice


@james hi I’ ve got some trouble with my auspice—on my auspice page : I’d want to get more columns in Dataset (As shown in the second picture), how can I do that? Is there a tutorial?

Thanks for advance!

James is probably busy, and I don’t know Auspice well enough, but here is a couple of pointers:

Auspice Server API has endpoint /charon/getAvailable:
https://docs.nextstrain.org/projects/auspice/en/stable/server/overview.html

In Nextstrain.org this endpoint is configured in
nextstrain.org/src/endpoints/charon/setAvailableDatasets.js at 5b6808442908093f58bde9259916616a4abf1062 · nextstrain/nextstrain.org · GitHub

The data in this case comes from

I believe, you need to implement it similarly. However, perhaps mode knowledgeable people can correct me and maybe there’s an easier path.

In general, if you require high degree of customization, looking at nextstrain/nextstrain.org GitHub repo is a good idea.

Hi @Bayley (and thanks @ivan-aksamentov!)

on my auspice page : I’d want to get more columns in Dataset

Are you running Auspice locally? The options in the dropdown should represent the datasets that Auspice is aware of (i.e. within the directory specified via auspice view --datasetDir <dir>). That screenshot is from nextstrain.org, so perhaps you are asking about a nextstrain group or similar?

(Ivan is also 100% correct - the data which populates this dropdown comes from the /charon/getAvailable API request, and this request is handled differently by Auspice running locally vs the way we use it on nextstrain.org. If you have written your own server then you could customise that response accordingly.)

:smiley:thank you advice, @ivan-aksamentov. I’ll have a try.
But now I’m get a new problem: I couldn’t install the the latest nextstrain cli :joy: When I run this command “curl -fsSL --proto ‘=https’ https://nextstrain.org/cli/installer/linux | bash” in terminal, there’s something wrong with connection:“443”.I failed to connect.
Is there some existing installation packages like zip format files?
Thanks for advance!

Thanks for your advice, @james . I am running Auspice locally, and I haven’t written my own server :smiling_face_with_tear: I’ll have a try.
Now I’m get a new problem: I couldn’t install the the latest nextstrain cli after reinstalling the system. I’v been using the older version of nextstrain before.
When I run the command “curl -fsSL --proto ‘=https’ https://nextstrain.org/cli/installer/linux | bash” in terminal in Ubuntu, there’s something wrong with connection:“443”.I failed to connect.
Is there some existing installation packages like zip format files?
Thanks for advance!

Hi @Bayley – I’m not sure about those nextstrain CLI issues but you can just install auspice itself without needing the CLI.

I haven’t written my own server :smiling_face_with_tear: I’ll have a try.

There shouldn’t be any need for this unless your use case is particularly unique, and there aren’t many docs around to help with this if you do decide to go this route.

I am running Auspice locally

Given a folder with auspice dataset JSONs like so:

$ ls datasets
datasets/
├─ A_B.json
├─ A_C.json
├─ X.json

Then running auspice (e.g. auspice view --datasetDir datasets) should create lists of avialable datasets similar to your screenshots which represent the datasets you have. Note that _ characters in the filename are used to split a dataset name into its constituent “parts”.

Thank you for your timely and detailed advice! :grin: I’ll have a try.

Hmm. Sorry you’re running into trouble! I can debug this for you, but I’ll need you to copy and paste (or take a screenshot of) the entire output when running that curl command.

You can also manually download the latest release of Nextstrain CLI for Linux as a .tar.gz archive. See the bottom of that page for the file, e.g. https://github.com/nextstrain/cli/releases/download/7.1.0/nextstrain-cli-7.1.0-standalone-x86_64-unknown-linux-gnu.tar.gz. You can run the nextstrain program directly after extracting the archive, e.g.

mkdir nextstrain-cli
tar xzvf nextstrain-cli-7.1.0-standalone-x86_64-unknown-linux-gnu.tar.gz -C nextstrain-cli
./nextstrain-cli/nextstrain --version

But the installer should work, so I’d be interested in debugging it for you if you’re up for providing more info about the error.

Thanks for your help, @trs . I’v installed Nextstrain CLI successfully :grin:.
1.


2.
2.conda作为runtime成功
3.

I used conda as runtime and it worked successfully and fluently! There are some new functions of nextstrain, I’ll learn more about them on DOS. I’m so greatful to use this platform which figured out some problems with my genomes research.
Thanks for your detailed answers, best regards! :smiling_face_with_three_hearts: :heart:

3 Likes

Thanks for your help,@james. I have changed the auspice’s filenames, and given folder with them, in this way ——>
20230717154444

Then it worked! :smiley:


This method successfully solved my problem (To display some kinds of variants in a page.) :heart: :smile:

1 Like