Skip to content

Instantly share code, notes, and snippets.

@mutolisp
mutolisp / PatchYun.ino
Last active August 29, 2015 14:07 — forked from sgk/PatchYun.ino
#include <Process.h>
void setup() {
Bridge.begin();
Serial.begin(9600);
while (!Serial)
;
Serial.print("Patching...");
setwd("/Users/easss/Desktop/RRTbatch/")
library(ape)
library(pegas)
# list file in current directory, where the file is end with .phy
filelist <- list.files(path=".", pattern=".phy$")
# create a container to store output data
out_tab <- matrix(0, nrow=length(filelist), ncol=3)
colnames(out_tab) <- c("dna_seq", "Chi", "Pval")