MiGA Manual
AboutCodebaseMiGA Online
Primary version
Primary version
  • Introduction
  • Part I: What is MiGA?
    • How can MiGA help me?
    • Who is using MiGA?
    • Who is behind MiGA?
    • Definitions
  • Part II: Getting started
    • Requirements
      • Using Homebrew
      • Using apt-get
      • Using Conda
      • Installing from source
      • MyTaxa Utils
    • Installation
    • MiGA types
    • Input data
    • Distances
    • Clustering
  • Part III: Interfaces
    • MiGA API
    • MiGA CLI
    • MiGA Web
  • Part IV: Deploying examples
    • RefSeq in MiGA
    • Build a clade collection
    • Launching daemons
    • Setting up MiGA in a cluster
  • Part V: Additional details
    • Advanced configuration
    • MiGA workflow
    • Metadata
    • External Software
  • Part VI: Workflows
    • Quality
    • Dereplicate
    • Classify
    • Preprocess
    • Index
    • Summaries
Powered by GitBook
On this page
  • Live notebook
  • Note for MacOS users
  • Essentials
  • SolexaQA
  • R packages
  • MyTaxa utils
  1. Part II: Getting started
  2. Requirements

Using Conda

PreviousUsing apt-getNextInstalling from source

Last updated 4 years ago

You can use to install most of the Software required by MiGA. If you don't have Conda, you can follow the .

Live notebook

If you prefer to see code in action, the full installation process with conda is available as a .

Note for MacOS users

The bioconda fastani recipe currently depends on packages that force downgrading other important packages (including R). This can cause some issues, and we're currently recommending the use of whenever possible. If this is not an option for you, a good alternative might be to install FastANI from source instead of using conda. Finally, you could use the instructions below, if the risk of employing old libraries outweights the burden of installation.

Essentials

Now that you have Conda, activate it. If you want to create a separate clean environment (optional) you can simply execute:

conda create -y -n miga python=3.7
conda activate miga

It's strongly recommended to activate conda in the ~/.miga_modules:

# Tell MiGA to activate the proper conda environment:
echo 'eval "$(conda shell.bash hook)" && conda activate miga' > ~/.miga_modules

Next, install the requirements:

conda install -y -c conda-forge r-base r
conda install -y --strict-channel-priority -c conda-forge ruby
conda install -y sqlite openjdk
conda install -y -c conda-forge -c bioconda -c faircloth-lab \
  scythe blast hmmer bedtools prodigal idba mcl barrnap \
  fastqc diamond krona fastani

SolexaQA

Unzip that file, and locate the appropriate binary in a folder listed in your $PATH.

R packages

The full list of R packages is automatically installed by MiGA. However, we will install one package here to make sure everything is properly initialized.

Rscript -e "install.packages('ape', repos = 'http://cran.rstudio.com/')"

MyTaxa utils

There is a version of SolexaQA in conda, but the recipe forced downgrading R and is only available for Linux. Therefore, a safer option is to obtain the precompiled binaries directly from the developers .

If you want to activate the and steps, follow the instructions to install the .

conda
Installation instructions
Notebook in Google Collab
Homebrew
here
MyTaxa
MyTaxa Scan
MyTaxa Utils