Skip to content

Instantly share code, notes, and snippets.

@atuleu
Created June 15, 2020 19:16
Show Gist options
  • Save atuleu/d6e7ddd8ca88abfb927c5275316f6749 to your computer and use it in GitHub Desktop.
Save atuleu/d6e7ddd8ca88abfb927c5275316f6749 to your computer and use it in GitHub Desktop.
#FortMyrmidon How to create tag automatically for Ants
library(fortMyrmidon)
e <- fmExperimentOpen("filename.myrmidon")
ts <- fmQueryComputeTagStatistics(e)
for ( i in seq(1,length(ts))) {
a <- e$createAnt()
e$addIdentification(a$antID(),ts[i]$TagID,fmTimeInf(),fmTimeInf())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment