命令行界面q2cli

QIIME 2 command-line interface (q2cli)

https://docs.qiime2.org/2021.2/interfaces/q2cli/

注:最好按本教程顺序学习,想直接学习本章,至少完成本系列《1简介和安装》。

本指南介绍了q2cli,它是QIIME 2 Core发行版中包含的QIIME 2命令行界面。教程广泛使用q2cli,因此建议在开始教程之前先阅读本文档。本文档尚在开发中,将来会扩展。

基本用法 Basic usage

q2cli包含一个qiime命令,该命令用于从命令行执行QIIME分析。运行qiime查看可用子命令的列表:

qiime

显示如下内容:

Usage: qiime [OPTIONS] COMMAND [ARGS]...QIIME 2 command-line interface (q2cli)--------------------------------------To get help with QIIME 2, visit https://qiime2.org.To enable tab completion in Bash, run the following command or add it toyour .bashrc/.bash_profile:source tab-qiimeTo enable tab completion in ZSH, run the following commands or add them toyour .zshrc:autoload bashcompinit && bashcompinit && source tab-qiimeOptions:--version   Show the version and exit.--help      Show this message and exit.Commands:info                Display information about current deployment.tools               Tools for working with QIIME 2 files.dev                 Utilities for developers and advanced users.alignment           Plugin for generating and manipulating alignments.composition         Plugin for compositional data analysis.cutadapt            Plugin for removing adapter sequences, primers, andother unwanted sequence from sequence data.dada2               Plugin for sequence quality control with DADA2.deblur              Plugin for sequence quality control with Deblur.demux               Plugin for demultiplexing & viewing sequence quality.diversity           Plugin for exploring community diversity.diversity-lib       Plugin for computing community diversity.emperor             Plugin for ordination plotting with Emperor.feature-classifier  Plugin for taxonomic classification.feature-table       Plugin for working with sample by feature tables.fragment-insertion  Plugin for extending phylogenies.gneiss              Plugin for building compositional models.longitudinal        Plugin for paired sample and time series analyses.metadata            Plugin for working with Metadata.phylogeny           Plugin for generating and manipulating phylogenies.quality-control     Plugin for quality control of feature and sequence data.quality-filter      Plugin for PHRED-based filtering and trimming.sample-classifier   Plugin for machine learning prediction of samplemetadata.taxa                Plugin for working with feature taxonomy annotations.vsearch             Plugin for clustering and dereplicating with vsearch.

将列出几个子命令,包括插件命令(例如feature-table, diversity)和内置命令(例如info, tools)。

您可以通过运行qiime info来发现当前安装了哪些插件以及有关QIIME部署的其他信息:

qiime info

显示如下内容:

System versions
Python version: 3.6.12
QIIME 2 release: 2021.2
QIIME 2 version: 2021.2.1
q2cli version: 2021.2.1Installed plugins
alignment: 2021.2.1
composition: 2021.2.1
cutadapt: 2021.2.1
dada2: 2021.2.1
deblur: 2021.2.1
demux: 2021.2.1
diversity: 2021.2.1
diversity-lib: 2021.2.1
emperor: 2021.2.1
feature-classifier: 2021.2.1
feature-table: 2021.2.1
fragment-insertion: 2021.2.1
gneiss: 2021.2.1
longitudinal: 2021.2.1
metadata: 2021.2.1
phylogeny: 2021.2.1
quality-control: 2021.2.1
quality-filter: 2021.2.1
sample-classifier: 2021.2.1
taxa: 2021.2.1
types: 2021.2.1
vsearch: 2021.2.1Application config directory
/mnt/bai/yongxin/miniconda2/envs/qiime2-2021.2/var/q2cliGetting help
To get help with QIIME 2, visit https://qiime2.org

向任何命令提供--help以显示有关该命令的信息,包括该命令定义的所有子命令,选项和参数。例如,要了解有关feature-table 插件命令的更多信息,请运行:

qiime feature-table --help

显示如下内容:

