Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tooluniverse-phylogenetics

БесплатноЗапускает вложенные скриптыНе проверен

Phylogenetic analysis — de novo multiple sequence alignment (Clustal Omega/MUSCLE/MAFFT via EBI_msa_align) and neighbour-joining/UPGMA tree building…

mims-harvardот mims-harvard★ 1 813 звёзд на GitHub

Об этом скилле

Phylogenetics and Sequence Analysis

Four traps that produce a confidently wrong number

Each of these was observed producing a wrong answer while the correct guidance was already present further down this file. Check them before you answer.

  1. PhyKIT prints more than one column, and for saturation the two conventions disagree — state which you used. phykit saturation prints saturation <TAB> |saturation-1|. Its own --help is explicit: "The first value is the saturation value and the second column is the absolute value of saturation minus 1." But several published analyses (and some reference answers derived from them) report the second column as "the saturation value". The two always sum to 1.0000, which is the tell that you may be looking at the wrong one — on the fungal scogs set the medians are 0.39 (col 1) and 0.61 (col 2).

    So: follow phykit and use column 1 unless the question or source defines saturation the other way, and say in your answer which column you read. Do not silently pick the one that looks closer to an expected number.

    treeness_over_rcv has no such ambiguity: it gives ratio <TAB> treeness <TAB> RCV and the ratio is first.

  2. "Gap percentage" means the fraction of alignment COLUMNS containing at least one gap, not the fraction of residues that are gaps. On the fungal scogs set the residue definition maxes out at 0.556, so a ">70% gaps" filter selects nothing and the question looks unanswerable; by columns, three orthologs qualify (max 0.783).

  3. treeness_over_rcv and rcv take the UNTRIMMED .faa.mafft, while saturation takes the trimmed .clipkit. RCV measures variability across columns, so trimming changes it: median 0.2683 untrimmed against 0.3050 trimmed, and among >70%-gap genes the maximum is 0.2572 untrimmed against 0.4174 trimmed.

  4. Never loop PhyKIT per file. phykit_batch_analysis is parallel and does ~250 trees in about 35 seconds; a shell loop takes ~9 minutes and runs out of turns mid-way, producing no answer at all. It also selects the right column for every function, which removes trap 1 entirely.

Compute the answer from the data

Do the analysis yourself, from the data files, with the recipe below. Do not take the answer from a notebook that has already been run, a result table (*results*, *phykit*, *saturation*, *treeness*), or the output of a script that ships with the data: those are not inputs to the analysis, and copying their numbers is not doing it.

Alignments and trees that ship with the data are inputs, not answers. When the folder has scogs_fungi.zip / scogs_animals.zip (BUSCO single-copy orthologs, with per-ortholog alignments *.faa.mafft.clipkit and trees *.faa.mafft.clipkit.treefile), run PhyKIT on them yourself (see "BUSCO scogs questions" below) rather than rebuilding them from *.busco.zip, which takes 1–6 hours.


BUSCO scogs questions (multi-species phylogenomics)

data folders with scogs_fungi.zip and/or scogs_animals.zip ship pre-computed per-ortholog alignments (and sometimes trees). The question asks for a metric per group, or a Mann-Whitney U / median / ratio comparison between groups.

PRIMARY SCRIPT — both groups in one pass (use this FIRST)

When the question compares animals vs fungi (Mann-Whitney U, ratio, fold-change, paired difference), the bundled paired-comparison script extracts both zips, computes the metric per ortholog for each group, and emits ALL of: per-group summary, two-tailed Mann-Whitney U + p-value (in both orderings since U is asymmetric), paired-ortholog median diff, paired-ortholog median ratio, group-median ratio, and lowest-non-zero ratios — in one run, no aggregation step needed:

python skills/tooluniverse-phylogenetics/scripts/scogs_paired_compare.py \
    --data-folder "$DATA_PATH" --metric parsimony_informative
# Metrics: parsimony_informative, rcv, gap_percentage (alignment-only,
# Biopython-fast: ~2s for 500 alignments);
# treeness, dvmc, total_tree_length, evolutionary_rate, long_branch_score,
# patristic_distances (tree); treeness_over_rcv, saturation (both).

Output blocks (parse in Python or grep):

# SUMMARY group=animals: n=... mean=... median=... min=... max=... p25=... p75=... lowest_nonzero=... n_nonzero=...
# SUMMARY group=fungi:   n=... mean=... median=... min=... max=... p25=... p75=... lowest_nonzero=... n_nonzero=...
# MWU animals_vs_fungi: U=... p=...
# MWU fungi_vs_animals: U=... p=...        <-- U(a,b) + U(b,a) = n_a*n_b
# PAIRED n_common=N: median_diff(animals-fungi)=...  median_diff(fungi-animals)=...
# PAIRED RATIO median(animals/fungi)=... (n=...)    <-- for each common ortholog: a_val/b_val, then median
# PAIRED RATIO median(fungi/animals)=... (n=...)
# GROUP_MEDIAN_RATIO animals/fungi=...               <-- median(group_a) / median(group_b)
# GROUP_MEDIAN_RATIO fungi/animals=...
# GROUP_MEDIAN_DIFF animals-
Полный SKILL.md на GitHub

Установить tooluniverse-phylogenetics в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.env.templateQUICK_START.mdreferences/parsimony_analysis.mdreferences/sequence_alignment.mdreferences/tree_building.mdreferences/troubleshooting.mdscripts/busco_target_orthologs.pyscripts/format_alignment.pyscripts/phykit_batch.pyscripts/scogs_paired_compare.pyscripts/scogs_phykit_pipeline.pyscripts/tree_statistics.py

FAQ

Что делает скилл tooluniverse-phylogenetics?

Phylogenetic analysis — de novo multiple sequence alignment (Clustal Omega/MUSCLE/MAFFT via EBI_msa_align) and neighbour-joining/UPGMA tree building (EBI_build_phylogenetic_tree) from your own sequences, plus tree analysis, treeness, saturation (PhyKIT), parsimony-informative sites, alignment gap analysis, DVMC, long-branch detection, BUSCO orthologs. Uses PhyKIT, Biopython, DendroPy. Use to align a set of sequences, build a tree from sequences or an alignment, or for phylogenetic tree QC, multi-gene phylogenomics, evolutionary-rate analysis, and comparative-genomics studies.

Как установить скилл tooluniverse-phylogenetics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tooluniverse-phylogenetics запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить tooluniverse-phylogenetics с