Comments (7)
@ArtPoon It's not a compilation error, but a runtime error from Nextclade.
The comment in the guide suggests to retrieve a dataset first:
nextclade/docs/dev/developer-guide.md
Lines 33 to 36 in c0807f5
This is what Nextclade software requires as inputs and cargo run
just compiles and then runs Nextclade with the specified flags.
It is mentioned only briefly in dev docs, because when I wrote it, I assumed Nextclade devs are already familiar with Nextclade from user's standpoint. But we've actually already had a similar situation where this assumption turned out to be incorrect. So perhaps we need to add a command for downloading a dataset to the dev docs. But it's a nuanced topic and as a dev you probably want to have multiple datasets. or even all of them from https://github.com/nextstrain/nextclade_data, perhaps some tweaked/custom datasets etc. We need to decide what is most appropriate for the dev guide.
from nextclade.
Ok find
command located binary in target/release
. Just did a brute force copy of binary to /usr/local/bin
.
from nextclade.
Adding a nextclade dataset command before the run step to the dev docs should fix this issue in the future. See #1145
@ArtPoon I think this is the step that errored, right?
cargo run --bin=nextclade -- run \
data_dev/sequences.fasta \
--input-dataset=data_dev/ \
--output-fasta='out/nextclade.aligned.fasta' \
--output-tsv='out/nextclade.tsv' \
--output-tree='out/nextclade.tree.json' \
--in-order \
--include-reference
Finished dev [unoptimized + debuginfo] target(s) in 0.25s
Running `target/debug/nextclade run data_dev/sequences.fasta --input-dataset=data_dev/ --output-fasta=out/nextclade.aligned.fasta --output-tsv=out/nextclade.tsv --output-tree=out/nextclade.tree.json --in-order --include-reference`
from nextclade.
Yes that did the trick. Sorry for my noob question!
(venv) art@Kestrel:~/git/nextclade$ cargo run --bin=nextclade -- dataset get --name=sars-cov-2 --output-dir=data_dev
Finished dev [unoptimized + debuginfo] target(s) in 0.41s
Running `target/debug/nextclade dataset get --name=sars-cov-2 --output-dir=data_dev`
(venv) art@Kestrel:~/git/nextclade$ cargo run --bin=nextclade -- run data_dev/sequences.fasta --input-dataset=data_dev/ --output-fasta='out/nextclade.aligned.fasta' --output-tsv='out/nextclade.tsv' --output-tree='out/nextclade.tree.json' --in-order --include-reference
Finished dev [unoptimized + debuginfo] target(s) in 0.21s
Running `target/debug/nextclade run data_dev/sequences.fasta --input-dataset=data_dev/ --output-fasta=out/nextclade.aligned.fasta --output-tsv=out/nextclade.tsv --output-tree=out/nextclade.tree.json --in-order --include-reference`
(venv) art@Kestrel:~/git/nextclade$ cargo build --release --bin=nextclade
Compiling libc v0.2.126
...
Compiling nextclade v2.13.1 (/home/art/git/nextclade/packages_rs/nextclade)
Compiling nextclade-cli v2.13.1 (/home/art/git/nextclade/packages_rs/nextclade-cli)
Finished release [optimized] target(s) in 3m 47s
(venv) art@Kestrel:~/git/nextclade$ ./target/release/nextclade run \
> data_dev/sequences.fasta \
> --input-dataset=data_dev/ \
> --output-fasta='out/nextclade.aligned.fasta' \
> --output-tsv='out/nextclade.tsv' \
> --output-tree='out/nextclade.tree.json' \
> --in-order \
> --include-reference
However there is no nextclade
binary.
from nextclade.
Sorry, this is of course not obvious to non-rustaceans! :)
from nextclade.
We should probably link to the Rust Book and Cargo Book in the docs.
https://doc.rust-lang.org/book/
https://doc.rust-lang.org/cargo/
And perhaps also docs for other important tech stack components: Typescript, Node.js, yarn, React, Recoil and Next.js
There's a lot of things to know before a complex app like this can be understood.
from nextclade.
Certainly linking this particular page would be helpful:
https://doc.rust-lang.org/book/ch01-03-hello-cargo.html
from nextclade.
Related Issues (20)
- PCR primer mutation functionality[v3] HOT 13
- 3.0.0 version not retrieving RSV datasets HOT 1
- Can support be extended for SC2 Datasets V2 for another month? HOT 4
- Feature Request: Dataset download all datasets within specified path HOT 4
- Beginners Help with Nextclade CLI HOT 6
- Empty input file causes uncaught error in v3 (it didn't in v2)
- Erroneous Clade Assignment or More Refined Tool? HOT 4
- Add a BA.1 reference for the web nextclade version HOT 4
- error when using `nextclade dataset get --verbosity` flag HOT 3
- 21L Tree Updates? HOT 2
- `--input-pcr-primers` listed in CLI help options despite being removed in v3 HOT 2
- When using `?input-fasta=` url query param without specifying dataset, web auto-starts analysis (prematurely) HOT 5
- Scrollbar shown for dataset names in dataset picker HOT 9
- how to generate the result table by the cli version auspice HOT 4
- output TSV column(s) for missing bases at beginning and end of sequence? HOT 1
- --input-dataset parameter HOT 5
- Update Fred Hutch logo
- How to get the latest Lineage- with CLI HOT 4
- Community build cache validity bug HOT 2
- Developer guide uses deprecated CLI option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextclade.