# remove.groups - number of seqs removed from fasta when a names file is included

**URL:** https://forum.mothur.org/t/remove-groups-number-of-seqs-removed-from-fasta-when-a-names-file-is-included/3060
**Category:** mothur bugs
**Created:** [December 6, 2016, 2:21am UTC](https://forum.mothur.org/t/remove-groups-number-of-seqs-removed-from-fasta-when-a-names-file-is-included/3060 "2016-12-06T02:21:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dr\_Nezar](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@Dr\_Nezar](https://forum.mothur.org/u/Dr_Nezar)
#### Post date: [December 6, 2016, 2:21am UTC](https://forum.mothur.org/t/remove-groups-number-of-seqs-removed-from-fasta-when-a-names-file-is-included/3060/1 "2016-12-06T02:21:04Z")

</div>

Hi,  
The remove.groups command removes different number of sequences from the fasta file when a .names file is included. This is an example:

When a .names file is not included  
mothur \> remove.groups(fasta=MCM.final5.fasta, group=MCM.final5.groups, groups=C1-C7-C25-N10-N22)

[WARNING]: This command can take a namefile and you did not provide one. The current namefile is MCM.final5.pick.names which seems to match MCM.final5.fasta.  
Removed 8300 sequences from your fasta file.  
Removed 427773 sequences from your group file.

Output File names:  
MCM.final5.pick.fasta  
MCM.final5.pick.groups

When a .names file included  
mothur \> remove.groups(fasta=MCM.final5.fasta, name=MCM.final5.names, group=MCM.final5.groups, groups=C1-C7-C25-N10-N22)

Removed 427773 sequences from your name file.  
Removed 7588 sequences from your fasta file.  
Removed 427773 sequences from your group file.

  
I am nor sure if this is a bug or I am wrong somewhere!

Regards

  
Nezar Al-hebshi

---

<div class="post-metadata">

### Author: ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)
#### Post date: [December 9, 2016, 2:58pm UTC](https://forum.mothur.org/t/remove-groups-number-of-seqs-removed-from-fasta-when-a-names-file-is-included/3060/2 "2016-12-09T14:58:48Z")

</div>

Could you send your input files to [mothur.bugs@gmail.com](mailto:mothur.bugs@gmail.com)?
