biogeobears
Set up and execute phylogenetic biogeographic analyses using BioGeoBEARS in R. Use when users request biogeographic reconstruction, ancestral range estimation, or want to analyze species distributions on phylogenies. Handles input file validation, data reformatting, RMarkdown workflow generation, and result visualization.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o biogeobears.zip https://jpskill.com/download/17648.zip && unzip -o biogeobears.zip && rm biogeobears.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17648.zip -OutFile "$d\biogeobears.zip"; Expand-Archive "$d\biogeobears.zip" -DestinationPath $d -Force; ri "$d\biogeobears.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
biogeobears.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
biogeobearsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
BioGeoBEARS 生物地理分析
概要
BioGeoBEARS (Rスクリプトにおけるベイズおよび尤度進化分析による生物地理学) は、系統樹上の祖先地理的範囲の確率的推論を実行します。このスキルは、以下のことによって、完全な生物地理分析のセットアップを支援します。
- 入力ファイル (系統樹と地理的分布データ) の検証と再フォーマット
- 整理された分析フォルダ構造の生成
- カスタマイズされた RMarkdown 分析スクリプトの作成
- パラメータ選択とモデル選択におけるユーザーへのガイダンス
- 出版準備が整った可視化の生成
このスキルを使用するタイミング
ユーザーが以下を要求する場合に、このスキルを使用してください。
- 「私の系統樹で生物地理学を分析してほしい」
- 「私の種の祖先範囲を再構築してほしい」
- 「BioGeoBEARS 分析を実行してほしい」
- 「私の祖先はどの地域に生息していたのか?」
- 「生物地理学的モデル (DEC, DIVALIKE, BAYAREALIKE) をテストしてほしい」
このスキルは、ユーザーが系統地理生物学、祖先領域再構築について言及した場合、または樹木 + 分布データを提供した場合にトリガーされます。
必要な入力
ユーザーは以下を提供する必要があります。
-
系統樹 (Newick 形式、.nwk、.tre、または .tree ファイル)
- 根付きである必要があります
- ターミナルノードのラベルは地理ファイルと一致します
- 枝の長さが必要です
-
地理的分布データ (任意の表形式)
- 種名 (樹木のターミナルノードと一致)
- さまざまな地理的領域における存在/不在データ
- CSV、TSV、Excel、またはすでに PHYLIP 形式で記述できます
ワークフロー
ステップ 1: 情報収集
ユーザーが BioGeoBEARS 分析を要求した場合、以下を尋ねてください。
-
入力ファイルのパス:
- 「系統樹ファイルのパスは何ですか?」
- 「地理的分布ファイルのパスは何ですか?」
-
分析パラメータ (指定されていない場合):
- 最大範囲サイズ (種が同時に占有できる領域の数)
- 比較するモデル (デフォルト: すべての 6 つ - DEC, DEC+J, DIVALIKE, DIVALIKE+J, BAYAREALIKE, BAYAREALIKE+J)
- 出力ディレクトリ名 (デフォルト: "biogeobears_analysis")
AskUserQuestion ツールを使用して、この情報を効率的に収集します。
質問例:
- "最大範囲サイズ" - 領域の数に基づいたオプション (例: 4 つの領域の場合: "4 つすべての領域", "3 つの領域", "2 つの領域")
- "比較するモデル" - オプション: "6 つすべてのモデル (推奨)", "基本モデルのみ (DEC, DIVALIKE, BAYAREALIKE)", "+J モデルのみ", "カスタム選択"
- "可視化タイプ" - オプション: "円グラフ (確率を表示)", "テキストラベル (最も可能性の高い状態を表示)", "両方"
ステップ 2: 入力ファイルの検証と準備
樹木ファイルの検証
Read ツールを使用して、樹木ファイルを確認します。
# R での基本的な検証:
library(ape)
tr <- read.tree("path/to/tree.nwk")
print(paste("Tips:", length(tr$tip.label)))
print(paste("Rooted:", is.rooted(tr)))
print(tr$tip.label) # 種名を確認
以下を確認します。
- ファイルを Newick として解析できること
- 樹木が根付きであること (そうでない場合は、使用する外群をユーザーに尋ねます)
- 地理ファイルの検証のためにターミナルノードのラベルをメモします
地理ファイルの検証と再フォーマット
scripts/validate_geography_file.py を使用して、地理ファイルを検証または再フォーマットします。
ファイルがすでに PHYLIP 形式の場合 (数字で始まる):
python scripts/validate_geography_file.py path/to/geography.txt --validate --tree path/to/tree.nwk
これは以下をチェックします。
- 正しいタブ区切り文字
- 種名が樹木のターミナルノードと一致する
- バイナリコードが正しい長さである
- 種名またはバイナリコードにスペースがない
ファイルが CSV/TSV 形式の場合 (再フォーマットが必要):
python scripts/validate_geography_file.py path/to/distribution.csv --reformat -o geography.data --delimiter ","
または、タブ区切りの場合:
python scripts/validate_geography_file.py path/to/distribution.txt --reformat -o geography.data --delimiter tab
スクリプトは以下を行います。
- ヘッダー行から領域名を検出
- 存在/不在データをバイナリに変換 ("1"、"present"、"TRUE" などを処理)
- 種名からスペースを削除 (アンダースコアに置き換える)
- 適切にフォーマットされた PHYLIP ファイルを作成
続行する前に、常に再フォーマットされたファイルを検証してください:
python scripts/validate_geography_file.py geography.data --validate --tree path/to/tree.nwk
ステップ 3: 分析フォルダ構造のセットアップ
分析用に整理されたディレクトリを作成します。
biogeobears_analysis/
├── input/
│ ├── tree.nwk # 元のまたはコピーされた樹木
│ ├── geography.data # 検証/再フォーマットされた地理ファイル
│ └── original_data/ # 元の入力ファイル
│ ├── original_tree.nwk
│ └── original_distribution.csv
├── scripts/
│ └── run_biogeobears.Rmd # 生成された RMarkdown スクリプト
├── results/ # 分析によって作成 (出力ディレクトリ)
│ ├── [MODEL]_result.Rdata # 保存されたモデル結果
│ └── plots/ # 可視化出力
│ ├── [MODEL]_pie.pdf
│ └── [MODEL]_text.pdf
└── README.md # 分析ドキュメント
この構造をプログラムで作成します。
mkdir -p biogeobears_analysis/input/original_data
mkdir -p biogeobears_analysis/scripts
mkdir -p biogeobears_analysis/results/plots
# ファイルをコピー
cp path/to/tree.nwk biogeobears_analysis/input/
cp geography.data biogeobears_analysis/input/
cp original_files biogeobears_analysis/input/original_data/
ステップ 4: RMarkdown 分析スクリプトの生成
scripts/biogeobears_analysis_template.Rmd のテンプレートを使用し、ユーザーパラメータでカスタマイズします。
テンプレートをコピーしてカスタマイズします:
cp scripts/biogeobears_analysis_template.Rmd biogeobears_analysis/scripts/run_biogeobears.Rmd
パラメータファイルを作成するか、Rmd の YAML ヘッダーを修正して、ユーザー固有の設定を使用します。
R コードによるカスタマイズの例:
# YAML パラメータをプログラムで編集するか、レンダリング時に params として提供します
rmarkdown::render(
"biogeobears_analysis/scripts/run_biogeobears.Rmd",
params = list(
tree_file = "../input/tree.nwk",
geog_file = "../input/geography.data",
max_range_size = 4,
models = "DEC,DEC+J,DIVALIKE,DIVALIKE+J,B
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
BioGeoBEARS Biogeographic Analysis
Overview
BioGeoBEARS (BioGeography with Bayesian and Likelihood Evolutionary Analysis in R Scripts) performs probabilistic inference of ancestral geographic ranges on phylogenetic trees. This skill helps set up complete biogeographic analyses by:
- Validating and reformatting input files (phylogenetic tree and geographic distribution data)
- Generating organized analysis folder structure
- Creating customized RMarkdown analysis scripts
- Guiding users through parameter selection and model choices
- Producing publication-ready visualizations
When to Use This Skill
Use this skill when users request:
- "Analyze biogeography on my phylogeny"
- "Reconstruct ancestral ranges for my species"
- "Run BioGeoBEARS analysis"
- "Which areas did my ancestors occupy?"
- "Test biogeographic models (DEC, DIVALIKE, BAYAREALIKE)"
The skill triggers when users mention phylogenetic biogeography, ancestral area reconstruction, or provide tree + distribution data.
Required Inputs
Users must provide:
-
Phylogenetic tree (Newick format, .nwk, .tre, or .tree file)
- Must be rooted
- Tip labels will be matched to geography file
- Branch lengths required
-
Geographic distribution data (any tabular format)
- Species names (matching tree tips)
- Presence/absence data for different geographic areas
- Can be CSV, TSV, Excel, or already in PHYLIP format
Workflow
Step 1: Gather Information
When a user requests a BioGeoBEARS analysis, ask for:
-
Input file paths:
- "What is the path to your phylogenetic tree file?"
- "What is the path to your geographic distribution file?"
-
Analysis parameters (if not specified):
- Maximum range size (how many areas can a species occupy simultaneously?)
- Which models to compare (default: all six - DEC, DEC+J, DIVALIKE, DIVALIKE+J, BAYAREALIKE, BAYAREALIKE+J)
- Output directory name (default: "biogeobears_analysis")
Use the AskUserQuestion tool to gather this information efficiently:
Example questions:
- "Maximum range size" - options based on number of areas (e.g., for 4 areas: "All 4 areas", "3 areas", "2 areas")
- "Models to compare" - options: "All 6 models (recommended)", "Only base models (DEC, DIVALIKE, BAYAREALIKE)", "Only +J models", "Custom selection"
- "Visualization type" - options: "Pie charts (show probabilities)", "Text labels (show most likely states)", "Both"
Step 2: Validate and Prepare Input Files
Validate Tree File
Use the Read tool to check the tree file:
# In R, basic validation:
library(ape)
tr <- read.tree("path/to/tree.nwk")
print(paste("Tips:", length(tr$tip.label)))
print(paste("Rooted:", is.rooted(tr)))
print(tr$tip.label) # Check species names
Verify:
- File can be parsed as Newick
- Tree is rooted (if not, ask user which outgroup to use)
- Note the tip labels for geography file validation
Validate and Reformat Geography File
Use scripts/validate_geography_file.py to validate or reformat the geography file.
If file is already in PHYLIP format (starts with numbers):
python scripts/validate_geography_file.py path/to/geography.txt --validate --tree path/to/tree.nwk
This checks:
- Correct tab delimiters
- Species names match tree tips
- Binary codes are correct length
- No spaces in species names or binary codes
If file is in CSV/TSV format (needs reformatting):
python scripts/validate_geography_file.py path/to/distribution.csv --reformat -o geography.data --delimiter ","
Or for tab-delimited:
python scripts/validate_geography_file.py path/to/distribution.txt --reformat -o geography.data --delimiter tab
The script will:
- Detect area names from header row
- Convert presence/absence data to binary (handles "1", "present", "TRUE", etc.)
- Remove spaces from species names (replace with underscores)
- Create properly formatted PHYLIP file
Always validate the reformatted file before proceeding:
python scripts/validate_geography_file.py geography.data --validate --tree path/to/tree.nwk
Step 3: Set Up Analysis Folder Structure
Create an organized directory for the analysis:
biogeobears_analysis/
├── input/
│ ├── tree.nwk # Original or copied tree
│ ├── geography.data # Validated/reformatted geography file
│ └── original_data/ # Original input files
│ ├── original_tree.nwk
│ └── original_distribution.csv
├── scripts/
│ └── run_biogeobears.Rmd # Generated RMarkdown script
├── results/ # Created by analysis (output directory)
│ ├── [MODEL]_result.Rdata # Saved model results
│ └── plots/ # Visualization outputs
│ ├── [MODEL]_pie.pdf
│ └── [MODEL]_text.pdf
└── README.md # Analysis documentation
Create this structure programmatically:
mkdir -p biogeobears_analysis/input/original_data
mkdir -p biogeobears_analysis/scripts
mkdir -p biogeobears_analysis/results/plots
# Copy files
cp path/to/tree.nwk biogeobears_analysis/input/
cp geography.data biogeobears_analysis/input/
cp original_files biogeobears_analysis/input/original_data/
Step 4: Generate RMarkdown Analysis Script
Use the template at scripts/biogeobears_analysis_template.Rmd and customize it with user parameters.
Copy and customize the template:
cp scripts/biogeobears_analysis_template.Rmd biogeobears_analysis/scripts/run_biogeobears.Rmd
Create a parameter file or modify the YAML header in the Rmd to use the user's specific settings:
Example customization via R code:
# Edit YAML parameters programmatically or provide as params when rendering
rmarkdown::render(
"biogeobears_analysis/scripts/run_biogeobears.Rmd",
params = list(
tree_file = "../input/tree.nwk",
geog_file = "../input/geography.data",
max_range_size = 4,
models = "DEC,DEC+J,DIVALIKE,DIVALIKE+J,BAYAREALIKE,BAYAREALIKE+J",
output_dir = "../results"
),
output_file = "../results/biogeobears_report.html"
)
Or create a run script:
# biogeobears_analysis/run_analysis.sh
#!/bin/bash
cd "$(dirname "$0")/scripts"
R -e "rmarkdown::render('run_biogeobears.Rmd', params = list(
tree_file = '../input/tree.nwk',
geog_file = '../input/geography.data',
max_range_size = 4,
models = 'DEC,DEC+J,DIVALIKE,DIVALIKE+J,BAYAREALIKE,BAYAREALIKE+J',
output_dir = '../results'
), output_file = '../results/biogeobears_report.html')"
Step 5: Create README Documentation
Generate a README.md in the analysis directory explaining:
- What files are present
- How to run the analysis
- What parameters were used
- How to interpret results
Example:
# BioGeoBEARS Analysis
## Overview
Biogeographic analysis of [NUMBER] species across [NUMBER] geographic areas.
## Input Data
- **Tree**: `input/tree.nwk` ([NUMBER] tips)
- **Geography**: `input/geography.data` ([NUMBER] species × [NUMBER] areas)
- **Areas**: [A, B, C, ...]
## Parameters
- Maximum range size: [NUMBER]
- Models tested: [LIST]
## Running the Analysis
### Option 1: Using RMarkdown directly
```r
library(rmarkdown)
render("scripts/run_biogeobears.Rmd",
output_file = "../results/biogeobears_report.html")
Option 2: Using the run script
bash run_analysis.sh
Outputs
Results will be saved in results/:
biogeobears_report.html- Full analysis report with visualizations[MODEL]_result.Rdata- Saved R objects for each modelplots/[MODEL]_pie.pdf- Ancestral range reconstructions (pie charts)plots/[MODEL]_text.pdf- Ancestral range reconstructions (text labels)
Interpreting Results
The HTML report includes:
- Model Comparison - AIC scores, AIC weights, best-fit model
- Parameter Estimates - Dispersal (d), extinction (e), founder-event (j) rates
- Likelihood Ratio Tests - Statistical comparisons of nested models
- Ancestral Range Plots - Visualizations on phylogeny
- Session Info - R package versions for reproducibility
Model Descriptions
- DEC: Dispersal-Extinction-Cladogenesis (general-purpose)
- DIVALIKE: Emphasizes vicariance
- BAYAREALIKE: Emphasizes sympatric speciation
- +J: Adds founder-event speciation parameter
See references/biogeobears_details.md for detailed model descriptions.
Installation Requirements
# Install BioGeoBEARS
install.packages("rexpokit")
install.packages("cladoRcpp")
library(devtools)
devtools::install_github(repo="nmatzke/BioGeoBEARS")
# Other packages
install.packages(c("ape", "rmarkdown", "knitr", "kableExtra"))
### Step 6: Provide User Instructions
After setting up the analysis, provide clear instructions to the user:
Analysis Setup Complete!
Directory structure created at: biogeobears_analysis/
📁 Files created: ✓ input/tree.nwk - Phylogenetic tree ([N] tips) ✓ input/geography.data - Geographic distribution data (validated) ✓ scripts/run_biogeobears.Rmd - RMarkdown analysis script ✓ README.md - Documentation and instructions ✓ run_analysis.sh - Convenience script to run analysis
📋 Next steps:
-
Review the README.md for analysis details
-
Install BioGeoBEARS if not already installed:
install.packages("rexpokit") install.packages("cladoRcpp") library(devtools) devtools::install_github(repo="nmatzke/BioGeoBEARS") -
Run the analysis:
cd biogeobears_analysis bash run_analysis.shOr in R:
setwd("biogeobears_analysis") rmarkdown::render("scripts/run_biogeobears.Rmd", output_file = "../results/biogeobears_report.html") -
View results:
- Open results/biogeobears_report.html in web browser
- Check results/plots/ for PDF visualizations
⏱️ Expected runtime: [ESTIMATE based on tree size]
- Small trees (<50 tips): 5-15 minutes
- Medium trees (50-100 tips): 15-60 minutes
- Large trees (>100 tips): 1-4 hours
💡 The HTML report includes model comparison, parameter estimates, and visualization of ancestral ranges on your phylogeny.
## Analysis Parameter Guidance
When users ask for guidance on parameters, consult `references/biogeobears_details.md` and provide recommendations:
### Maximum Range Size
**Ask**: "What's the maximum number of areas a species in your group can realistically occupy?"
Common approaches:
- **Conservative**: Number of areas - 1 (prevents unrealistic cosmopolitan ancestral ranges)
- **Permissive**: All areas (if biologically plausible)
- **Data-driven**: Maximum observed in extant species
**Impact**: Larger values increase computational time exponentially
### Model Selection
**Default recommendation**: Run all 6 models for comprehensive comparison
- DEC, DIVALIKE, BAYAREALIKE (base models)
- DEC+J, DIVALIKE+J, BAYAREALIKE+J (+J variants)
**Rationale**:
- Model comparison is key to inference
- +J parameter is often significant
- Small additional computational cost
If computation is a concern, suggest starting with DEC and DEC+J.
### Visualization Options
**Pie charts** (`plotwhat = "pie"`):
- Show probability distributions across all possible states
- Better for conveying uncertainty
- Can be cluttered with many areas
**Text labels** (`plotwhat = "text"`):
- Show only maximum likelihood state
- Cleaner, easier to read
- Doesn't show uncertainty
**Recommendation**: Generate both in the analysis (template does this automatically)
## Common Issues and Troubleshooting
### Species Name Mismatches
**Symptom**: Error about species in tree not in geography file (or vice versa)
**Solution**: Use the validation script with `--tree` option to identify mismatches, then either:
1. Edit the geography file to match tree tip labels
2. Edit tree tip labels to match geography file
3. Remove species that aren't in both
### Tree Not Rooted
**Symptom**: Error about unrooted tree
**Solution**:
```r
library(ape)
tr <- read.tree("tree.nwk")
tr <- root(tr, outgroup = "outgroup_species_name")
write.tree(tr, "tree_rooted.nwk")
Ask user which species to use as outgroup.
Formatting Errors in Geography File
Symptom: Validation errors about tabs, spaces, or binary codes
Solution: Use the reformat option:
python scripts/validate_geography_file.py input.csv --reformat -o geography.data
Optimization Fails to Converge
Symptom: NA values in parameter estimates or very negative log-likelihoods
Possible causes:
- Tree and geography data mismatch
- All species in same area (no variation)
- Unrealistic max_range_size
Solution: Check input data quality and try simpler model first (DEC only)
Very Slow Runtime
Causes:
- Large number of areas (>6-7 areas gets slow)
- Large max_range_size
- Many tips (>200)
Solutions:
- Reduce max_range_size
- Combine geographic areas if appropriate
- Use
force_sparse = TRUEin run object - Run on HPC cluster
Resources
This skill includes:
scripts/
-
validate_geography_file.py - Validates and reformats geography files
- Checks PHYLIP format compliance
- Validates against tree tip labels
- Reformats from CSV/TSV to PHYLIP
- Usage:
python validate_geography_file.py --help
-
biogeobears_analysis_template.Rmd - RMarkdown template for complete analysis
- Model fitting for DEC, DIVALIKE, BAYAREALIKE (with/without +J)
- Model comparison with AIC, AICc, weights
- Likelihood ratio tests
- Parameter visualization
- Ancestral range plotting
- Customizable via YAML parameters
references/
- biogeobears_details.md - Comprehensive reference including:
- Detailed model descriptions
- Input file format specifications
- Parameter interpretation guidelines
- Plotting options and customization
- Citations and further reading
- Computational considerations
Load this reference when:
- Users ask about specific models
- Need to explain parameter estimates
- Troubleshooting complex issues
- Users want detailed methodology for publications
Best Practices
-
Always validate input files before analysis - saves time debugging later
-
Organize analysis in a dedicated directory - keeps everything together and reproducible
-
Run all 6 models by default - model comparison is crucial for biogeographic inference
-
Document parameters and decisions - analysis README helps with reproducibility
-
Generate both visualization types - pie charts for uncertainty, text labels for clarity
-
Save intermediate results - the RMarkdown template does this automatically
-
Check parameter estimates - unrealistic values suggest data or model issues
-
Provide context with visualizations - explain what dispersal/extinction rates mean for the user's system
Output Interpretation
When presenting results to users, explain:
Model Selection
- AIC weights represent probability that each model is best
- ΔAIC < 2: Models essentially equivalent
- ΔAIC 2-7: Considerably less support
- ΔAIC > 10: Essentially no support
Parameter Estimates
- d (dispersal rate): Higher = more range expansions
- e (extinction rate): Higher = more local extinctions
- j (founder-event rate): Higher = more jump dispersal at speciation
- Ratio d/e: > 1 favors expansion, < 1 favors contraction
Ancestral Ranges
- Pie charts: Larger slices = higher probability
- Colors: Represent areas (single area = bright color, multiple areas = blended)
- Node labels: Most likely ancestral range
- Split events (at corners): Range changes at speciation
Statistical Tests
- LRT p < 0.05: +J parameter significantly improves fit
- High AIC weight (>0.7): Strong evidence for one model
- Similar AIC weights: Model uncertainty - report results from multiple models
Example Usage
User: "I have a phylogeny of 30 bird species and their distributions across 5 islands. Can you help me figure out where their ancestors lived?"
Claude (using this skill):
1. Ask for tree and distribution file paths
2. Validate tree file (check 30 tips, rooted)
3. Validate/reformat geography file (5 areas)
4. Ask about max_range_size (suggest 4 areas)
5. Ask about models (suggest all 6)
6. Set up biogeobears_analysis/ directory structure
7. Copy template RMarkdown script with parameters
8. Generate README.md and run_analysis.sh
9. Provide clear instructions to run analysis
10. Explain expected outputs and how to interpret them
Result: User has complete, ready-to-run analysis with documentation
Attribution
This skill was created based on:
- BioGeoBEARS package by Nicholas Matzke
- Tutorial resources from http://phylo.wikidot.com/biogeobears
- Example workflows from the BioGeoBEARS GitHub repository
Additional Notes
Time estimate for skill execution:
- File validation: 1-2 minutes
- Directory setup: < 1 minute
- Total setup time: 5-10 minutes
Analysis runtime (separate from skill execution):
- Depends on tree size and number of areas
- Small datasets (<50 tips, ≤5 areas): 10-30 minutes
- Large datasets (>100 tips, >5 areas): 1-6 hours
Installation requirements (user must have):
- R (≥4.0)
- BioGeoBEARS R package
- Supporting packages: ape, rmarkdown, knitr, kableExtra
- Python 3 (for validation script)
When to consult references/:
- Load
biogeobears_details.mdwhen users need detailed explanations of models, parameters, or interpretation - Reference it for troubleshooting complex issues
- Use it to help users write methods sections for publications
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (18,144 bytes)
- 📎 README.md (8,085 bytes)
- 📎 references/biogeobears_details.md (9,721 bytes)
- 📎 scripts/biogeobears_analysis_template.Rmd (12,398 bytes)
- 📎 scripts/validate_geography_file.py (10,872 bytes)