如何计算序列间的种内和种间遗传距离

How to Calculate the Max-intra and Min-inter Distance distribution?

 

Installation

To install this package, start R (version "4.0") and enter:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("DECIPHER")

For older versions of R, please refer to the appropriate Bioconductor release.

step 1.     Prepare the distance matrix.

Tool: DistanceMatrix In DECIPHER (R package)

  • library(DECIPHER)
  • DNAStringSet=readDNAStringSet("S:/xxx.txt")
  • a= DistanceMatrix(DNAStringSet,
  •               type = "matrix",
  •               includeTerminalGaps = FALSE,
  •               penalizeGapLetterMatches = FALSE,
  •               penalizeGapGapMatches = FALSE,
  •               correction = "none",
  •               processors = NULL,
  •               verbose = TRUE)
  • write.csv(a, file = "S:/xxxxxxx.csv")

 

step 2.     Search the intra- and inter Distances of all sequences

Tool: Excel

 

  •   Use MAXIF and MINIF formula to get intra- and inter Distances for each sequence,公式请使用数组公式;

 HowtoCalculatetheMax-intraandMin-interDistancedistributionto(如何计算序列间的种内和种间遗传距离)


HowtoCalculatetheMax-intraandMin-interDistancedistributionto(如何计算序列间的种内和种间遗传距离)
 

step 3.     Search Max-intra and Min-inter Distances for every species

Tools: Excel, SpeciesIdentify in TaxonDNA

 

  •  Use Species Summary Function to get species name list;
  • Use VLOOKUP formula to search Max-intra and Min-inter distance for every species (Notice that use Species name list as Lookup_value,and sort the previous intra- and inter Distances results by descending and scending to get the final maximum and minimum results;

HowtoCalculatetheMax-intraandMin-interDistancedistributionto(如何计算序列间的种内和种间遗传距离)

HowtoCalculatetheMax-intraandMin-interDistancedistributionto(如何计算序列间的种内和种间遗传距离)

 

HowtoCalculatetheMax-intraandMin-interDistancedistributionto(如何计算序列间的种内和种间遗传距离)
 

step 4.     Draw scatter diagram.

HowtoCalculatetheMax-intraandMin-interDistancedistributionto(如何计算序列间的种内和种间遗传距离)
The x-coordinate is Max-intra distane, The y-coordinate Min-inter distance.
  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

雨林课堂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值