Commit 57780ce8 by Vinh-Son PHO

More parameters in PLMV_run.sh

parent 5b03b859
......@@ -33,7 +33,7 @@ Feel free to change the different constants in those scripts.
Build functional tree from `input_fasta`, result tree is stored in `working_dir/out/out_tree_<base_name>`:
```console
PLMV_run.sh <input_fasta> <working_dir> [min_seq_id=0.6] [coverage=0.5]
PLMV_run.sh <input_fasta> <working_dir> [min_seq_id=0.6] [coverage=0.5] [preload-device=cpu] [dtype=fp32]
```
Given `<basename>` explain splits at `[nodes]`. `<seq-of-interest>`, are used explecitly used for explanation:
......
......@@ -7,12 +7,14 @@ set -euo pipefail
FASTA_FILE="${1:-}"
WORKDIR="${2:-}"
# Optional args (3rd and 4th positional)
# Optional args (3rd, 4th and 5th positional)
MIN_SEQ_ID="${3:-0.6}"
COVERAGE="${4:-0.8}"
COMPAREPRELOAD="${5:-cpu}"
EMB_PREC="${6:-fp32}"
if [[ -z "$FASTA_FILE" || -z "$WORKDIR" ]]; then
echo "Usage: $0 <input_fasta> <working_dir> [min_seq_id=0.6] [coverage=0.8]"
echo "Usage: $0 <input_fasta> <working_dir> [min_seq_id=0.6] [coverage=0.8] [preload-device=cpu] [dtype=fp32]"
exit 1
fi
......@@ -89,7 +91,7 @@ echo "Logging to: $logfile"
--anchors-dir "$ANCHORS_DIR/anchors_${base}" \
--sequences-dir "$SEQUENCES_DIR/sequences_${base}" \
--vram-threshold 0.8 \
--dtype fp32 \
--dtype "$EMB_PREC" \
--log "$LOG_DIR"
echo -e "===== Compare\t$base: $(date) ====="
......@@ -102,7 +104,7 @@ echo "Logging to: $logfile"
--use-cuda True \
--dtype fp16 \
--batch-size 32 \
--preload-device cpu
--preload-device "$COMPAREPRELOAD"
echo -e "===== SCUT\t\t$base: $(date) ====="
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment