Demystifying Conda (Anaconda, Miniconda and Bioconda) and Virtual Environments

  Рет қаралды 5,858

Bioinformagician

Bioinformagician

Күн бұрын

Today, we're diving into a topic that every developer, data scientist, or a bioinformatician has experienced at some point: the dreaded installation errors for conflicts due to package versions and dependency nightmare.
In this video, I'll walk you through the basics of setting up Conda and Renv. I talk about what's with the different condas - Anaconda, Miniconda and Bioconda. I'll show you how to create environments, install packages, and effortlessly switch between them. It's a game-changer for your coding and pipeline development journey!
I hope you find this video helpful! Leave your thoughts in the comment section below!
▸ Link to Code:
github.com/kpatel427/KZbinT...
▸ Resources:
1. conda installation instructions: conda.io/projects/conda/en/la...
2. conda channels and priorities: angus.readthedocs.io/en/2019/...
3. Python virtual envs: / python-virtual-environ...
4. renv documentation: rstudio.github.io/renv/articl...
Chapters:
0:00 Intro
0:51 What are virtual environments?
2:13 What is conda?
5:15 What’s with different condas - Anaconda, Miniconda and Bioconda?
7:15 renv vs conda
9:33 Demonstration goals and requirements
10:23 conda installation instructions
12:24 conda channels and priorities
13:44 Search for conda packages
14:36 base environment in conda
15:48 Checking local versions of the tools and searching for required conda packages
18:13 Create virtual environment in conda
22:03 Export environment to a YAML file (.yml file)
23:21 Create a conda environment from a YAML file
23:37 Why having a centralized location for all packages is problematic for analysis in R?
26:43 Creating R projects and using renv within projects
34:06 Sharing renv - save package version information to a .lock file
You can show your support and encouragement by buying me a coffee:
www.buymeacoffee.com/bioinfor...
To get in touch:
Website: bioinformagician.org/
Github: github.com/kpatel427
Email: khushbu_p@hotmail.com
#bioinformagician #bioinformatics #conda #anaconda #bioconda #miniconda #renv #virtualenv #virtualenvironment #yamlfile #yaml #affy #affymetrix #10x #alleles #bam #rprogrammingforbeginners #rprojects #setseed #reproducibility #pseudorandom #singleR #singlecell #annotationdbi #reversestranded #directstranded #strandedness #survival #survminer #survivalanalysis #kaplanmeier #tcga #gdcportal #tcgaportal #nci #cran #bioconductor #funcotator #variantcalling #variants #gatk #vcf #gvcf #haplotype #alleles #geneticvariants #mutations #gff3 #gff #gtf #sam #bam #phred #fasta #fastq #singlecell #10X #ensembl #biomart #annotationdbi #annotables #affymetrix #microarray #affy #ncbi #genomics #beginners #tutorial #howto #omics #research #biology #GEO #rnaseq #ngs

Пікірлер: 19
@kedar_ghimire
@kedar_ghimire 10 күн бұрын
this was really helpful for a non-bioinformatic researcher like me to understand whats going on. Especially the parts where you showed command by command to create two environments. Most of the youtube videos overestimate the programming skills of non-bioinformaticians and forget that it is them who watch these videos. Also, i like how you explain everything without missing even the minor stuff :D thanks
@ncedilemankahla9758
@ncedilemankahla9758 7 ай бұрын
Great timing on this video. I’m just getting started working in Conda and renv.. keep up the excellent work
@5602KK
@5602KK 7 ай бұрын
Great to have this as a resource
@PsycheSnacks657
@PsycheSnacks657 7 ай бұрын
Always wonderful! Thank you
@sonunitjsr223
@sonunitjsr223 4 ай бұрын
Very useful
@ramachandran8106
@ramachandran8106 7 ай бұрын
Useful video lesson.. 👍 Please upload GWAS data analysis..
@bahatilouch7420
@bahatilouch7420 4 ай бұрын
Great video and thank you for the tutorial! Would it be possible to make a tutorial about Virtual machines, cloud computing systems and docker? Thank you so much again!
@islamalmsarrhad2152
@islamalmsarrhad2152 Ай бұрын
Thanks
@quinattasneemrafique536
@quinattasneemrafique536 5 ай бұрын
Is it feasible to make a detailed overview on how to construct a Metagenomics pipeline?
@paulcantalupo-nv1490
@paulcantalupo-nv1490 7 ай бұрын
Thank you for the video. Very helpful. One suggestion though...your subtitles are blocking the code that you are trying to show. Thank you again.
@AndrewBlakeOxford
@AndrewBlakeOxford 7 ай бұрын
Renv linked the packages from your cache rather than installing them from fresh - this process won't be as quick for others who haven't already use renv to install them previously and hence won't be present in the renv cache . Your script would benefit from having the renv activate and restore code at the start else when you share it the project won't load and restore the environment. Great video - love your channel.
@Bioinformagician
@Bioinformagician 7 ай бұрын
You're absolutely right that when sharing a project, it's crucial to consider how the environment is set up for others who may not have previously used renv. Having renv activate and restore at the start is crucial. I'll update my script accordingly. Thank you for pointing that out!
@funnyarian
@funnyarian 6 ай бұрын
But, there is that .Rprofile file that redirects to renv/activate.R which activates renv at the start? what's the reason to have it in the script?
@AndrewBlakeOxford
@AndrewBlakeOxford 6 ай бұрын
Yeah we saw that too, we end up having to debug renv quite a bit when it starts being tricky so having the discrete steps in code makes it easier to re run/ double check etc. We also run R out into continuous integration gitlab dockers and wanted to be sure that each step is being run but you could probably get rid of the activate step and let it take take of itself.
@kamalhasan-lg1fl
@kamalhasan-lg1fl 7 ай бұрын
mam, i have installed conda, when i give conda show channels, bioconda is not installed , it is showing conda script py error
@user-fc2wo8fd6f
@user-fc2wo8fd6f 6 ай бұрын
Can you do a video on how to install cell ranger on linux?
@phoenix-xf1yk
@phoenix-xf1yk 7 ай бұрын
Mam can you please guide me on how to install ascend
@palakgupta8728
@palakgupta8728 6 ай бұрын
hi are you still working as a scientist also at some lab?
@Israel-nw4ci
@Israel-nw4ci 6 ай бұрын
P R O M O S M 😘
Anaconda (Conda) for Python - What & Why?
26:10
Academind
Рет қаралды 218 М.
Survival analysis with TCGA data in R | Create Kaplan-Meier Curves
43:50
Bioinformagician
Рет қаралды 15 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 13 МЛН
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 327 М.
Creating a conda Environment for Pytorch and Cuda
11:50
Alex Soupir
Рет қаралды 11 М.
Stop using pip! Use Conda instead! (Miniconda introduction)
23:23