PetraQ 0 Posted February 6, 2018 Hi,I'm interested in re-processing some BAS tag data anotated previously with BAS software in FLightR.I would be very grateful if anybody can help me with this question:Has anybody used some function/script to read the .lig and .trn files generated previously with BAS software to the TAGS format? Thank you very much! Petra Share this post Link to post Share on other sites
L Halpin 0 Posted February 7, 2018 Hi Petra, You should be able to import .lig files using the readLig command in the package TwGeos For processing this might help: https://www.rdocumentation.org/packages/FLightR/versions/0.4.5/topics/BAStag2TAGS Share this post Link to post Share on other sites
PetraQ 0 Posted February 7, 2018 Hi, thank you, but unfortunately this is not the solution to my question, as I also need to import the annotation (.trn) files, and there is no function for this. I would like to use the same annotation as before, to compare the outputs based on the same criteria, and without spending long times annotating previous datasets again. Cheers, Petra Share this post Link to post Share on other sites
L Halpin 0 Posted February 8, 2018 To the best of my knowledge, you can't open .trn files or other previously defined twilights, in the the various functions that define twilights. I have always had to go back in and redefine them. However, someone else may have a better response. This twilight-free method may be of interest, but I haven't tested it on any of my data yet: http://onlinelibrary.wiley.com/doi/10.1111/2041-210X.12953/abstract Share this post Link to post Share on other sites
PetraQ 0 Posted February 8, 2018 Hi, thank you, I found it, it works like this: library(GeoLight)transitions <- trnTrans("MK10_21510_Reconstructed_000.trn")raw <- ligTrans("MK10 21510 Reconstructed_000.lig")library(FLightR)GeoLight2TAGS(raw=raw, gl_twl=transitions, threshold=10, filename = "prion21510.csv")Prion.data<-get.tags.data("prion21510.csv") cheers, Petra Share this post Link to post Share on other sites