Challenge: Cluster a Compound Library
Swipe to start coding
Write a Python function using RDKit that takes a list of SMILES strings and groups them into clusters based on pairwise Tanimoto similarity. Each cluster should contain molecules where every member has a Tanimoto similarity above 0.6 with at least one other member in the cluster.
- Parse each SMILES string into an RDKit molecule.
- Generate Morgan fingerprints for each molecule.
- Compare fingerprints pairwise using Tanimoto similarity.
- Group molecules so that each cluster contains molecules with at least one similarity above 0.6 to another member.
- Return a list of clusters, where each cluster is a list of SMILES strings.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Geweldig!
Completion tarief verbeterd naar 6.25
Challenge: Cluster a Compound Library
Veeg om het menu te tonen
Swipe to start coding
Write a Python function using RDKit that takes a list of SMILES strings and groups them into clusters based on pairwise Tanimoto similarity. Each cluster should contain molecules where every member has a Tanimoto similarity above 0.6 with at least one other member in the cluster.
- Parse each SMILES string into an RDKit molecule.
- Generate Morgan fingerprints for each molecule.
- Compare fingerprints pairwise using Tanimoto similarity.
- Group molecules so that each cluster contains molecules with at least one similarity above 0.6 to another member.
- Return a list of clusters, where each cluster is a list of SMILES strings.
Oplossing
Bedankt voor je feedback!
single