# Remove.lineage gets stuck on alignreport file

**URL:** <https://forum.mothur.org/t/remove-lineage-gets-stuck-on-alignreport-file/22075>\
**Category:** Uncategorized\
**Created:** [February 23, 2024, 11:06am UTC](https://forum.mothur.org/t/remove-lineage-gets-stuck-on-alignreport-file/22075 "2024-02-23T11:06:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.bernt](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@m.bernt](https://forum.mothur.org/u/m.bernt)\
**Post date:** [February 23, 2024, 11:06am UTC](https://forum.mothur.org/t/remove-lineage-gets-stuck-on-alignreport-file/22075/1 "2024-02-23T11:06:17Z")

</div>

I’m running the following

```auto
remove.lineage(taxonomy=file.taxonomy.dat,taxon='Bacteria;Firmicutes;-Bacteria;Actinobacteria;',fasta=fasta_in.dat,group=group_in.dat,alignreport=alignreport_in.dat,list=list_in.dat,name=name_in.dat,dups=true)

```

where `alignreport_in.dat` points to this file [tools-iuc/tools/mothur/test-data/Mock\_S280\_L001\_R1\_001\_small.contigs.report at 08fc71363fdec7c4ff2c912e1f85dab4ea306c43 · bernt-matthias/tools-iuc · GitHub](https://github.com/bernt-matthias/tools-iuc/blob/08fc71363fdec7c4ff2c912e1f85dab4ea306c43/tools/mothur/test-data/Mock_S280_L001_R1_001_small.contigs.report)

Then I get gigabytes of the following message

```auto
[WARNING]: M00967_43_000000000-A3JHG_1_1101_19936_3208 is in your alignreport file more than once. Mothur requires sequence names to be unique. I will only add it once.

```

I guess the format of the file is wrong, but mothur should still not fail in this way.

Background, I’m currently trying to work on updating the mothur Galaxy tool wrappers.

Edit: just retried with an up to date alignreport file (which has 1 more column) with the same effect. Also noticed that the header has one additional tab character at the end.

xref [remove.lineage gets stuck on alignreport file · Issue #848 · mothur/mothur · GitHub](https://github.com/mothur/mothur/issues/848)

---

<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:** [February 27, 2024, 6:52pm UTC](https://forum.mothur.org/t/remove-lineage-gets-stuck-on-alignreport-file/22075/2 "2024-02-27T18:52:59Z")

</div>

I don’t know anything about what galaxy has loaded since we don’t work with them. Can you retry without including the alignreport argument?

Pat

---

<div class="post-metadata">

**Author:** ![m.bernt](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@m.bernt](https://forum.mothur.org/u/m.bernt)\
**Post date:** [February 28, 2024, 9:48am UTC](https://forum.mothur.org/t/remove-lineage-gets-stuck-on-alignreport-file/22075/3 "2024-02-28T09:48:44Z")

</div>

Thanks for the reply. Without the alignreport the command executes successful in less then a second.

The Galaxy tool uses a conda environment for executing the mothur command (and it just executes the single command).

The file names mentioned above are pointing to the following files:

- file.taxonomy.dat: `abrecovery.pds.wang.taxonomy`
- fasta\_in.dat `abrecovery.fasta`
- group\_in.dat: `abrecovery.groups`
- alignreport\_in.dat: `Mock_S280_L001_R1_001_small.contigs.report`
- list\_in.dat: `amazon.an.list`
- name\_in.dat: `abrecovery.names`

Those files can be found at [tools-iuc/tools/mothur/test-data at 08fc71363fdec7c4ff2c912e1f85dab4ea306c43 · bernt-matthias/tools-iuc · GitHub](https://github.com/bernt-matthias/tools-iuc/tree/08fc71363fdec7c4ff2c912e1f85dab4ea306c43/tools/mothur/test-data)

Let me know if I can make it easier for you to reproduce the problem, e.g. a zip file with all the files and a command line.

---

<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:** [March 7, 2024, 1:40pm UTC](https://forum.mothur.org/t/remove-lineage-gets-stuck-on-alignreport-file/22075/4 "2024-03-07T13:40:24Z")

</div>

Thanks - I’d just leave out the align report. mothur doesn’t use it for much of anything

Pat
