# When to combine data from two batches?

**URL:** <https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191>\
**Category:** Theory behind mothur\
**Created:** [July 25, 2024, 10:28pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191 "2024-07-25T22:28:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericalg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/ericalg/32/413_2.png) [@ericalg](https://forum.mothur.org/u/ericalg)\
**Post date:** [July 25, 2024, 10:28pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/1 "2024-07-25T22:28:31Z")

</div>

Hello! I’m sorry if this has been answered, I looked across the forum first and couldn’t find something quite the same. I submitted 2 plates for 6S V4 community profiling at the UMich microbiome core a few months apart. I (mostly) randomized my samples across the two plates and also included two samples in both plates to test for batch effects. I was wondering at one point in the mothur pipeline should I pool my data? Should I pool all the fastq files together in one folder before make.file()? Or should I process them separately until “assessing error rates”, then remove the mock groups from each and then combine them for analysis using merge.files()? Thank you so much!

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [July 30, 2024, 1:03pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/2 "2024-07-30T13:03:42Z")

</div>

Hi Erica,

It would be best to pool the samples at the make.file/make.contigs step. Doing it later - like at seq.error - will likely have the problem that the alignments have been filtered differently and won’t be compatible.

Pat

---

<div class="post-metadata">

**Author:** ![ericalg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/ericalg/32/413_2.png) [@ericalg](https://forum.mothur.org/u/ericalg)\
**Post date:** [July 30, 2024, 6:01pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/3 "2024-07-30T18:01:22Z")

</div>

Thank you so much!!!

---

<div class="post-metadata">

**Author:** ![ericalg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/ericalg/32/413_2.png) [@ericalg](https://forum.mothur.org/u/ericalg)\
**Post date:** [August 1, 2024, 2:42am UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/4 "2024-08-01T02:42:51Z")

</div>

Hi, I tried doing this but unfortunately mothur keeps timing out during make.contigs, I think because I have so many samples (186). It runs for about 3 hours and then it just says “killed” with no error. So, I am going to do the make.contigs and some subsequent steps in 2 batches. Do you have a suggestion for where I should re-combine the files? Would a good place be, after “unique.seqs” and before “preclustering” in the MiSeq protocol? And if so, would I use merge.files()? Thank you very much!

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [August 1, 2024, 1:36pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/5 "2024-08-01T13:36:27Z")

</div>

Hmmm, that’s not really too many samples. Are you requesting enough time on the cluster? Have you looked at the mothur logfile to see if there’s a more meaningful error message? Alternatively, is there a problem with your files file?

If that doesn’t work, I’d merge the files as soon as possible like right after make.contigs using merge.files.

Pat

---

<div class="post-metadata">

**Author:** ![ericalg](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/ericalg/32/413_2.png) [@ericalg](https://forum.mothur.org/u/ericalg)\
**Post date:** [August 1, 2024, 3:15pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/6 "2024-08-01T15:15:29Z")

</div>

Okay, I figured it out and it was not a mothur issue, it was a problem with connecting to the computing core and allocating my job! When I figure out the correct thing to do I’ll post it here for future people with related issues. Thank you Pat!!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/system/32/2_2.png) [@system](https://forum.mothur.org/u/system)\
**Post date:** [August 11, 2024, 3:15pm UTC](https://forum.mothur.org/t/when-to-combine-data-from-two-batches/22191/7 "2024-08-11T15:15:36Z")

</div>

Closed on August 11, 2024, 3:15pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
