I have tried uploading several .bam datafiles, but for some reason they cannot be detected as the bam datatype (and therefore not used in my workflow). I’ve tried manually setting the datatype to bam both before and after uploading the files. But it gives me the error ‘An error occurred setting the metadata for this dataset. Set it manually or retry auto-detection’. Both of these options gave a similar error. The datasets look like the image. I have uploaded .bam files before and it was never an issue. The only difference is that these bamfiles were generated from .cram files. I’m quite novel to working with these datatypes, so hope I’ve given all the information needed to help me with this issue. How can I make sure they are detected as proper bamfiles?
Thanks a lot for the help!
Try this: check the file content before Upload to Galaxy. Try converting
sam format with
Samtools. You could also try sorting the
bam. If it fails for you locally, then it would fail in Galaxy.
Or, try this: directly Upload the
cram data to Galaxy. Most tools do not directly use
cram format, but you can convert
bam in Galaxy with the tool
For either, try letting the
Upload tool auto detect the format first. If that doesn’t work, you can assign the datatype instead (during Upload – not sure if you tried that already for the
bam or not).
I’m also not exactly sure how good we are at auto detecting
cram format right now… but I’ll test that later today or tomorrow since am now curious. If any usage deviates from the above – I’ll post back.
It would be best to do this at the UseGalaxy.org or UseGalaxy.org.au server right now. The UseGalaxy.eu server is undergoing some admin changes this week, and some odd behavior is expected until the banner clears. It is easier to troubleshoot without complicating factors.