Usage: qiime feature-table [OPTIONS] COMMAND [ARGS]...Description: This is a QIIME 2 plugin supporting operations on sample byfeature tables, such as filtering, merging, and transforming tables.Plugin website: https://github.com/qiime2/q2-feature-tableGetting user support: Please post to the QIIME 2 forum for help with thisplugin: https://forum.qiime2.orgOptions:--version    Show the version and exit.--citations  Show citations and exit.--help       Show this message and exit.Commands:core-features                  Identify core features in tablefilter-features                Filter features from tablefilter-features-conditionally  Filter features from a table based onabundance and prevalencefilter-samples                 Filter samples from tablefilter-seqs                    Filter features from sequencesgroup                          Group samples or features by a metadatacolumnheatmap                        Generate a heatmap representation of afeature tablemerge                          Combine multiple tablesmerge-seqs                     Combine collections of feature sequencesmerge-taxa                     Combine collections of feature taxonomiespresence-absence               Convert to presence/absencerarefy                         Rarefy tablerelative-frequency             Convert to relative frequenciesrename-ids                     Renames sample or feature ids in a tablesubsample                      Subsample tablesummarize                      Summarize tabletabulate-seqs                  View sequence associated with each featuretranspose                      Transpose a feature table.

这将列出feature-table插件提供的操作(子命令),以及有关插件本身的信息(例如引文,网站,用户支持)。

尝试使用--help了解其他命令。例如,内置工具命令中有哪些可用操作?

开启命令行补全Enable command-line tab completion

如果将Bash或Zsh用作Shell,则可以启用制表符补全功能,这将大大提高QIIME 2命令行界面(command-line interface,CLI)的可用性。启用制表符补全功能后,按Tab键将尝试完成您键入的命令或选项,或者根据到目前为止键入的内容为您提供可用命令或选项的列表。这减少了您必须执行的键入操作的数量,并使命令和选项更易于发现,而无需将—help传递给要运行的每个命令。

提示:当前仅在Bash和Zsh Shell中支持QIIME 2 CLI选项补全。要检查您拥有什么Shell,请运行echo $0。您应该在输出中看到-bash-zsh(例如我看到的是/bin/bash)。

请选择适合对说明对应的Shell,方可启用制表符补全。

Bash

运行以下命令以启用制表符完成:

source tab-qiime

每次打开新终端并激活QIIME 2 conda环境时,除非将其添加到您的.bashrc / .bash_profile中,否则都将需要运行此命令。

Zsh

运行以下命令以启用制表符完成:

autoload bashcompinit && bashcompinit && source tab-qiime

除非将其添加到.zshrc中,否则每次打开新终端并激活QIIME 2 conda环境时,都需要运行此命令。

验证标签页完成 Verify tab completion

要测试选项卡补全功能是否正常运行,请尝试键入以下部分命令,而无需实际运行该命令,请按Tab键(您可能需要按几次)。如果制表符补全有效,则命令应自动补齐qiime info

qiime i

译者简介

刘永鑫,博士,高级工程师,中科院青促会会员,QIIME 2项目参与人。2008年毕业于东北农业大学微生物学专业,2014年于中国科学院大学获生物信息学博士,2016年遗传学博士后出站留所工作,任工程师,研究方向为宏基因组数据分析。目前在Science、Nature Biotechnology、Protein & Cell、Current Opinion in Microbiology等杂志发表论文30余篇,被引3千余次。2017年7月创办“宏基因组”公众号,分享宏基因组、扩增子研究相关文章2400余篇,代表作有《扩增子图表解读、分析流程和统计绘图三部曲(21篇)》、 《微生物组实验手册》、《微生物组数据分析》等,关注人数11万+,累计阅读2100万+。

Reference

https://docs.qiime2.org/2021.2

