ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
32 stars 21 forks source link

Mismatch between movebank study and information shown #15

Closed vestlink closed 7 years ago

vestlink commented 7 years ago

When i log using the movebank login feature in the import data pane it lists correctly the studies where i am data manager, but the infomartion fetched from movebank is wrong and the data cannot be downloaded.

movebank login
vestlink commented 7 years ago

error message from RStudio:

Error in fread(res$res_cont, sep = ",", nrows = 5) : Expected sep (',') but new line, EOF (or other non printing character) ends field 0 when detecting types from point 0: License Terms: These data have been published by the Movebank Data Repository with DOI

xhdong-umd commented 7 years ago

@vestlink I added this feature but have no way to test it since either me or Chris are not data manager of any study in movebank.

I saw the details of study seemed to be another study "16615296 (EBD) Lesser Kestrels" instead of the one you selected. If you don't use the check box "data manager", can you select the study you want and download the detail correctly?

And is there more error message in the console?

xhdong-umd commented 7 years ago

@vestlink , I did some change to the code and updated the repo. Can you test if it works now?

As for the download failure of the study(it tried to download another study but failed), that's pretty common. A lot of studies in movebank don't have downloadable data. I asked them to add some variable to filter the studies with data accurately, and they are looking at it. The API response for study details often didn't reflect the real reason, see the help page (help button in this page) for details.

You can always click the blue button "open in movebank" to verify the detail of the study directly.

vestlink commented 7 years ago

I'll give it a go

vestlink commented 7 years ago

The study details are correct but the data is still the lesser kestrel.

When searching for my study i get no result, only when ticking off "Only show I'm data manager".

Could be a mis match in movebank.

I could lend you my login credentials for you to use during the development of this app. If it is ok with movebank policy...

xhdong-umd commented 7 years ago

@vestlink Can you try again? It should be fixed now.

I spent a lot of time on the movebank download feature, but in the end the downloaded data only have some core columns, not as complete as the csv from web site. This may cause some problems in the analysis later.

I also asked movebank to provide a direct download of the csv file.

vestlink commented 7 years ago

works fine now 👍