Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lovely environment management with conda and ma...
Search
Akihiro Kuno
June 14, 2022
Programming
0
120
Lovely environment management with conda and mamba🥰
Presentation in Tsukuba Bioinfo Assembly at 2022-06-14.
URL:
https://tinyurl.com/tba-2022-06-14
Akihiro Kuno
June 14, 2022
Tweet
Share
Other Decks in Programming
See All in Programming
Hack Claude Code with Claude Code
choplin
6
2.4k
Result型で“失敗”を型にするPHPコードの書き方
kajitack
5
990
効率的な開発手段として VRTを活用する
ishkawa
0
160
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
330
Claude Code + Container Use と Cursor で作る ローカル並列開発環境のススメ / ccc local dev
kaelaela
12
6.8k
#QiitaBash MCPのセキュリティ
ryosukedtomita
1
1.5k
AIともっと楽するE2Eテスト
myohei
8
2.9k
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
820
Flutterで備える!Accessibility Nutrition Labels完全ガイド
yuukiw00w
0
170
20250708_JAWS_opscdk
takuyay0ne
2
120
なぜ「共通化」を考え、失敗を繰り返すのか
rinchoku
1
670
AI時代の『改訂新版 良いコード/悪いコードで学ぶ設計入門』 / ai-good-code-bad-code
minodriven
23
9.1k
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Site-Speed That Sticks
csswizardry
10
700
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
Speed Design
sergeychernyshev
32
1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
7
330
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Designing for Performance
lara
610
69k
Transcript
Lovely environment management with conda and mamba🥰 condaとmambaで快適!環境構築🥰
Who am I? Akihiro Kuno MD,Ph.D 久野 朗広 👪 Child-rearing
and houseworking 💼 Assist Prof at Anatomy and Embryology 🖥 Shellscript😍, R😊, Python😑 💡 Software development, Nanopore, Genome editing https:!/github.com/akikuno あなた誰よ?
Today's contents Lovely environment management with conda and mamba
Today's contents Lovely environment management with conda and mamba
One day, you find an awesome tool ある日、あなたは良さげなソフトウェアを見つけました • This
plot looks cool😍 • The tool is available on GitHub https:!/github.com/shenlab-sinai/ngsplot • Install and try it! https:!/doi.org/10.1186/1471-2164-15-284
Error!!.😱 なんで動かんの??(ガチギレ) Traceback (most recent call last): File "<stdin>", line
1, in <module> NameError: name 'xrange' is not defined. Did you mean: 'range'?
Python 2.7 is required!!. 開発終わっとるやんけ… *Python 2 is no longer
supported as of Jan 1st, 2020. https:!/github.com/shenlab-sinai/ngsplot
You need multiple Python versions 同じソフトウェアで複数のバージョンを持ちたい! Daily usage🙂 Deep learning🤖
Legacy tools👻 Py2.7 Py3.8 Py3.10 → → → You have three environments in this example
Virtual environment 仮想環境 🚫 One machine, One environment Py3.10 Py3.8
Py2.7 🆗 Virtual environment Py3.8 Py2.7 Py3.10 →
Today's contents Lovely environment management with conda and mamba
conda creates multiple environments!! condaで複数の環境が作れる! Py2.7 Py3.8 Py3.10 → →
→ conda create -n env1 python=3.10 conda create -n env2 python=3.8 conda create -n env3 python=2.7
Why I love conda?😻 1. Easy and simple commands 2.
Bioinformatics tools are available 3. R and Bioconductor are supproted 4. Jupyter compatibility なぜconda推し?😻
1. Easy and simple commands condaでよく使うコマンド # create environment named
as tba conda create !-name tba # activate the environment conda activate tba # install packages into the environment conda install wget # delete environment conda deactivate !& conda remove !-name tba !-all 👉 Short hands-on
2. Bioconda provides bioinfo tools Biocondaでバイオインフォツールのインストール conda config !-add channels
defaults conda config !-add channels bioconda conda config !-add channels conda-forge # install bioinformatics tools conda install fastqc bwa samtools (https:!/bioconda.github.io/user/install.html) Bioconda's paper 👉 https:!/www.nature.com/articles/s41592-018-0046-7
3. R and Bioconductor packages R関係のパッケージもインストールできます # install R conda
install r-base r-essentials # install R packages conda install r-tidyverse r-seurat # install Bioconductor packages conda install bioconductor-biostrings
4. Jupyter compatibility Jupyterの起動も可能 conda create -n tba_jpy3.8 python=3.8 jupyterlab
conda create -n tba_jpy3.10 python=3.10 jupyterlab conda activate tba_jpy3.8 !& jupyter lab & conda activate tba_jpy3.10 !& jupyter lab 👉 Short hands-on
mamba is a superior alternative conda's drawback is too SLOW😭
mamba is an ultra-fast conda🚅💨 https:!/github.com/mamba-org/mamba mambaはcondaの上位互換(*個人の感想です)
mamba's main commands mambaでよく使うコマンド mamba create -n tba # create
environment mamba install wget # install pkgs mamba remove -n tba !-all ※ Use {conda activate} to activate environment
Speed comparison between conda and mamba mambaとcondaで速度対決 👉Google Colab
If you are interested in conda/mamba お試しくださいませ • Install conda
• https:!/docs.conda.io/en/latest/miniconda.html • Windows User: WSL2 is highly recommended • https:!/docs.microsoft.com/en-us/windows/wsl/install • Install mamba (and bioconda) conda config !-add channels defaults conda config !-add channels bioconda conda config !-add channels conda-forge conda install mamba # !> Enjoy your coding!!🍻
Thanks for listening!! Any Questions?😋