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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Akihiro Kuno
June 14, 2022
Programming
0
130
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
Raku Raku Notion 20260128
hareyakayuruyaka
0
360
Package Management Learnings from Homebrew
mikemcquaid
0
230
並行開発のためのコードレビュー
miyukiw
0
1.1k
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.4k
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
230
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
630
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
480
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
730
今から始めるClaude Code超入門
448jp
8
9.1k
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
460
Featured
See All Featured
Abbi's Birthday
coloredviolet
1
4.8k
Un-Boring Meetings
codingconduct
0
200
Six Lessons from altMBA
skipperchong
29
4.2k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
57
HDC tutorial
michielstock
1
390
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
ラッコキーワード サービス紹介資料
rakko
1
2.3M
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
Rails Girls Zürich Keynote
gr2m
96
14k
Building an army of robots
kneath
306
46k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
260
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?😋