Evan Bolyen, Jai Ram Rideout, Matthew R. Dillon, Nicholas A. Bokulich, Christian C. Abnet, Gabriel A. Al-Ghalith, Harriet Alexander, Eric J. Alm, Manimozhiyan Arumugam, Francesco Asnicar, Yang Bai, Jordan E. Bisanz, Kyle Bittinger, Asker Brejnrod, Colin J. Brislawn, C. Titus Brown, Benjamin J. Callahan, Andrés Mauricio Caraballo-Rodríguez, John Chase, Emily K. Cope, Ricardo Da Silva, Christian Diener, Pieter C. Dorrestein, Gavin M. Douglas, Daniel M. Durall, Claire Duvallet, Christian F. Edwardson, Madeleine Ernst, Mehrbod Estaki, Jennifer Fouquier, Julia M. Gauglitz, Sean M. Gibbons, Deanna L. Gibson, Antonio Gonzalez, Kestrel Gorlick, Jiarong Guo, Benjamin Hillmann, Susan Holmes, Hannes Holste, Curtis Huttenhower, Gavin A. Huttley, Stefan Janssen, Alan K. Jarmusch, Lingjing Jiang, Benjamin D. Kaehler, Kyo Bin Kang, Christopher R. Keefe, Paul Keim, Scott T. Kelley, Dan Knights, Irina Koester, Tomasz Kosciolek, Jorden Kreps, Morgan G. I. Langille, Joslynn Lee, Ruth Ley, Yong-Xin Liu, Erikka Loftfield, Catherine Lozupone, Massoud Maher, Clarisse Marotz, Bryan D. Martin, Daniel McDonald, Lauren J. McIver, Alexey V. Melnik, Jessica L. Metcalf, Sydney C. Morgan, Jamie T. Morton, Ahmad Turan Naimey, Jose A. Navas-Molina, Louis Felix Nothias, Stephanie B. Orchanian, Talima Pearson, Samuel L. Peoples, Daniel Petras, Mary Lai Preuss, Elmar Pruesse, Lasse Buur Rasmussen, Adam Rivers, Michael S. Robeson, Patrick Rosenthal, Nicola Segata, Michael Shaffer, Arron Shiffer, Rashmi Sinha, Se Jin Song, John R. Spear, Austin D. Swafford, Luke R. Thompson, Pedro J. Torres, Pauline Trinh, Anupriya Tripathi, Peter J. Turnbaugh, Sabah Ul-Hasan, Justin J. J. van der Hooft, Fernando Vargas, Yoshiki Vázquez-Baeza, Emily Vogtmann, Max von Hippel, William Walters, Yunhu Wan, Mingxun Wang, Jonathan Warren, Kyle C. Weber, Charles H. D. Williamson, Amy D. Willis, Zhenjiang Zech Xu, Jesse R. Zaneveld, Yilong Zhang, Qiyun Zhu, Rob Knight & J. Gregory Caporaso#. Reproducible, interactive, scalable and extensible microbiome data science using QIIME 2. Nature Biotechnology. 2019, 37: 852-857. doi:10.1038/s41587-019-0209-9

猜你喜欢

10000+:菌群分析 宝宝与猫狗 梅毒狂想曲 提DNA发Nature Cell专刊 肠道指挥大脑

系列教程:微生物组入门 Biostar 微生物组  宏基因组

专业技能:学术图表 高分文章 生信宝典 不可或缺的人

一文读懂:宏基因组 寄生虫益处 进化树

必备技能:提问 搜索  Endnote

文献阅读 热心肠 SemanticScholar Geenmedical

扩增子分析:图表解读 分析流程 统计绘图

16S功能预测   PICRUSt  FAPROTAX  Bugbase Tax4Fun

在线工具:16S预测培养基 生信绘图

科研经验:云笔记  云协作 公众号

编程模板: Shell  R Perl

生物科普:  肠道细菌 人体上的生命 生命大跃进  细胞暗战 人体奥秘

写在后面

为鼓励读者交流、快速解决科研困难,我们建立了“宏基因组”专业讨论群,目前己有国内外5000+ 一线科研人员加入。参与讨论,获得专业解答,欢迎分享此文至朋友圈,并扫码加主编好友带你入群,务必备注“姓名-单位-研究方向-职称/年级”。PI请明示身份,另有海内外微生物相关PI群供大佬合作交流。技术问题寻求帮助,首先阅读《如何优雅的提问》学习解决问题思路,仍未解决群内讨论,问题不私聊,帮助同行。

学习16S扩增子、宏基因组科研思路和分析实战,关注“宏基因组”

点击阅读原文,跳转最新文章目录阅读

