轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
pasta

smirarab/pasta

smirarab
自动构建

PASTA: Practical Alignment using Sate and TrAnsitivity

下载次数: 0状态:自动构建维护者:smirarab仓库类型:镜像最近更新:5 年前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,不浪费每一次拉取。
点击查看

This is an implementation of the PASTA (Practical Alignment using Saté and TrAnsitivity) algorithm published in RECOMB-2014 and JCB:

  • Mirarab S, Nguyen N, Warnow T. PASTA: ultra-large multiple sequence alignment. Sharan R, ed. Res Comput Mol Biol. 2014:177-191.
  • Mirarab S, Nguyen N, Guo S, Wang L-S, Kim J, Warnow T. PASTA: Ultra-Large Multiple Sequence Alignment for Nucleotide and Amino-Acid Sequences. J Comput Biol. 2015;22(5):377-386. doi:10.1089/cmb.2014.0156.

The latest version includes a new decomposition technique described here:

  • Balaban, Metin, Niema Moshiri, Uyen Mai, and Siavash Mirarab. “TreeCluster : Clustering Biological Sequences Using Phylogenetic Trees.” BioRxiv, 2019, 591388. doi:10.1101/591388.

Contact:

All questions and inquires should be addressed to our user email group: pasta-users@googlegroups.com. Please check our Tutorial and https://groups.google.com/forum/#!forum/pasta-users before sending new requests.

Developers

  • The code and the algorithm are developed by Siavash Mirarab and Tandy Warnow, with help from Nam Nguyen. The latest version of the code includes a new code decomposition designed and implemented by https://github.com/uym2.

  • The current PASTA code is heavily based on the SATé code developed by Mark Holder's group at KU. Refer to sate-doc directory for documentation of the SATé code, including the list of authors, license, etc.

  • https://github.com/niemasd has contributed to the import to dendropy 4 and python 3 and to the Docker image.

Documentation: In addition to this README file, you can consult our Tutorial.

INSTALLATION

You have four options for installing PASTA.

  • Windows: If you have a Windows machine, currently using the Docker image or the Virtual Machine (VM) image we provide is your only option. Among those two options, Docker is the preferred method.
  • Linux: If you have Linux (or other *nix systems), you can still use Docker or VM, but downloading the code from github and installing it is what we recommend.
  • MAC: We have four options for MAC: VM, Docker, installing from the code, and downloading the .dmg file. If you mostly use the GUI, then the MAC .dmg file is a good option (although sometimes it can be behind the latest code). Otherwise, we reocmmend either Docker or the code.

1. From pre-build MAC image file

  1. Download the MAC application .dmg file from https://sites.google.com/eng.ucsd.edu/datasets/alignment/pastaupp. Use the lastest version available

  2. Open the .dmg file and copy its content to your preferred destination (do not run PASTA from the image itself).

  3. Simply run the PASTA app from where you copied it.

If the APP does not work, let us know. We will try to fix issues. But you can also try first installing PASTA from the source code (see below) and then run ./make-app.sh from the pasta directory. This will create an app under dist directory, which you should be able to run and copy to any other location.

2. From Source Code

The current version of PASTA has been developed and tested entirely on Linux and MAC. Windows won't work currently (future versions may or may not support Windows).

You need to have:

  • https://www.python.org (version 2.7 or later, including python 3)
  • http://packages.python.org/DendroPy/ (but the setup script should automatically install dendropy for you if you don't have it)
  • Java (only required for using OPAL)
  • wxPython - only required if you want to use the GUI. The setup script does not automatically install this.

