美文网首页
如何计算序列间的种内和种间遗传距离 How to Calcula

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

作者: 雨林课堂 | 来源:发表于2019-09-29 09:37 被阅读0次

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;

 

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

Tools: Excel, SpeciesIdentify in TaxonDNA

使用数组公式 使用excel数组公式

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;

step 4. Draw scatter diagram.

The x-coordinate is Max-intra distane,The y-coordinateMin-inter distance.


相关文章

网友评论

      本文标题:如何计算序列间的种内和种间遗传距离 How to Calcula

      本文链接:https://www.haomeiwen.com/subject/mkriyctx.html