DADA2-MergePairs problem

Hello!
I am using DADA2 in Galaxy France with collections for the R1 and R2 files. I encountered an failed error at the "MergePairs" step:

*Error in FUN(X[[i]], ...) : *

  • Non-corresponding derep-class and dada-class objects.*
    Calls: mergePairs -> lapply -> FUN
    Execution halted

This error is because the file arrangement is different between the "FilterandTrim" collections and the collections in the "dada" step. I believe the "dada" step uses hierarchical organization, while the "FilterandTrim" collection is arranged as they were uploaded to the platform.
Is there a solution to ensure the file arrangement is consistent across all collections so I don’t run into problems at the "MergePairs" step?

This is the link to the history if it's useful: https://usegalaxy.fr/u/ouizamesguida/h/its

Thank you so much :slight_smile:

Hello,
There are a few tips in this tutorial :

, including the section entitled Hands-on:
Organizing our data into a sorted paired collection , which should be of interest to you.

Best Regards,