Patch the resolution function
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
/man/
|
/man/
|
||||||
|
.Rproj.user
|
||||||
|
@@ -7,8 +7,8 @@ NULL
|
|||||||
resolution = function(taxonomy,ecopcr) {
|
resolution = function(taxonomy,ecopcr) {
|
||||||
l = aggregate(ecopcr$taxid,
|
l = aggregate(ecopcr$taxid,
|
||||||
by=list(barcode=ecopcr$sequence),
|
by=list(barcode=ecopcr$sequence),
|
||||||
function(x) lowest.common.ancestor(taxo,x))
|
function(x) lowest.common.ancestor(taxonomy,x))
|
||||||
r = taxonomicrank(taxo,l$x)
|
r = taxonomicrank(taxonomy,l$x)
|
||||||
names(r)=as.character(l$barcode)
|
names(r)=as.character(l$barcode)
|
||||||
|
|
||||||
return(r[as.character(ecopcr$sequence)])
|
return(r[as.character(ecopcr$sequence)])
|
||||||
|
Reference in New Issue
Block a user