Understanding set.seed in R: Ensuring Reproducibility in Data Analysis
Vložit
- čas přidán 29. 06. 2024
- Have you ever wondered what set.seed() does in R? What is it used for? Ever wondered why your UMAP or t-SNE appears different everytime you run it?
In this video I have demonstrated 2 quick examples to explain how set.seed() can be used to make your code reproducible.
I hope you find this video helpful! Leave your thoughts in the comment section below!
▸ Link to Data:
www.10xgenomics.com/resources...
▸ Link to Code:
github.com/kpatel427/CZcamsT...
Chapters:
0:00 Intro
1:44 Example 1: Generating same set of random numbers
3:06 Example 2: Ensuring identical UMAP plot after every run
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 #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
Thank you so much for such a wonderful explanation. This was my first time visiting your channel, and I found some very interesting and important topics that may be helpful as I'm a biostatistics student. It's very difficult to find any topics related to biostatistics on CZcams, so I found your channel best suited for me.
Thanks, i didn't understood before seeing this video that we need to run set.seed every time before a random generation, i thought 1 time was enought at the begenning of the code
are there any rules for choosing a seed? can I use any number I like as a seed as long as I use the same seed every time?
what is the significance of intital seed value used (123).
It looks this is just showing how a seed valued used in the UMAP package