[R-sig-phylo] paste() hangs R

2017-10-31 Thread Andreas Kolter
If I paste() a huge DNAbin alignment (by accident) (as in: 250MB object size with 15 sequences) R Studio hangs and can not be closed or aborted (Esc key). I have to Crtl+Strg+Del force quit the process. ___ R-sig-phylo mailing list -

Re: [R-sig-phylo] Removing columns containing "N" in DNA alignment

2017-10-30 Thread Andreas Kolter
Dear Vojtech, my code snippet works, and the other solutions were also correct. The problem is with your alignment. Your 3rd sequence only contains N's, therefore whatever approach you use, all coloumns are filtered out if you filter all coloumns containing N. Please open your alignment in a

Re: [R-sig-phylo] Removing columns containing "N" in DNA alignment

2017-10-27 Thread Andreas Kolter
Hello V. Because you speak of columns I assume you are handling an alignment, right? If you handle an alignment all sequences have the same length and you can do as.matrix Like this? library(magrittr) #maximum number of n's thresh <- 0.005 #0.5% seq <- as.matrix(seq) temp <- seq %>%

[R-sig-phylo] REST API CIPRES

2017-05-08 Thread Andreas Kolter
Dear list members, I was wondering if somebody already tried (or knows somebody who did) using R to access CIPRES using the RESTful API? I think it's a great solution for people with limited resources. https://www.phylo.org/restusers/docs/guide.html#SampleCode Best wishes, Andreas

Re: [R-sig-phylo] subset DNAbin

2016-09-05 Thread Andreas Kolter
Hello Kirston, try this: x <- read.fas("example.fasta") y <- x[grep("1011",rownames(x)),] Greetings, Andreas Am 2016-09-05 08:07, schrieb Kirston Barton: Hi, I have my data in a fasta file and am importing it into R using read.dna, which creates a DNAbin matrix object. I would like to subset

Re: [R-sig-phylo] Associated r created graphs or external images with specific nodes on a phylogeny

2016-05-13 Thread Andreas Kolter
Hello Chris, you could check out ggtree, especially "Advanced Tree Annotation" from Bioconductor. It accepts many ggplot objects and lets you put them on the nodes plus many more cool things. Cheers, Andreas Am 2016-05-11 20:43, schrieb Chris Buddenhagen: Is there a way to quickly associate a