Multivariate D-Square statistics in R/Tocher method of clustering for genetic diversity assessment

Поділитися
Вставка
  • Опубліковано 6 лют 2025

КОМЕНТАРІ • 139

  • @Guruprasad_A
    @Guruprasad_A  3 роки тому

    Check the script in the description.....

  • @Guruprasad_A
    @Guruprasad_A  3 роки тому

    Hi, everyone don't hesitate to ask your doubts here...... I will try to answer them.

    • @prawalpsverma4903
      @prawalpsverma4903 Рік тому

      Sir Please tell me how to make image of inter cluster and intra cluster

  • @bandhanthapa7982
    @bandhanthapa7982 Рік тому +1

    Thank you for the video , it was really informative and simple to execute 😇😇

  • @minhalsheikh6335
    @minhalsheikh6335 5 місяців тому

    Ma Shaa Allah your videos are to much informative

  • @PlantBreeding_is_my_passion
    @PlantBreeding_is_my_passion 3 роки тому +1

    very good hard work and wonderful video thanks bro

  • @shivangitare7102
    @shivangitare7102 Рік тому

    sir, what is the script for find out the cluster mean value from tocher method

  • @asingh9317
    @asingh9317 7 місяців тому

    Kindly suggest when no. Of genotypes are less than no. Of traits, these codes are not giving results. It gave best results when genotypes were either more in number or equal to no. of observations.

    • @Guruprasad_A
      @Guruprasad_A  7 місяців тому

      Not soo, i think.

    • @asingh9317
      @asingh9317 7 місяців тому

      @@Guruprasad_A can we work for less no of genotypes and more observed traits?? If so then I have to check my data

    • @Guruprasad_A
      @Guruprasad_A  7 місяців тому

      @@asingh9317 Sure, but inorder to study we need more genotypes.

    • @asingh9317
      @asingh9317 7 місяців тому

      @@Guruprasad_A got it...thanks alot🍁🍁

  • @snehasivasubramani5345
    @snehasivasubramani5345 6 місяців тому

    I have an doubt. In manova I cannot get the results. It shows there are more variables ie..26

    • @Guruprasad_A
      @Guruprasad_A  6 місяців тому

      Check the name of replicates in genotypes or confirm in the code whether you the selected genotypes variable correctly.

  • @jaybabariya141
    @jaybabariya141 3 роки тому +1

    Thank you for this amazing video. I have one doubt that how to find cluster mean table using R ?

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      If the output was in list. we can use the aggregate function (refer last part of my cluster analysis video), unfortunately it's not in list. so it's difficult to use aggregate function because we need to create list manually and it takes more time, so add an extra columns before genotypes and fill it with cluster membership (1,2,3. .......) Whatsoever for you and sort them based on cluster membership Column and calculate mean by adding a extra row at the end of each cluster.

  • @vijaydunna8088
    @vijaydunna8088 Рік тому

    Dear The Outlier, Thank you for the very good video. I am facing a problem. The total number of clusters formed using this code is only 2. While the same data was analysed using windowstat the number of clusters are 25. why this difference?

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      In both the methods also you are getting 2 clusters.

    • @vijaydunna8088
      @vijaydunna8088 Рік тому

      @@Guruprasad_A yes both tocher and modified tocher

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      Can you able to check distance matrix sir, whether both are some or not.

    • @niharikadhuliya6219
      @niharikadhuliya6219 Рік тому

      ​@@Guruprasad_A hii

  • @thomasmuse583
    @thomasmuse583 Рік тому

    is it possible to analyze over location lattice design experiment using the explained script?

  • @nehabelsariya5898
    @nehabelsariya5898 Рік тому

    Thank you so much sir for this video. I would like to ask you about the diagram of tocher method?? How can we make that?

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      We can't make it, it won't be that much appropriate because it's not a hierarchical method of clustering

    • @nehabelsariya5898
      @nehabelsariya5898 Рік тому

      @@Guruprasad_A how you make last in video. diagram of 169 genotype by tocher method

  • @minhalsheikh6335
    @minhalsheikh6335 5 місяців тому

    Sir how to create the cluster distances in cluster diagram

    • @Guruprasad_A
      @Guruprasad_A  5 місяців тому

      For Mahalanobis D square stats we won't get clusters diagram.

  • @vikramana7796
    @vikramana7796 9 місяців тому

    Sir can you explain elaborately, how to do cluster means

    • @Guruprasad_A
      @Guruprasad_A  9 місяців тому

      Group them individually / seperate the groups in different Excel sheet then take average.

  • @deepikachandrasekaran3554
    @deepikachandrasekaran3554 Рік тому

    Sir, in the R software while doing linear discriminant analysis, it is showing that figure margin is too large. Is there any solution?

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      Try taking out one variable at a time and re do analysis until u find out the variable which might be that error…

    • @deepikachandrasekaran3554
      @deepikachandrasekaran3554 Рік тому

      @@Guruprasad_A Thank you sir, will try and let u know....

    • @deepikachandrasekaran3554
      @deepikachandrasekaran3554 Рік тому

      @@Guruprasad_A Sir I tried the method u said, but the same error is happening, it is showing plot.new (): figure margins too large

  • @mahidargowd3432
    @mahidargowd3432 Рік тому

    Bro how to plot the dendrogram we are getting the clusters na how to plot them can we get that process

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      Dendrogam is not possible with tocher method.

  • @yellankinaveen2496
    @yellankinaveen2496 2 роки тому

    Error in model.frame.default(formula = dv ~ as.factor(genotype) + as.factor(Repl), :
    variable lengths differ (found for 'as.factor(genotype)')
    In addition: Warning message:
    In xtfrm.data.frame(x) : cannot xtfrm data frames
    >
    i am facing this error
    place help to solve this problem

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      That error is because, the number of genotypes and replications are not same.
      Check some of them might be missing

    • @yellankinaveen2496
      @yellankinaveen2496 2 роки тому

      @@Guruprasad_A sir i am beginner in the Programming can you tell me how to read the error

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      @@yellankinaveen2496 check if all the genotypes and replications are present are not

  • @rounakkumar6259
    @rounakkumar6259 Рік тому

    How to draw dendogram after modified tocher method ..plse help

  • @aswathiap5592
    @aswathiap5592 2 роки тому

    Just a doubt..Can we do univariate analysis for clustering when we have n number of genotypes studied for say m number of traits?

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      Univariate = one variable,
      Multivariate = Multiple or more than one variable,
      In our context,
      Variable = Trait.

  • @aswathiap5592
    @aswathiap5592 3 роки тому

    Sir, I'm getting error in D2.dist step. I did as said in video but I'm getting error saying dimension is incompatible, I have 12 characters and 18 genotypes, please help...

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      I think there is a problem with number of variables, which you have considered for calculating variance and covariance matrix and the number of variables in average data.

    • @aswathiap5592
      @aswathiap5592 3 роки тому

      Thank you

  • @khushwantb.choudhary8157
    @khushwantb.choudhary8157 2 роки тому

    how can we do D2 of two environment data (as pooled)/ for example control and drought environment, i want to calculate d2 clustering for pooled data involving both the envs. Kindly tell me.

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      Check this out once in STAR, PB tools.
      There we may get an option.

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      It's better to do it separately for both environment.

  • @truongphu7407
    @truongphu7407 3 роки тому

    Thanks author to deliver a valuable video, could you tell me how to create Fig.3 (Inter cluster and intra cluster distance...) in the end of the clip? Thanks again

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      Imagine you have got 5 no of clusters then draw Pentagon which will be having 5 sides at intersection you have to draw a circle so totally 5 circles, later label the 5 circles serially within them mention the intra cluster distance. Later connect all the circles then for example on the line which connects the 5th and 3rd circle (which represents inter cluster distance between 3rd and 5th cluster) mention inter cluster distance between 3rd and 5 th cluster in the same way do this inbetween other circles.

    • @truongphu7407
      @truongphu7407 3 роки тому

      @@Guruprasad_A Thanks for your prompt reply. Did you mean we need to create manually?

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      Yup

    • @sourabhkumar1285
      @sourabhkumar1285 2 роки тому

      @@truongphu7407 How to create manually?

  • @s.husain6125
    @s.husain6125 2 роки тому

    Hello sir code workig till covar calculation but when i run imp

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      It means there is a lot of correlation in the variables of your dataset. Please check the correlation among the variables and try to remove those variables..
      For example you find correlation in days to first flower and days to fifty percent flowering etc...

  • @s.husain6125
    @s.husain6125 2 роки тому

    How to generate dendrogram using tochers method in r studio sir

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      Cluster diagram is not possible in this package

  • @sukumartaria3582
    @sukumartaria3582 2 роки тому

    Can we get p- value of each cluster based on mahalanobis distance or can we get p-value of each cluster in LDA analysis?? If yes put the code

  • @akshatahattiholi8016
    @akshatahattiholi8016 Рік тому

    Hello sir...
    Sir i didnt get how to find cluster means...can u explain me sir??

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      Need to calculate manually, by seperating clusters in an Excel sheet.

    • @akshatahattiholi8016
      @akshatahattiholi8016 Рік тому

      Sir, Separating clusters means: of single trait the genotypes present in the one cluster have to take the average ???

    • @Guruprasad_A
      @Guruprasad_A  Рік тому

      Add one more column to data mention the cluster number, then sort according to cluster number and take average.

    • @akshatahattiholi8016
      @akshatahattiholi8016 Рік тому

      Ok sir...got it...Thank you sir...

  • @amitrana734
    @amitrana734 2 роки тому

    Sir can you suggest how i can make cluster diagram using any other software if not possible in R. Please also tell how i can make tocher based dendrogram in R

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      You can use window stat software if you have it

  • @s.husain6125
    @s.husain6125 2 роки тому

    How to analyse D square with 2 year of data of fied trail sir

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      Take multiple year data as replication.

  • @dibsohbordoloi7952
    @dibsohbordoloi7952 3 роки тому

    Sir I have found error in code manova calculating part, the r studio showed error in is.factor(x) 'Genotype' not found

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      Is there any missing genotypes ?
      Please do check the name of genotype column in your dataset ?

  • @saujanbashyal1247
    @saujanbashyal1247 3 роки тому

    Isn't it necessary to scale the data?
    I think we should scale both dv matrix and averaged data frame

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому +1

      Calculating paired Mahalonobis distance is kind of scaling only.

    • @saujanbashyal1247
      @saujanbashyal1247 3 роки тому

      @@Guruprasad_A
      Will it be valid if i use:
      mod

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому +1

      As per the information what I got from the original author, I did made this video. I hope you follow what I have shown in video

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому +1

      I hope this helps you to understand scanning is as good as calculating Mahalonobis distance stats.stackexchange.com/questions/210155/mahalanobis-distance-and-feature-scaling
      towardsdatascience.com/mahalonobis-distance-and-outlier-detection-in-r-cb9c37576d7d

  • @rakeshgowda7982
    @rakeshgowda7982 2 роки тому

    The video was very clear. I have one error while executing the code summary(mod), and it was "Error in summary.manova(mod) : residuals have rank 3 < 8", can you please help me in rectifying this error.

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому +1

      stackoverflow.com/questions/39412865/error-in-summary-manova-residuals-have-rank-order-deficiency

  • @thepandemics5614
    @thepandemics5614 3 роки тому +2

    I used to visualise clustering using cytoscape......just try this.....

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      Ok

    • @SonuLangaya
      @SonuLangaya 2 роки тому +1

      Hi, Is there any introductory tutorial on the same. Like how it is done in Cytoscape.

    • @thepandemics5614
      @thepandemics5614 2 роки тому

      ​@@SonuLangaya well just installs Cytoscape and transforms the matrix according to individual interaction. directly fetch the file and you will find the tocher graph according to inter and intra values

  • @sukumartaria3582
    @sukumartaria3582 2 роки тому

    Any R code for plotting cluster diagrams with the Tocher method?

  • @saujanbashyal1247
    @saujanbashyal1247 3 роки тому

    Can we define the number of clusters in tocher's method? I am getting 3 clusters but if i want 4 clusters, how would i do that?

  • @bhumikasinghlodhi6632
    @bhumikasinghlodhi6632 2 роки тому

    thanks for the video.
    I am getting error after executing manova command,
    Error in `[[

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      I think it's a problem with your dataset or you might have mis selected the variables.

    • @bhumikasinghlodhi6632
      @bhumikasinghlodhi6632 2 роки тому

      @@Guruprasad_A I have check the data many times but couldn't get the mistake. can you help me in finding the mistake

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      @@bhumikasinghlodhi6632Send the dataset, I am quite busy as of now, but I will try to clarify it by next Wednesday.

    • @bhumikasinghlodhi6632
      @bhumikasinghlodhi6632 2 роки тому

      Please provide me your email

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому +1

      gthings1597@gmail.com

  • @maramakashreddy6819
    @maramakashreddy6819 3 роки тому

    Sir, help me to solve this error
    Error in is.factor(x) : object 'Genotypes' not found

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      Check the name of genotypes column in Excel sheet and confirm that same as mentioned in R studio also.
      Remember R is case sensitive

    • @maramakashreddy6819
      @maramakashreddy6819 3 роки тому

      Both are same sir even though it is showing the same error

    • @senaitlegesse1709
      @senaitlegesse1709 2 роки тому

      how to f ix this problem please i got same probllem

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      Check the name of the genotypes column what is there in Excel and in our video they have to be same.

    • @mysterious9718
      @mysterious9718 2 роки тому

      How did you solve that sir.. Even I have the same error though everything is perfect...

  • @jaybabariya141
    @jaybabariya141 3 роки тому

    Hello sir, I found error in summary.manova(mod) : residuals have rank 17 < 18
    I have 18 characters. Please suggest what does that mean? And what I have to do ?

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      stackoverflow.com/questions/39412865/error-in-summary-manova-residuals-have-rank-order-deficiency

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      Read the above article.

  • @dibsohbordoloi7952
    @dibsohbordoloi7952 2 роки тому

    Sir how we draw the diagram of tochers clustering diagram please help me

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      In this package we can't generate a cluster diagram.

    • @dibsohbordoloi7952
      @dibsohbordoloi7952 2 роки тому

      @@Guruprasad_A is there any package sir

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      @@dibsohbordoloi7952 Nope, as per my knowledge

  • @sasipriyas3012
    @sasipriyas3012 3 роки тому

    Sir, can you please share how to do the analysis without replicated data ( augmented design)

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      We can't do tocher method of clustering for non replicated data.

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому +1

      Try Ward min variance method insted, as shown in my cluster analysis video

    • @sasipriyas3012
      @sasipriyas3012 3 роки тому +1

      Thank you sir 👍

    • @RamendraSarma
      @RamendraSarma 3 роки тому

      @@Guruprasad_A why Ward minimum variance method

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому +1

      @@RamendraSarma It's subjective you can use any other methods such as average, complete etc... But most often used method is ward minimum variance method when it comes to hierarchical clustering in genetic diversity studies using morphological data.

  • @prawalpsverma4903
    @prawalpsverma4903 Рік тому

    Where is as.factor function ?

    • @Guruprasad_A
      @Guruprasad_A  11 місяців тому

      It's built in base r package.

  • @sathyarajdurai394
    @sathyarajdurai394 2 роки тому

    Cluster mean is where? Bro

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      You have to calculate manually by grouping the varieties or treatments separately based on their clusters identity in an excel sheet.

  • @gayatrikumawat6703
    @gayatrikumawat6703 2 роки тому

    please mention code for last cluster diagram

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      We can't get a cluster diagram in this package. But for the last diagram which depicts inter and intra cluster distance we need to create manually in
      Microsoft power point.

  • @sasipriyas3012
    @sasipriyas3012 2 роки тому

    sir, can you make a video on metroglyph analysis

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      As of now I am busy with my course work, I look into it later.

  • @Guruprasad_A
    @Guruprasad_A  2 роки тому

    Use “~” tilde not the “-” after dv~

  • @rnsarma8876
    @rnsarma8876 3 роки тому

    can you share the codes?

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому +1

      Sure give me your email I D

    • @Guruprasad_A
      @Guruprasad_A  3 роки тому

      or Just send me a message to gthings1597@gmail.com

  • @dgeethanjali7177
    @dgeethanjali7177 2 роки тому

    Please can you send codes

  • @basazinewdegu4181
    @basazinewdegu4181 2 роки тому

    Thank you Sir for this very important video. I have got a problem while I was doing my data on percentage contribution. The error said:
    Error in solve.default(cov) : system is computationally singular: reciprocal condition number = 1.54415e-19
    How can I amend/correct it? Please, give me your valuable comment.

    • @Guruprasad_A
      @Guruprasad_A  2 роки тому

      It's seems your data is having too much correlation between the variables, please reduce it and see.

    • @basazinewdegu4181
      @basazinewdegu4181 2 роки тому

      @@Guruprasad_A Thank you very much!

    • @stardust2419
      @stardust2419 2 роки тому

      @@Guruprasad_A how to rectify that?