-
Notifications
You must be signed in to change notification settings - Fork 4
cdskit localize
cdskit localize predicts protein targeting or localization labels from CDS or
protein FASTA input. It can use a local model file or a published pretrained
model alias.
The pretrained targeting5 model predicts noTP, SP, mTP, cTP, and
lTP. It runs on CPU, but requires the optional ML dependencies (torch and
scikit-learn) at runtime.
cdskit localize \
--seqfile proteins.faa \
--seqtype protein \
--model targeting5 \
--report localize.tsvThe prerelease alias targeting5-perox-deeploc21-et-v1 adds a CPU-runtime
ExtraTrees peroxisome sequence-label head to the targeting5 model. It is
strongest for PTS-like peroxisomal targeting signals and should not yet be
treated as a broad peroxisome-associated localization detector.
cdskit localize \
--seqfile proteins.faa \
--seqtype protein \
--model targeting5-perox-deeploc21-et-v1 \
--organism_group non_plant \
--report localize.tsvCDS input is translated in frame before prediction:
cdskit localize \
--seqfile cds.fasta \
--model targeting5 \
--report localize.tsvcdskit localize \
--seqfile proteins.faa \
--seqtype protein \
--model localize_model.json \
--report localize.tsvExample protein FASTA input:
>seq_sp
MKKLLLLLLLLLLAVAVAASAASA
>seq_mtp
MRRKRRAARAKRRNQAAARRRAA
Example command:
cdskit localize --seqfile proteins.faa --seqtype protein --model targeting5 --report localize.tsvExample TSV output, with probabilities shortened for readability:
seq_id predicted_class p_noTP p_SP p_mTP p_cTP p_lTP p_peroxisome perox_signal_type
seq_sp SP 0.0004 0.9979 0.0009 0.0004 0.0004 0.0 none
seq_mtp mTP 0.0742 0.0099 0.9122 0.0007 0.0029 0.0 none- CDS input is the default.
- CDS sequences must be DNA, in frame, and have no internal stop codons.
- Protein input can be used with
--seqtype protein. - Use
--codontable INTwhen translating CDS with a non-standard genetic code.
-
--seqfile PATH: Input FASTA. Use-for standard input. -
--seqtype dna|protein: Input sequence type. The default isdna. -
--model PATH|ALIAS: Model file path or pretrained alias such astargeting5. -
--report PATH: Output report. Use-for standard output..jsonwrites JSON; other suffixes write TSV. -
--organism_group unknown|plant|non_plant: Optional organism group used to constrain plant-only cTP/lTP predictions. -
--include_features yes|no: Include internal feature values in the output report. -
--no_model_download yes|no: Disable automatic download for pretrained model aliases. -
--threads INT: Number of worker threads.0uses all detected CPUs.
For the pretrained targeting5 model and other single-label targeting-peptide
models, the TSV report includes:
seq_idpredicted_class-
p_noTP,p_SP,p_mTP,p_cTP,p_lTP p_peroxisomeperox_signal_type
Compatible multi-label models instead write predicted_labels and one
probability column per model label.
| Alias | Labels | Notes |
|---|---|---|
targeting5 |
noTP, SP, mTP, cTP, lTP
|
TargetP-compatible pretrained model; downloaded and checksum-verified on first use |
targeting5-perox-deeploc21-et-v1 |
noTP, SP, mTP, cTP, lTP, p_peroxisome
|
Experimental prerelease with a DeepLoc21-trained ExtraTrees peroxisome sequence-label head; downloaded and checksum-verified on first use |
cdskit localize-learn can train lightweight custom models from a TSV table or
from UniProt entries downloaded by query.
cdskit localize-learn \
--training_tsv train.tsv \
--seq_col sequence \
--label_mode explicit \
--localization_col localization \
--perox_col peroxisome \
--model_out localize_model.json