# Keep Largest Fragment?

**URL:** <https://forum.knime.com/t/keep-largest-fragment/3493>\
**Category:** Community Extensions\
**Tags:** cdk\
**Created:** [January 9, 2014, 6:27pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493 "2014-01-09T18:27:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduece99](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eduece99](https://forum.knime.com/u/eduece99)\
**Post date:** [January 9, 2014, 6:27pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493/1 "2014-01-09T18:27:11Z")

</div>

Hi,

&nbsp;

I've noticed that in all of the KNIME chemoinformatics stuff, the only thing that exists that removes fragments is the RDKit Salt Stripper.&nbsp; Whilst I've found this useful, it does require you to define salts when the pre-defined ones are not wanted.

&nbsp;

A simple node that removes the smallest fragment (or keeps the largest fragment) in a "molecule" would be great.&nbsp; I'm somewhat surprised this hasn't been implemented in one of the APIs before (though I post this in the CDK library as I rely on CDK slightly more than the other 2).

&nbsp;

Thanks in advance,  
Ed.

---

<div class="post-metadata">

**Author:** ![Stephan](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@Stephan](https://forum.knime.com/u/Stephan)\
**Post date:** [January 9, 2014, 6:53pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493/2 "2014-01-09T18:53:21Z")

</div>

Hi Ed,

does the "ConnectivityChecker" suit your purposes? It has an option to keep only the largest fragment. Otherwise we simply add what you need. :)

Cheers,

Stephan

---

<div class="post-metadata">

**Author:** ![richards99](https://forum-cdn.knime.com/user_avatar/forum.knime.com/richards99/32/48547_2.png) [@richards99](https://forum.knime.com/u/richards99)\
**Post date:** [January 9, 2014, 7:10pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493/3 "2014-01-09T19:10:27Z")

</div>

Ther are the indigo nodes as well which will split out the fragments to leave the largest. Without the need to give a predefined list.

thanks,

simon.

---

<div class="post-metadata">

**Author:** ![eduece99](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eduece99](https://forum.knime.com/u/eduece99)\
**Post date:** [February 5, 2014, 2:35pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493/4 "2014-02-05T14:35:21Z")

</div>

Hi, sorry for long reply, I only just noticed there were replies!

&nbsp;

richards99 - Are you referring to the Component Separator node?

Stephan - Ah right, I didn't notice that node before!&nbsp; Thanks, I'll check that out.

---

<div class="post-metadata">

**Author:** ![richards99](https://forum-cdn.knime.com/user_avatar/forum.knime.com/richards99/32/48547_2.png) [@richards99](https://forum.knime.com/u/richards99)\
**Post date:** [February 5, 2014, 6:55pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493/5 "2014-02-05T18:55:29Z")

</div>

Yes I am, the Component Separator node.

Simon.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 21, 2023, 9:42pm UTC](https://forum.knime.com/t/keep-largest-fragment/3493/6 "2023-04-21T21:42:18Z")

</div>

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