Recommended setup:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -e .[dev]If you want a runtime-only install without test dependencies:
pip install .From a repository checkout, you can use:
./rnaconsnake-run --versionIt automatically prefers ./.venv/bin/python when present and otherwise falls back to python3.
Check the standard runtime dependencies:
rnaconsnake-run --check-depsCheck the dependency set including optional R-scape support:
rnaconsnake-run --check-deps --rscapeTo inspect which external tool commands RNAConSnake is configured to use, and where their executables resolve on the current machine:
rnaconsnake-run --show-tool-pathsrnaconsnake-run --input-alignment /path/to/my_alignment.stk --cores allTo write all outputs into a dedicated working directory:
rnaconsnake-run --input-alignment /path/to/my_alignment.stk --output-dir /path/to/run_dir --cores allOverride the default maxbpspan values:
rnaconsnake-run --input-alignment /path/to/my_alignment.stk --maxbpspan 150 --maxbpspan 250 --cores allEnable optional per-hit R-scape analysis:
rnaconsnake-run --input-alignment /path/to/my_alignment.stk --rscape --cores allRNAz defaults to -d -n, which disables alignment shuffling. To explicitly allow shuffling:
rnaconsnake-run --input-alignment /path/to/my_alignment.stk --rnaz-shuffle --cores allIf you want Snakemake to reuse existing outputs more conservatively and avoid reruns caused only by workflow code changes:
rnaconsnake-run --conservative --cores allRNAConSnake can generate a structured export bundle after a successful run:
rnaconsnake-run \
--input-alignment /path/to/my_alignment.stk \
--output-dir /path/to/run_dir \
--export-bundle /path/to/export_bundle \
--cores allYou can also override export metadata, for example:
rnaconsnake-run \
--input-alignment /path/to/my_alignment.stk \
--output-dir /path/to/run_dir \
--export-bundle /path/to/export_bundle \
--export-feature-type other \
--export-feature-label "Example aligned feature" \
--export-dataset-label "Example dataset" \
--cores allThe default workflow configuration lives in ../config.yaml.
Useful preprocessing settings include:
remove_gaponly_gapratio: 0.5
remove_gaponly_max_n: 0
do_rscape: false
rnaz_no_shuffle: trueMeaning:
remove_gaponly_gapratioMaximum allowed gap fraction per sequence in the split Stockholm alignment.remove_gaponly_max_nMaximum allowed count ofNorncharacters per sequence.0means sequences containing anyN/nare removed.rnaz_no_shuffleControls whether RNAz is called with-n. The default istrue, which disables alignment shuffling.
Example:
remove_gaponly_max_n: 2To remove generated workflow outputs from a run directory:
snakemake --cores 1 cleanor:
rm -rf Lalifold generated_files