Skip to content

Commit

Permalink
bug fix webhack
Browse files Browse the repository at this point in the history
  • Loading branch information
VascoElbrecht committed Aug 30, 2017
1 parent b46cba8 commit fc3be5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JAMP/R/BOLD_web_hack.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ temp <- data[OTU_start[i]:OTU_end[i]]
OTU <- sub("Query: (.*) ", "\\1", data[OTU_start[i]])

if(temp[5]=="Unable to match any records in the selected database. "){
temp_tab <- data.frame(Phylum, Class, Order, Family, Genus, Species, Similarity, Status, stringsAsFactors=F)
temp_tab <- data.frame("Phylum"=NA, "Class"=NA, "Order"=NA, "Family"=NA, "Genus"=NA, "Species"=NA, "Similarity"=NA, "Status"=NA, stringsAsFactors=F)
write.csv(temp_tab, paste("OTUs/", OTU, ".csv", sep=""), row.names=F)
} else {

Expand Down

0 comments on commit fc3be5f

Please sign in to comment.