Understanding set.seed in R: Ensuring Reproducibility in Data Analysis

Sdílet
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

Komentáře • 6

  • @harshvishwakarma4785
    @harshvishwakarma4785 Před 3 měsíci

    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.

  • @simonjarrier5955
    @simonjarrier5955 Před 4 měsíci

    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

  • @yuxinhu4764
    @yuxinhu4764 Před 9 měsíci

    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?

  • @shatadrupalable
    @shatadrupalable Před 10 měsíci

    what is the significance of intital seed value used (123).

  • @nancyyan7365
    @nancyyan7365 Před 8 měsíci

    It looks this is just showing how a seed valued used in the UMAP package