Skip to content

Second enumerate example returns different output #133

@olivertomic

Description

@olivertomic

In the second example the second line has one command too many. >>> peptide_backbone = PeptideBuilder(2) should be on the next line.

When running this example I get different ouputs.

from cocktail_shaker import Cocktail
from cocktail_shaker import PeptideBuilder
peptide_backbone = PeptideBuilder(2)
cocktail = Cocktail(peptide_backbone,ligand_library = ['Br', 'I'])
combinations = cocktail.shake()
print (combinations)
['NC(Br)C(=O)NC(I)C(=O)NCC(=O)O', 'NC(I)C(=O)NC(Br)C(=O)NCC(=O)O']
enumerations = cocktail.enumerate(enumeration_complexity='low')
print (len(enumerations))
20
enumerations = cocktail.enumerate(enumeration_complexity='med')
print (len(enumerations))
186
enumerations = cocktail.enumerate(enumeration_complexity='high')
print (len(enumerations))
1789

My output is the following (note that the numerical outputs are different):

Generating 2 Compounds...
['NC(Br)C(=O)NC(I)C(=O)NCC(=O)O', 'NC(I)C(=O)NC(Br)C(=O)NCC(=O)O']
Enumerating 2 Compounds....
192
Enumerating 2 Compounds....
20
Enumerating 2 Compounds....
1792

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions