User: Klaus S

gravatar for Klaus S
Klaus S100
Reputation:
100
Status:
Trusted
Location:
Last seen:
3 months, 3 weeks ago
Joined:
3 years, 8 months ago
Email:
k************@gmail.com

Posts by Klaus S

<prev • 5 results • page 1 of 1 • next >
2
votes
1
answer
193
views
1
answers
Answer: A: prunning posterior distribution of trees in R
... `keep.tip` from ape and `lapply` should do the job: library(ape) trees <- .uncompressTipLabel(trees) trees <- lapply(trees, keep.tip, trait_names) trees class(trees) <- "multiPhylo" trees <- .compressTipLabel(trees) Here `trees` is a `multiPhylo` object (you c ...
written 5 months ago by Klaus S100
2
votes
1
answer
411
views
1
answers
Answer: A: Calculate distance matrix from nucleotide alignment with multiple IUPAC ambiguit
... The function `dist.ml` in the R package phangorn handles ambiguity characters like they are handled in ML optimisation. library(phangorn) dat <- read.phyDat("msa.fas", format="fasta) dist.ml(dat, model = "F81", exclude = "none") ...
written 5 months ago by Klaus S100
2
votes
2
answers
376
views
2
answers
Answer: A: Adding branch lengths to a topology
... You can do it in R >library(phangorn) >dat <- read.phyDat("your_file.fas", format = "fasta") # read in data >ntip <- length(dat) >tree <- stree(ntip, tip.label = names(Laurasiatherian)) # create star tree >tree$edge.length <- rep(. ...
written 7 months ago by Klaus S100 • updated 6 months ago by genomax74k
0
votes
1
answer
2.7k
views
1
answers
Answer: A: Phylogenetics in R: obtaining internal branch lengths
... If you would have looked in the help of `read.tree`, you will find: ... Value an object of class "phylo" with the following components: edge a two-column matrix of mode numeric where each row represents an edge of the tree; the nodes and the tips are symbolized with numbers; the tips are numb ...
written 3.5 years ago by Klaus S100
4
votes
3
answers
3.5k
views
3
answers
Answer: A: R phangorn phylogenetic analysis from somatic mutations' binary table
... Hello Alejandro, There are generic functions `as.phyDat()` in phangorn to transform matrices and data.frames into phyDat objects. For example you can read in your data with `read.table()` or `read.csv()`, but you might need to transpose your data. For matrices `as.phyDat()` assumes that the entri ...
written 3.7 years ago by Klaus S100 • updated 14 months ago by RamRS24k

Latest awards to Klaus S

Scholar 7 months ago, created an answer that has been accepted. For A: R phangorn phylogenetic analysis from somatic mutations' binary table
Scholar 3.7 years ago, created an answer that has been accepted. For A: R phangorn phylogenetic analysis from somatic mutations' binary table
Teacher 3.7 years ago, created an answer with at least 3 up-votes. For A: R phangorn phylogenetic analysis from somatic mutations' binary table

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1771 users visited in the last hour