Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
snacktavish committed May 31, 2018
1 parent 5214565 commit 5d15da4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions scripts/graphical_rep.R
Expand Up @@ -8,10 +8,8 @@ traits <- sqData[,2]
species<-sub("'","",sqData[,1])
species<-sub("'","",species)
names(traits)<-species
fitER<-fitDiscrete(sqTree, traits,model="ER")

mtree<-make.simmap(sqTree,traits,model="ER")
mtree<-make.simmap(sqTree,traits,model = matrix(c(0, 0.00000001, 0.00000001, 0), 2))
plot(fitER)
sqTree.label
sqTree
tre2<- drop.tip(sqTree, '1_9_schweinfurtii')
mtree<-make.simmap(tre2, traits, model = matrix(c(0, 0.00000001, 0.00000001, 0), 2))
plot(mtree,cols,type="fan",fsize=0.7,ftype="i")
add.simmap.legend(colors=cols,prompt=FALSE,x=0.9*par()$usr[1],
y=0.8*par()$usr[3],fsize=0.8)
1 change: 1 addition & 0 deletions scripts/otu_tidy.py
Expand Up @@ -46,6 +46,7 @@
new_label = "{}_{}".format(taxname,status)
i = 0
while new_label in new_names:
i += 1
new_label = "{}{}".format(i, new_label)
new_names.add(new_label)
taxon.label = new_label
Expand Down

0 comments on commit 5d15da4

Please sign in to comment.