kristinbranson / APT

Animal Part Tracker
GNU General Public License v3.0
71 stars 16 forks source link

Deeplabcut files into APT then to JAABA #409

Open NicoleStrathclyde opened 1 year ago

NicoleStrathclyde commented 1 year ago

Hi,

I'm very new to using matlab and coding software for behavioural data analysis. I am trying to measure grooming behaviour in mice using JAABA. I know JAABA needs .lbl files and APT can generate them, however I had been using deeplabcut to track my videos and it works really well so wanted to use this tracking. I have read quite a lot of the comments and found people were managing to import DLC csvs to APT but I am not sure exactly how to do this. I have seen simple lines ofdifferent lines of code such as "APT.setpath; createFromDeeplabcut('/path/to/dlc/traindir/info.csv')" But have typed this into matlab and just get an error. I have tried another longer code (see screenshots) and this didnt work either so I am not sure if I am just using them wrong (apologies for my lack of experience) but would someone be able to explain if Im using the right codes and how to use them.

capture 4 Capture Capture2 Capture3

mkabra commented 1 year ago

Hi,

In the Capture 2 image, you need to replace '/path/to/dlc/traindir/info.csv' with the actual path to your local deeplabcut csv. The path will depend upon what settings you had used when training deeplabcut tracker.

Also, note that you'll have to retrain a new tracker in APT. It only imports the labels.

Mayank


From: NicoleStrathclyde @.> Sent: Thursday, March 9, 2023 10:13 PM To: kristinbranson/APT @.> Cc: Subscribed @.***> Subject: [kristinbranson/APT] Deeplabcut files into APT then to JAABA (Issue #409)

External Email: Use Caution

Hi,

I'm very new to using matlab and coding software for behavioural data analysis. I am trying to measure grooming behaviour in mice using JAABA. I know JAABA needs .lbl files and APT can generate them, however I had been using deeplabcut to track my videos and it works really well so wanted to use this tracking. I have read quite a lot of the comments and found people were managing to import DLC csvs to APT but I am not sure exactly how to do this. I have seen simple lines ofdifferent lines of code such as "APT.setpath; createFromDeeplabcut('/path/to/dlc/traindir/info.csv')" But have typed this into matlab and just get an error. I have tried another longer code (see screenshots) and this didnt work either so I am not sure if I am just using them wrong (apologies for my lack of experience) but would someone be able to explain if Im using the right codes and how to use them.

[capture 4]https://urldefense.com/v3/__https://user-images.githubusercontent.com/122691599/224092389-6a33ebcc-0804-48a3-971c-e77bff60ced1.PNG__;!!Eh6p8Q!HMwO6Qh6pKwoLEW0VvI5CWSmt8sQTRjJxvoVUgqlENaCGpvad9MMqAMUyJ0HBMXb_nslGxq26Y3G3YpJ6MlJOJmPUUs$ [Capture]https://urldefense.com/v3/__https://user-images.githubusercontent.com/122691599/224092397-b9ff35d0-4606-4f5f-9326-1f8147edffa6.PNG__;!!Eh6p8Q!HMwO6Qh6pKwoLEW0VvI5CWSmt8sQTRjJxvoVUgqlENaCGpvad9MMqAMUyJ0HBMXb_nslGxq26Y3G3YpJ6MlJCD6S_Zg$ [Capture2]https://urldefense.com/v3/__https://user-images.githubusercontent.com/122691599/224092400-e63b4f64-b53f-456c-b0b4-22acaeae58d3.PNG__;!!Eh6p8Q!HMwO6Qh6pKwoLEW0VvI5CWSmt8sQTRjJxvoVUgqlENaCGpvad9MMqAMUyJ0HBMXb_nslGxq26Y3G3YpJ6MlJCJyTQJQ$ [Capture3]https://urldefense.com/v3/__https://user-images.githubusercontent.com/122691599/224092402-41cee378-5c49-4dda-9978-63b340709a35.PNG__;!!Eh6p8Q!HMwO6Qh6pKwoLEW0VvI5CWSmt8sQTRjJxvoVUgqlENaCGpvad9MMqAMUyJ0HBMXb_nslGxq26Y3G3YpJ6MlJgYaBlas$

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/kristinbranson/APT/issues/409__;!!Eh6p8Q!HMwO6Qh6pKwoLEW0VvI5CWSmt8sQTRjJxvoVUgqlENaCGpvad9MMqAMUyJ0HBMXb_nslGxq26Y3G3YpJ6MlJUtymcno$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAJNKY4HHFZO5PACNYBVNM3W3ICBPANCNFSM6AAAAAAVVLKJBA__;!!Eh6p8Q!HMwO6Qh6pKwoLEW0VvI5CWSmt8sQTRjJxvoVUgqlENaCGpvad9MMqAMUyJ0HBMXb_nslGxq26Y3G3YpJ6MlJJx0qF4o$. You are receiving this because you are subscribed to this thread.Message ID: @.***>