Installation steps:

  1. Open a terminal and create a directory where you want to keep PASTA and go to this directory. For example:

    bash
    mkdir ~/pasta-code
    cd ~/pasta-code`
    
  2. Clone the PASTA code repository from our https://github.com/smirarab/pasta. For example you can use:

    bash
    git clone https://github.com/smirarab/pasta.git
    

    If you don't have git, you can directly download a https://github.com/smirarab/pasta/archive/master.zip and decompress it into your desired directory.

  3. A. Clone the relevant "tools" directory (these are also forked from the SATé project). There are different repositories for https://github.com/smirarab/sate-tools-linux and https://github.com/smirarab/sate-tools-mac. You can use

    bash
    git clone https://github.com/smirarab/sate-tools-linux.git #for Linux
    

    or

    bash
    git clone https://github.com/smirarab/sate-tools-mac.git. #for MAC
    

    Or you can directly download these as zip files for https://github.com/smirarab/sate-tools-linux/archive/master.zip or https://github.com/smirarab/sate-tools-mac/archive/master.zip and decompress them in your target directory (e.g. pasta-code).

    • Note that the tools directory and the PASTA code directory should be under the same parent directory.
    • When you use the zip files instead of using git, after decompressing the zip file you may get a directory called sate-tools-mac-master or sate-tools-linux-master instead of sate-tools-mac or sate-tools-linux. You need to rename these directories and remove the -master part.
    • Those with 32-bit Linux machines need to be aware that the master branch has 64-bit ***aries. 32-bit ***aries are provided in the 32bit branch of sate-tools-linux git project (so download https://github.com/smirarab/sate-tools-linux/archive/32bit.zip instead).
  4. B. (Optional) Only if you want to use MAFFT-Homologs within PASTA: cd sate-tools-linux or cd sate-tools-mac Use git clone https://github.com/koditaraszka/pasta-databases or download directly at https://github.com/koditaraszka/pasta-databases.git

    • Be sure to leave this directory cd .. before starting the next step
  5. cd pasta (or cd pasta-master if you used the zip file instead of clonning the git repository)

  6. Then run:

    bash
     sudo python setup.py develop 
    

    If you don't have root access, use:

    bash
    python setup.py develop  --user
    

    Common Problems:

    • Could not find SATé tools bundle directory: this means you don't have the right tools directory at the right location. Maybe you downloaded MAC instead of Linux? Or, maybe you didn't put the directory in the parent directory of where pasta code is? Most likely, you used the zip files and forgot to remove teh -master from the directory name. Run mv sate-tools-mac-master sate-tools-mac on MAC or mv sate-tools-linux-master sate-tools-linux to fix this issue.
    • The setup.py script is supposed to install setuptools for you if you don't have it. This sometimes works and sometimes doesn't. If you get an error with a message like invalid command 'develop', it means that setuptools is not installed. To solve this issue, you can manually install https://pypi.python.org/pypi/setuptools#installation-instructions. For example, on Linux, you can run curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python (but note there are other ways of installing setuptools as well).
  7. Pasta now includes additional aligners for Linux and MAC users: mafft-ginsi, mafft-homologs, contralign (version 1), and probcons. In order to use mafft-homologs and contralign, the user must set the environment variable CONTRALIGN_DIR=/dir/to/sate-tools-linux. You can use export CONTRALIGN_DIR=/dir/to/sate-tools-linux or just edit ~/.bashrc to have CONTRALIGN_DIR=dir/to/sate-tools-linux.

    • To use these aligners, add the following to your pasta execution --aligner=NAME_OF_ALIGNER, where NAME_OF_ALIGNER now includes (ginsi, homologs, contralign, and probcons)

3. From Docker

  1. Make sure you have Docker installed

  2. Run

    bash
    docker pull smirarab/pasta
    

You are done. You can test using

bash
 docker run smirarab/pasta run_pasta.py -h

4. From Virtual Machine (VM)

VM Image (mostly for Windows users) is available for https://***/file/d/0B0lcoFFOYQf8U2NZV2Z2RmRaRjQ/view?usp=sharing (~3 GB). Once the image is downloaded, you need to run it using a VM environment (https://www.virtualbox.org/ is a good option). After you install VirtualBox, you just need to use File/import to import the *.ova image that you have downloaded (if your machine has less than 3GB you might want to reduce the memory to something like 512MB). Once VM is imported, you can start it from the Virtualbox. If you are asked to login, the username and passwords are (username: phylolab, password: phylolab). PASTA is already installed on the VM machine, so you can simply proceed by opening a terminal and running it. VM version may be an older version.

  • Note: the VM is not maintained anymore and so is using an old version of PASTA.

Email pasta-users@googlegroups.com for installation issues.

EXECUTION

To run PASTA using the command-line:

bash
python run_pasta.py -i input_fasta [-t starting_tree] 

PASTA by default picks the appropriate configurations automatically for you. The starting tree is optional. If not provided, PASTA estimates a starting tree.

Run

bash
python run_pasta.py --help

to see PASTA's various options and descriptions of how they work.

To run the GUI version,

  • if you have used the MAC .dmg file, you can simply click on your application file to run PASTA.
  • if you have installed from the source code, cd into your installation directory and run
bash
python run_pasta_gui.py

on some machines you may instead need to use

bash
pythonw run_pasta_gui.py

To run PASTA using Docker, run

bash
docker run -v [path to the directory with your input files]:/data smirarab/pasta run_pasta.py -i input_fasta [-t starting_tree] 

On Windows, you may have to enable drive sharing; see https://docs.docker.com/docker-for-windows/.

Options

PASTA estimates alignments and maximum likelihood (ML) trees from unaligned sequences using an iterative approach. In each iteration, it first estimates a multiple sequence alignment and then a ML tree is estimated on (a masked version of) the alignment. By default PASTA performs 3 iterations, but a host of options enable changing that behavior. In each iteration, a divide-and-conquer strategy is used for estimating the alignment. The set of sequences is divided into smaller subsets, each of which is aligned using an external alignment tool (the default is MAFFT-L-ins-i). These subset alignments are then pairwise merged (by default using Opal) and finally the pairwise merged alignments are merged into a final alignment using transitivity merge. The division of the dataset into smaller subsets and selecting which alignments should be pairwise merged is guided by the tree from the previous iteration. The first step therefore needs an initial tree.

When GUI is used, a limited set of important options can be adjusted. The command line also allows you to alter the behavior of the algorithm, and provides a larger sets of options that can be adjusted.

Options can also be passed in as configuration files with the format:

[commandline]
option-name = value

[sate]
option-name = value

With every run, PASTA saves the configuration file for that run as a temporary file called [jobname]_temp_pasta_config.txt in your output directory.

Multiple configuration files can be provided. Configuration files are read in the order they occur as arguments (with values in later files replacing previously read values). Options specified in the command line are read last. Thus, these values "overwrite" any settings from the configuration files.

Note: the use of --auto option can overwrite some of the other options provided by commandline or through configuration files. The use of this option is generally not suggested (it is a legacy option from SATé).

The following is a list of important options used by PASTA. Note that by default PASTA picks these parameters for you, and thus you might not need to ever change these:

  • Initial tree: If a starting tree is provided using the -t option, then that tree is used. If the input sequence file is already aligned and --aligned option is provided, then PASTA computes an ML tree on the input alignment and uses that as the starting tree. If the input sequences are not aligned (or if they are aligned and --aligned is not given), PASTA uses the procedure described below for estimating the starting alignment and tree. 1. randomly selects a subset of 100 sequences. 2. estimates an alignment on the subset using the subset alignment tool (default MAFFT-l-insi). 3. builds a HMMER model on this "backbone" alignment. 4. uses hmmalign to align the remaining sequences into the backbone alignment. 5. runs FastTree on the alignment obtained in the previous step.

  • Data type: PASTA does not automatically detect your data type. Unless your data is DNA, you need to set the data type using -d command.

  • Subset alignment tool: the default is MAFFT, but you can change it using --aligner command.

  • Pairwise merge tool: the default is OPAL for dna and Muscle for protein. Change it using --merger command.

  • Tree estimation tool: the default is FastTree. You can also set it to RAxML using --tree-estimator option. Be aware that RAxML takes much longer than FastTree. If you really want to have a RAxML tree, we suggest obtaining one by running it on the final PASTA alignment. You can change the model used by FastTree (default: -gtr -gammaq for nt and -wag -gamma for aa) or RAxML (default GTRGAMMA for nt and PROTWAGCAT for AA) by updating the [model] parameter under [FastTree] or [RAxML] header in the config file. The model cannot be currently updated in the command line.

  • Number of iterations: the simplest option that can be used to set the number of iterations is --iter-limit. You can also set a time limit using --time-limit, in which case, PASTA runs until the time limit is reached, then continues to run until the current iteration is finished, and then stops. If both values are set, PASTA stops after the first limit is reached. The remaining options for setting iteration limits are legacies of SATé and are not recommended.

  • Masking: Since PASTA produces very gappy alignments, it is a good idea to remove sites that are almost exclusively gaps before running the ML tree estimation. By default, PASTA removes sites that are more than 99.9% gaps. You can change that using the --mask-gappy-sites option.

  • Maximum subset size: two options are provided to set the maximum subset size: --max-subproblem-frac and --max-subproblem-size. The --max-subproblem-frac option is a number between 0 and 1 and sets the maximum subset size as a fraction of the entire dataset. The --max-subproblem-size option sets the maximum size as an absolute number. When both numbers are provided (in either configuration file or the command line), the LARGER number is used. This is an unfortunate design (legacy of SATé) and can be quite confusing. Please always double check the actual subset size reported by PASTA and make sure it is the value intended.

  • Temporary files: PASTA creates many temporary files, and deletes most at the end. You can control the behavior of temporary files using --temporaries (to set the tempdirectory), -k (to keep temporaries) and --keepalignmenttemps (to keep even more temporaries) options. Note that PASTA also creates a bunch of temporary files in the output directory and never deletes them, because these temporary files are potentially useful for the users. These files are all of the form [jobname]_temp_*. Some of the important files created are alignments and trees produced in individual steps (alignments are saved both in masked and unmasked versions). These intermediate files all have internal PASTA sequence names, which are slightly different from your actual sequence names. The mapping between PASTA and real names are given also as a temporary file: [jobname]_temp_name_translation.txt.

  • Dry run: The --exportconfig option can be used to crate a config file that can be checked for correctness before running the actual job.

  • CPUs: PASTA tries to use all the available cpus by default. You can use num_cpus to adjust the number of threads used.

The remaining options available in PASTA are mostly legacies from SATé and are generally not useful for PASTA runs.

Output

PASTA outputs an alignment and a tree, in addition to a host of other files. These various output files are described in more detail in our tutorial. Note that the support values on the PASTA output tree are local SH-like support values computed by FastTree, and not bootstrap support values. To get a more reliable measure of support, please use the bootstrapping procedure, applied to the final PASTA alignments (you can use RAxML for this purpose).

Debug

To show debugging information, set the following environmental variables:

export PASTA_DEBUG=TRUE
export PASTA_LOGGING_LEVEL=DEBUG
export PASTA_LOGGING_FORMAT=RICH

(last line is optional)

LICENSE

PASTA uses the same license as SATé (GNU General Public License).

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 pasta 镜像标签

docker pull docker.xuanyuan.run/smirarab/pasta:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull smirarab/pasta:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
smirarab/pasta
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 pasta 镜像推荐

cglatot/pasta logo

cglatot/pasta

cglatot
Plex批量音轨和字幕轨道更改工具,可连接Plex服务器查看音轨和字幕详细信息,快速为整个剧集或单集设置音轨和字幕,解决逐集手动更改的繁琐问题。
4 次收藏100万+ 次下载
1 个月前更新
grisu48/pasta logo

grisu48/pasta

grisu48
一个用Go编写的极简pastebin服务,支持自托管,可通过Docker快速部署,用于临时分享文本、代码片段等内容。
1 次收藏610 次下载
2 年前更新

查看更多 pasta 相关镜像