QIIME 2教程. 22命令行界面q2cli(2021.2)相关推荐

  1. QIIME 2教程. 22命令行界面q2cli(2020.11)

    文章目录 命令行界面`q2cli` 基本用法 Basic usage 开启命令行补全Enable command-line tab completion Bash Zsh 验证标签页完成 Verify ...

  2. QIIME 2教程. 20实用程序Utilities(2021.2)

    QIIME 2中的实用程序 Utilities in QIIME 2 https://docs.qiime2.org/2021.2/tutorials/utilities/ 以下是QIIME 2中提供 ...

  3. QIIME 2用户文档. 20命令行界面q2cli(2019.7)

    前情提要 NBT:QIIME 2可重复.交互和扩展的微生物组数据分析平台 1简介和安装Introduction&Install 2插件工作流程概述Workflow 3老司机上路指南Experi ...

  4. QIIME 2教程. 11元数据Metadata(2021.2)

    QIIME 2用户文档. 11元数据 Metadata in QIIME 2 https://docs.qiime2.org/2021.2/tutorials/metadata/ 注:此实例需要一些基 ...

  5. QIIME 2教程. 31名词Glossary(2021.2)

    名词解释 User Glossary https://docs.qiime2.org/2021.2/glossary/ 译者注:以下是QIIME 2中经常会用到的术语,由于有些术语无法准确翻译为中文, ...

  6. QIIME 2教程. 28社区Community(2021.2)

    社区 Community https://docs.qiime2.org/2021.2/community/ 与QIIME 2社区保持联系并保持最新状态的方法有多种. 论坛 QIIME 2 Forum ...

  7. QIIME 2教程. 32如何写方法和引用Citing(2021.2)

    引用QIIME 2 Citing QIIME 2 https://docs.qiime2.org/2021.2/citation/ 请注意,几乎所有QIIME 2插件都实现独立于QIIME 2框架开发 ...

  8. QIIME 2教程. 25可用和开发中插件AvailableFuturePlugins(2021.2)

    可用插件 Available plugins https://docs.qiime2.org/2021.2/plugins/available/ 用户可以通过插件使用QIIME 2微生物组分析功能.Q ...

  9. QIIME 2教程. 18序列双端合并read-joining(2021.2)

    序列双端合并的另一种方法read-joining Alternative methods of read-joining in QIIME 2 https://docs.qiime2.org/2021 ...

  10. QIIME 2教程. 01简介和安装 Introduction Install(2020.11开始更新)

    写在前面 QIIME是微生物组领域最广泛使用的分析流程,10年来引用20000+次,2019年Nature杂志评为近70年来人体菌群研究的25个里程碑事件--里程碑16:生物信息学工具助力菌群测序数据 ...

最新文章

  1. 美国研发出百万兆级计算机 Summit,“最强超算”竞争加剧
  2. 来,加入前端自动化单元测试
  3. dos 命令与 C++的联合作业,有点意思~
  4. 如何解决开发人员的工作无法量化的问题
  5. Multiple markers at this line @Override的解决方法
  6. OBJC依赖库管理利器cocoapods 安装及使用详细图解
  7. Redis字符串操作
  8. Oracle 原理: JAVA连接Oracle数据库 (JDBC)
  9. WriteComponent,ReadComponent
  10. liunx之Centos6.8杀毒软件的安装
  11. Win8 IIS 安装和部署网站问题
  12. C++primer 第 5 章语句 5.2语句作用域 5.3条件语句 5 . 4 迭代语句 5.5跳转语句 5.6 try语句块和异常处理
  13. 【2017年第1期】基于外卖物流配送大数据的调度系统
  14. Python与机器视觉(x)图像差分-图像相减
  15. 探索MicroPython(一)--基础介绍
  16. 数学连乘和累加运算符号_数学符号归纳
  17. Android中如何实现多个框,在android中的对话框中设置多个文本框
  18. java web Excel在网页预览
  19. linux root定时脚本,shell之定时周期性执行脚本的方法示例
  20. 高德地图-2D转换为3D

热门文章

  1. 一键获取阿里巴巴主图视频细节图评论图的步骤
  2. 已知两点坐标求水平距离_知道两个点的坐标X,Y,如何计算出两点间的距离以及角度,公式是什么...
  3. 密码生成器c语言程序,C++全密码生成的实现代码
  4. 网络编程资源大集合(包含前端、java、linux、安卓、github开源项目、开发工具等)
  5. linux搭建sftp服务器
  6. 【第37期】游戏策划:简历那点事
  7. 消灭WinRAR广告
  8. 5G通信协议(MAC 层简介)
  9. Rust之fluid用法(fltk ui 设计器)
  10. iPhone app 和android app开发环境和语言的区别