@@ -629,41 +629,73 @@ Parameters:
629629| ------------| -------| ----------| -------------|
630630| smiles | URL | Yes | The smiles string for the query molecule. |
631631| synthon | Query | Yes | The smiles string for the synthon molecule. |
632+ | hops | Query | Yes | The number of graph edges to traverse from the query molecule. Typically use 3 or 4. |
632633| hacMin | Query | No | The minimum heavy atom count of the resulting molecules. |
633634| hacMax | Query | No | The maximum heavy atom count of the resulting molecules. |
634635| racMin | Query | No | The minimum ring atom count of the resulting molecules. |
635636| racMax | Query | No | The maximum ring atom count of the resulting molecules. |
636- | hops | Query | Yes | The number of graph edges to traverse from the query molecule. Typically use 3 or 4 . |
637+ | limit | Query | No | The maximum number of results to fetch. Default is 1000, values over 500 not allowed . |
637638
638- Note that these searches can be quite slow. Start with a small number of hops, and increase if you have no results.
639+ Be careful with the query parameters as using a large number of hops may result in queries that take a long time
640+ to execute and return a large number of results. Start with a small number of hops, and increase if you get no results.
641+ To provide some control over this there is a limit to the number of results that will be returned.
642+ By default this is set to 1000, but it can be adjusted using the ` limit ` query parameter, but this value cannot be set
643+ to a value greater than 5000.
639644
640- Typcial execution:
645+ Typical execution:
641646```
642647curl "$FRAGNET_SERVER/fragnet-search/rest/v2/search/synthon-expand/OC(Cn1ccnn1)C1CC1?synthon=%5BXe%5Dn1ccnn1&hops=3&hacMin=14&hacMax=18"
643648```
644649
645- Typcial results:
650+ The results are in JSON format and comprise an array of molecule info objects (the same data object as is returned by the
651+ molecule search endpoint). e.g.:
646652```
647653[
648- "NC(CCCNCCn1ccnn1)=NO",
649- "NN=C(NCCn1ccnn1)NC1CC1",
650- "CCC(NCCn1ccnn1)C(C)(C)C",
651- "CC(CC(N)=O)NCCCn1ccnn1",
652- "O=C(O)C(=O)C(=O)NCCn1ccnn1",
653- "NN=C(NCCCn1ccnn1)NC1CC1",
654- "CCOC(C)(C)CNCCn1ccnn1",
655- "CCNC(C)CNC(=O)Cn1ccnn1",
656- "CCC(CN)NC(=O)CCn1ccnn1",
657- "CN(C(=O)Cn1ccnn1)C(C)(C)C#N",
658- "O=C(O)C=CC(=O)NCCn1ccnn1",
659- "COCCNC(=NN)NCCn1ccnn1",
660- "CC(NC(=O)CCn1ccnn1)C(N)=O",
661- "CC(C)N(CC#N)C(=O)Cn1ccnn1",
662- "CCC(NCCCn1ccnn1)C(N)=NO",
663- "CN(CCC(=O)O)C(=O)CCn1ccnn1",
664- "NCC=CCNC(=O)CCn1ccnn1",
665- "COC(=O)C=CNCCCn1ccnn1",
666- "NC(CCCCNCCn1ccnn1)=NO"
654+ {
655+ "id": 3573384,
656+ "smiles": "NC(CCCNCCn1ccnn1)=NO",
657+ "molType": "NET_FRAG",
658+ "labels": [
659+ "CanSmi",
660+ "Mol",
661+ "F2",
662+ "V_CS_BB"
663+ ],
664+ "props": {
665+ "inchik": "LMBOOOPIIROSSY-JSGPKCTENA-N",
666+ "osmiles": "NC(CCCNCCC1CCCC1)NO",
667+ "chac": 5,
668+ "neighbours": 2,
669+ "hac": 15,
670+ "inchis": "InChI=1/C8H16N6O/c9-8(12-15)2-1-3-10-4-6-14-7-5-11-13-14/h5,7,10,15H,1-4,6H2,(H2,9,12)/f/h9H2MA",
671+ "cmpd_ids": [
672+ "CHEMSPACE-BB:CSC033999226"
673+ ]
674+ }
675+ },
676+ {
677+ "id": 3287068,
678+ "smiles": "OCCc1ccc(-n2ccnn2)cc1",
679+ "molType": "NET_FRAG",
680+ "labels": [
681+ "CanSmi",
682+ "Mol",
683+ "F2",
684+ "V_CS_BB"
685+ ],
686+ "props": {
687+ "inchik": "PTDSMQOYRRMILK-UHFFFAOYNA-N",
688+ "osmiles": "OCCC1CCC(C2CCCC2)CC1",
689+ "chac": 11,
690+ "neighbours": 4,
691+ "hac": 14,
692+ "inchis": "InChI=1/C10H11N3O/c14-8-5-9-1-3-10(4-2-9)13-7-6-11-12-13/h1-4,6-7,14H,5,8H2MA",
693+ "cmpd_ids": [
694+ "CHEMSPACE-BB:CSC021068907"
695+ ]
696+ }
697+ },
698+ ...
667699]
668700```
669701
0 commit comments