QIIME: Difference between revisions
(Marked this version for translation) |
No edit summary |
||
Line 16: | Line 16: | ||
<!--T:15--> | <!--T:15--> | ||
The QIIME2 developers publish images on [https:// | The QIIME2 developers publish images on [https://quay.io/organization/qiime2 Docker Hub]. In order to use one of these images on our systems you must first [[Singularity/en#Creating_an_image_using_Docker_Hub|build a Singularity image]]: | ||
</translate> | </translate> | ||
Line 36: | Line 26: | ||
<translate> | <translate> | ||
<!--T:21--> | <!--T:21--> | ||
This build step may take over an hour, but you only need do this once. | This build step may take over an hour, but you only need to do this once. Save the image file (<code>qiime2-2021.11.sif</code> in this example) for later re-use. | ||
for later re-use. | |||
<!--T:17--> | <!--T:17--> | ||
Then run your code as described at [[Singularity]]. Typically you will run each QIIME command in a <code>singularity exec</code> statement: | Then run your code as described at [[Singularity]]. Typically you will run each QIIME command in a <code>singularity exec</code> statement: | ||
</translate> | </translate> | ||
{{Commands | {{Commands | ||
|singularity exec qiime2- | |singularity exec qiime2-2021.11.sif <your QIIME command> | ||
}} | }} | ||
Line 59: | Line 47: | ||
singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ | singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ | ||
-B /projects/someuser/path/to/inputs:/inputs qiime2- | -B /projects/someuser/path/to/inputs:/inputs qiime2-2021.11.sif \ | ||
qiime tools import --type 'FeatureData[Sequence]' \ | qiime tools import --type 'FeatureData[Sequence]' \ | ||
--input-path /inputs/some_fastafile.fa \ | --input-path /inputs/some_fastafile.fa \ | ||
Line 65: | Line 53: | ||
singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ | singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ | ||
-B /projects/someuser/path/to/inputs:/inputs qiime2- | -B /projects/someuser/path/to/inputs:/inputs qiime2-2021.11.sif \ | ||
qiime tools import \ | qiime tools import \ | ||
--type 'FeatureData[Taxonomy]' \ | --type 'FeatureData[Taxonomy]' \ | ||
Line 73: | Line 61: | ||
singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ | singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ | ||
-B /projects/someuser/path/to/inputs:/inputs qiime2- | -B /projects/someuser/path/to/inputs:/inputs qiime2-2021.11.sif \ | ||
qiime feature-classifier fit-classifier-naive-bayes \ | qiime feature-classifier fit-classifier-naive-bayes \ | ||
--i-reference-reads /outputs/some_output_feature.qza \ | --i-reference-reads /outputs/some_output_feature.qza \ | ||
Line 94: | Line 82: | ||
{{Commands | {{Commands | ||
|export TZ{{=}}'UTC' | |export TZ{{=}}'UTC' | ||
|singularity exec qiime2- | |singularity exec qiime2-2021.11.sif qiime tools import ... | ||
}} | }} | ||
<translate> | <translate> | ||
=References = <!--T:11--> | =References = <!--T:11--> | ||
Revision as of 18:41, 7 February 2022
QIIME (pronounced chime) stands for Quantitative Insights Into Microbial Ecology, is an open-source bioinformatics pipeline for performing microbiome analysis from raw DNA sequencing data. QIIME is designed to take users from raw sequencing data generated on Illumina or other platforms to publication-quality graphics and statistics. This includes demultiplexing and quality filtering, OTU picking, taxonomic assignment, phylogenetic reconstruction, diversity analyses and visualizations. QIIME has been applied to studies based on billions of sequences from tens of thousands of samples.
Note: QIIME 2 has replaced QIIME 1 as of January 1, 2018; version 1 is no longer supported.
Note: As of February, 2020, due to various issues generated by Conda environments in our HPC systems, installation using Anaconda or Miniconda is no longer supported.
Installation
QIIME2 can be installed using Singularity or using EasyBuild. Singularity is strongly preferred since it does not generate many thousands of files in your home directory, potentially causing you to exceed the disk quota limit on the number of files.
Using Singularity
The QIIME2 developers publish images on Docker Hub. In order to use one of these images on our systems you must first build a Singularity image:
[name@server ~]$ module load singularity
[name@server ~]$ singularity build qiime2-2021.11.sif docker://quay.io/qiime2/core:2021.11
This build step may take over an hour, but you only need to do this once. Save the image file (qiime2-2021.11.sif
in this example) for later re-use.
Then run your code as described at Singularity. Typically you will run each QIIME command in a singularity exec
statement:
[name@server ~]$ singularity exec qiime2-2021.11.sif <your QIIME command>
So your SBATCH script might look something like this:
#!/bin/bash #SBATCH --time=15:00:00 #SBATCH --account=def-someuser singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ -B /projects/someuser/path/to/inputs:/inputs qiime2-2021.11.sif \ qiime tools import --type 'FeatureData[Sequence]' \ --input-path /inputs/some_fastafile.fa \ --output-path /outputs/some_output_feature.qza singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ -B /projects/someuser/path/to/inputs:/inputs qiime2-2021.11.sif \ qiime tools import \ --type 'FeatureData[Taxonomy]' \ --input-format HeaderlessTSVTaxonomyFormat \ --input-path /inputs/some_taxonomy_file.tax \ --output-path /outputs/some_output_ref-taxonomy.qza singularity exec -B $PWD:/home -B /scratch/someuser:/outputs \ -B /projects/someuser/path/to/inputs:/inputs qiime2-2021.11.sif \ qiime feature-classifier fit-classifier-naive-bayes \ --i-reference-reads /outputs/some_output_feature.qza \ --i-reference-taxonomy /outputs/some_output_ref-taxonomy.qza \ --o-classifier /outputs/some_output_classifier.qza
Note that it is important to use the bind option (-B) with each folder you want to work with when you run programs in your container. For more information about Singularity, you can watch the recorded Singularity webinar.
On first importing data into QIIME format you may receive an error ending with a message like this:
Timezone offset does not match system offset: 0 != -18000. Please, check your config files.
This can be worked around by setting a time zone before invoking Singularity:
[name@server ~]$ export TZ='UTC'
[name@server ~]$ singularity exec qiime2-2021.11.sif qiime tools import ...