NeurodataWithoutBorders / nwb-guide

NWB GUIDE is a desktop app that provides a no-code user interface for converting neurophysiology data to NWB.
https://nwb-guide.readthedocs.io/
MIT License
22 stars 4 forks source link

[Known limitation]: Cannot upload NWB files with linked video file #608

Open alinaxiao2 opened 8 months ago

alinaxiao2 commented 8 months ago

Describe the issue Hi, I converted a video file in ".avi" format to nwb using NWB GUIDE. However, I cannot upload it. The error message is " --update-external-file-paths option not specified but found external video files linked to the nwbfiles"

To Reproduce

Expected behavior

Screenshots

Operating system used: Windows 10

Additional context In the inspector Report, there's a warning message that says "the external file 'C;/Users/.../.avi' is not a relative path. Please adjust the absolute path to be relative to the location of the NWBFile". Is this the problem blocking the upload? How can it be resolved?

CodyCBakerPhD commented 8 months ago

Thanks for the report; we don't yet support the automatic DANDI upload together with the video interface yet, sorry about that.

The Inspector checks are also something we're aware of from #550, but still working on the approach to fix them; not to worry in any case, they don't actually affect the DANDI upload process.

Good news is, if you're comfortable with using a terminal with Python installed, you can still complete the DANDI upload process yourself on the files you created using the classic command-line approach. If you didn't override the default conversion output folder at the first step of the pipeline, then your NWB files can be found in the home directory of the GUIDE under the 'conversions' subfolder.

Just follow these instructions and add some flags to the dandi organize step (--update-external-file-paths and --media-files-mode symlink (if that errors, try changing the mode to 'copy' instead)

If you're comfortable installing GUIDE using the developer instructions just let us know and we can ask you to help test this when we try to fix it

bendichter commented 6 months ago

Here is a post outlining how to upload .avi files to DANDI: https://www.dandiarchive.org/2022/03/03/external-links-organize.html