技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
sequence-tools【数据与研究】Use gget for remote BLAST/BLAT searches, local MUSCLE/DIAMOND alignment, ELM motif analysis, RCSB PDB retrieval, and the optional AlphaFold prediction workflow.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route when the task is sequence similarity/location, multiple-sequence alignment, protein motif discovery, structure retrieval, or protein structure prediction. The public Python API is gget.<tool>(...); the CLI is gget <tool> .... Start with a literal sequence or a small FASTA path and decide whether the operation is remote or local before running it.
gget.seq to gene-annotation.specialized-workflows; do not use alignment tools as a mutation engine.disease-structure. PDB retrieval and AlphaFold prediction stay here.blast and blat submit data to NCBI and UCSC. Expect network latency, changing databases, rate limits, and empty/no-match results.muscle and diamond are local subprocess workflows. The generated skill does not ship gget's platform binaries; verify executable availability and permissions before a production run.elm is local after a one-time ELM data download, but UniProt fallback and setup use the network. ELM data is licensed for non-commercial use according to the ELM license.| Goal | Tool | Main input | Main output |
|---|---|---|---|
| Remote nucleotide/protein similarity | blast | one sequence or first record of .fa/.txt | DataFrame, JSON records, or saved CSV/JSON |
| Genomic/protein location | blat | one sequence or first record of .fa/.txt | DataFrame, JSON records, or saved CSV/JSON |
| Local MSA | muscle | list of sequences or FASTA/text path | printed Clustal-style view or .afa |
| Local protein/translated search | diamond | query plus required reference | DataFrame, JSON records, or output folder |
| Eukaryotic linear motifs | elm | amino-acid sequence or UniProt accession | ortholog and regex result tables |
| Experimental structure/metadata | pdb | PDB entry ID plus resource | raw PDB/mmCIF text or JSON |
| Predicted protein structure | alphafold | amino-acid sequence(s) or FASTA | PDB and PAE JSON files in a folder |
Detailed signatures, schemas, and CLI mappings are in references/api-reference.md. Recipes are in references/workflows.md. Always consult references/troubleshooting.md when validation or a remote/local dependency fails.
.fa or .txt path is parsed and only its first sequence is submitted. MUSCLE and DIAMOND accept a FASTA path or sequence/list input; AlphaFold accepts a FASTA/text path or sequence/list. Use ordinary FASTA headers beginning with > and put sequence characters on following lines.gget uppercases remote-search sequences. Its default type detection treats a string containing only A, T, G, C, and N as nucleotide; otherwise it may classify valid amino-acid letters as protein. A protein made only of DNA letters is ambiguous: set BLAST program/database or BLAT seqtype explicitly.elm(..., uniprot=True) and pdb.import gget
hits = gget.blast("MKWMFKEDHSLEHRCVESAKIRAKY", database="nr", limit=10)
locations = gget.blat("ATGCTGAATTTATGCTGAATTTATGCTGAATTT", assembly="human")
gget.muscle(["MSSSSWLLLSLVAVTAAQST", "MSSSSWLLLSLVEVTAAQST"], out="aligned.afa")
aln = gget.diamond("MPEPTIDE", reference="reference.fa")
ortho_df, regex_df = gget.elm("LIAQSIGQASFV")
entry = gget.pdb("4ACQ", resource="entry")
Python defaults are generally DataFrames for tabular tools; use json=True where supported. muscle and alphafold return None and communicate through files/stdout. pdb returns text for pdb/mmcif and JSON-like objects for metadata resources. Save behavior is tool-specific; do not assume every save or out argument names the same kind of path.
gget blast "MKWMFKEDHSLEHRCVESAKIRAKY" --database nr --limit 10
gget blat "ATGCTGAATTTATGCTGAATTTATGCTGAATTT" --assembly human
gget muscle sequences.fa --out aligned.afa
gget diamond query.fa -ref reference.fa -o diamond-results
gget setup elm
gget elm LIAQSIGQASFV -o elm-results
gget pdb 4ACQ -r mmcif -o 4ACQ.cif
# Only after installing and checking the optional runtime:
gget alphafold protein.fa -o prediction
On the CLI, tabular commands print CSV by default; --csv selects JSON output where implemented. --quiet suppresses progress. gget diamond uses a positional query followed by required -ref/--reference; keep those positional arguments before the option to avoid argparse consuming a reference-looking sequence as another query.
blastn/blastp/translated mode and a compatible database when auto-detection is not unambiguous. limit controls returned descriptions/hits and expect is the cutoff. NCBI's service rules matter: do not submit more often than once per 10 seconds or poll one RID more often than once per minute; schedule batches of more than 50 searches in the documented off-hours.DNA, protein, translated%20RNA, or translated%20DNA; aliases map human→hg38, mouse→mm39, and zebrafinch→taeGut2. The implementation truncates input over 8,000 characters. An unrecognized assembly can be served as UCSC's default genome, so inspect the returned genome column.super5=True for larger inputs (the docs suggest a few hundred sequences) to reduce time/memory. Set out="...afa" to persist aligned FASTA; with no out, gget creates and removes a temporary alignment after printing a colored view.blastp); translated=True is nucleotide query against amino-acid reference (blastx). The diamond_db and out lifecycle, including a source-level database-path quirk, is documented in the API and troubleshooting references.gget setup elm. It returns (ortholog_df, regex_df): the first contains experimentally validated motif information found through DIAMOND orthologs, and the second contains direct regex matches. expand=True adds validation protein/organism/reference columns to the regex table.pdb first tries legacy downloads and falls back to mmCIF for unavailable large structures. Use resource="mmcif" explicitly when downstream software accepts it; inspect the actual returned text and saved extension.json=True for JSON-compatible records, but remember that tuple-returning ELM has two separate tables.save=True on Python remote tools writes fixed filenames in the current directory, while out on DIAMOND/ELM/AlphaFold is a folder and out on MUSCLE/PDB is normally a file path.None return can mean no match, an upstream error, or an optional runtime branch; read the log and validate inputs before treating it as biological absence.selected_prediction.pdb and predicted_aligned_error.json in out; do not infer biological confidence beyond the supplied pLDDT/PAE values.