Giter Club home page Giter Club logo

trackr's People

Contributors

ax3man avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

digideskio

trackr's Issues

Optimize collapse_identities.

For a large number of trials, with many mistakes, this function takes a long time. Have a look at data.table::foverlaps.

Turn

Hi,
I downloaded your package and as I was going through it using your example data I came across this error:

Error in get(as.character(FUN), mode = "function", envir = envir) :
object 'turn' of mode 'function' was not found

I have installed all the mentioned packages with the library function, and followed every single step you posted, also tried doing it all with my data but it still shows the same error, could you help me?

Thank you!
Ari

add_defaults_to_dots needs improvement

It should recognize when .dots are not function calls, and ideally should also fill in defaults for more complex expressions than single function calls.

Trial names may be bugged.

In some cases it appears that reading in single files or many files gives different outputs for some trials. Might be related only to plotting. Check Simons email.

summarize should check for existing columns?

d <- read_Ctrax(file = 'C:/Users/Wouter/Desktop/simon_test.csv')
d <- as_tracks(d, 30, '1080')
d <- mutate_(d, sp = speed())
d <- summarize(d, m = mean(sp, na.rm = TRUE))
d <- summarize(d, m = mean(sp, na.rm = TRUE))
d$trial

Trackr automatically compile information from different trials

The package is automatically combining data from different trials into one trial. I have realized that the way that I have named the files is causing this problem. For instance, I have several individuals from the same treatment which I have named XXXX1.1.csv; XXXX1.2.csv; XXXX1.3.csv, and the tracks from these individuals are then combined in the data as only one track. I have renamed the files using a numerical sequence and this problem disappear.

I attach an example with 9 files that get combined into only 6 tracks using the following code:

files<-list.files(startingDir, pattern="csv")
dat <- read_Ctrax(files, type = 'fixed')
tr <- as_tracks(dat, frame_rate = 30)
plot(tr)

tracktest.zip

Thanks!

Error on Ctrax csv files saved in European Locale.

I have tried to read a large amount of Ctrax .csv files into tracker but I get an error message:

Error in names(x) <- do.call(paste0, as.list(new.names)) :
'names' attribute [6] must be the same length as the vector [1]

I can read multiple files using the same procedure with a small subset of these same files. Therefore, I assume that some of the .csv files that I provide must be incorrect, but currently is not possible to know which one is wrong without going back to the .csv files one by one. Is it possible to add that information to the error message?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.