Wie kann man ein Rost -Git -Repo als Abhängigkeit für eine Snakemake -Regel einbeziehen?
Posted: 11 Feb 2025, 14:13
Sagen wir einfach das Snakemake-Projekt sehen jetzt so aus: < /li>
< /ol> ist der Befehl zur Installation von Tool_foo. Ich habe die Snakemake -Dokumentation gelesen und es gibt keine Option, um eine Fracht -Toml -Datei aufzunehmen. Ist das Berühren einer Dockerfile in Ressourcen/Tool_foo der einzige Weg?
< /ol>
Code: Select all
smk_project
├── config
├── Snakefile
├── input
├── resources
│ └── tool_foo
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── scripts
│ └── src
├── result
├── rules
│ └── rules_a_set.smk
└── utils
< /code>
Die Rules_a_set.smk: < /li>
< /ol>
rule a:
input:
a.txt
output:
b.txt
something_I_need_help_here:
?
threads: 4
shell:
"tool_foo {input} {output}"
< /code>
cargo install --git resources/tool_foo