Documentation
CLI usage, API reference, and a list of feature modules.
CLI usage
module load apptainer-1.3.2
conda activate casapi
python app/extract_features.py FASTA OUTDIR \
--base_dir . \
--threads 8 \
[--max_workers N] \
[--blast_db /opt/psipred/blastdb/uniref50.fasta] \
[--blastdb_dir /home/.../blastdb]
Run python app/extract_features.py --help for the full flag list.
API reference
| Method | Path | Purpose |
|---|---|---|
| POST | /api/extract | Submit FASTA (JSON body) |
| POST | /api/extract/upload | Submit FASTA (multipart upload) |
| GET | /api/status/{job_id} | Poll job status |
| GET | /api/result/{job_id} | Job metadata + download URLs |
| GET | /api/result/{job_id}/download?file=… | Stream a single output file |
| GET | /api/health | Liveness probe |
Feature dimensionality
The combined matrix has shape F × N where N is the number of input sequences and F — the column count — depends only on the modules you select. It does not depend on your sequences, so matrices from different submissions line up column for column.
Composition, pseudo-composition, autocorrelation, CTD, conjoint-triad and profile-summary
descriptors (AAC, DPC, CTDC/T/D, PSSMAAC, PSSMAC, SSEC, TAC, DisorderC, etc.) use each
full sequence. Position-specific encodings (EAAC, EGAAC, Binary, TVD, BLOSUM62,
ZS, PSSM, SSEB, TA, ASA, AAINDEX, DisorderB, Disorder) describe the first L residues
of every sequence, where L is fixed at 50 (the shortest sequence the service accepts)
and emit L × K columns each. A protein's features never depend on the other
proteins in the same submission.
Rough order of magnitude: F ≈ offset + 50 × per_residue_total, i.e. tens
of thousands of columns with all modules.
The API response (/api/result/{id}) returns the exact F as
feature_count; the result page shows it under Features.
Feature modules
See the Feature Modules page for the complete list of all 49 modules with their vector sizes, one-line descriptions, and extraction pathways grouped by category.
PBS submission example
# from login02 (NOT inside the SIF):
qsub -l select=1:ncpus=16:mem=64gb -l walltime=24:00:00 \
-v FASTA=/path/to/in.fa,OUTDIR=/path/to/out \
-- bash -c '
module load apptainer-1.3.2
conda activate casapi
python /path/to/hd_profetch/app/extract_features.py "$FASTA" "$OUTDIR" \
--base_dir /path/to/hd_profetch --threads 16 --max_workers 4
'