Traceback (most recent call last):
File "C:\Users\dhruv\Desktop\OpenChemistry\avogadro-commands\peptide_generation.py", line 11, in <module>
from pyPept.sequence import Sequence
File "<frozen zipimport>", line 259, in load_module
File "C:\Users\dhruv\anaconda3\envs\pypept\lib\site-packages\pypept-1.0-py3.9.egg\pyPept\sequence.py", line 33, in <module>
File "C:\Users\dhruv\anaconda3\envs\pypept\lib\site-packages\rdkit\Chem\__init__.py", line 23, in <module>
from rdkit.Chem.rdmolfiles import *
ImportError: DLL load failed while importing rdmolfiles: The specified procedure could not be found.
I have tried to install RDkit in the environment but the problem still persists.
Also confirm whether the procedure to generate pdb file is correct or not
Sry for the inconvenience and Thank you in advance
I also referred to stack overflow for the above issue.Thus, I even tried to install previous version of python but then when I tried to reinstall rdkit I encountered this error
Solving environment: \ *** picosat: out of memory in 'new'
Do you have any other alternative package or resource or any other way to proceed with the script?
Hello,
The code is working for biln and helm inputs ie the pdb file is being generated but
How to proceed with fasta input?
I had created envs separately for pypept and rdkit but the conda base python executable is supporting both the packages ? I do not know the reason so can you please help.
(Sry had asked a bit silly doubt previously for helm input but now I have fixed the problem in my code so its working for helm input as well)
I’m not sure I understand… are you saying the base environment does not support both packages? If so, can you tell me what version of Python and what version of rdkit you have installed?
No, I am saying that I had installed separate envs for both pypept and rdkit in \anaconda3\envs
But the base environment is supporting both of them. So, basically my doubt was …Do the base environment supports all packages which have been installed in \anaconda3\envs?
No. The point of environments is that sometimes packages … don’t get along together.
For example, some packages took a long time to update to python3 syntax. So you create an environment for old packages.
The base environment is just the default if you don’t create / specify environments. If you want a tool like pypept that also requires rdkit you need to have them both installed in the same environment.
So, After forking pypept I will have to just paste the plugin, peptide generation script and generate the requirements.txt file for the whole repo right??
So, should I do it for all scripts? Just asking so that there is uniformity in the scripts code
Yes, have made the required changes, kindly have a look at the pr. If everything is apt kindly merge the same.
If the required scripts are done
please do let me know if there are any issues which I can solve? or should I pick any issue available on github and try to find solutions for the same?
Hello
Can you please look into this as I believe it’s ready for review. Your feedback is highly valued. If you have any comments or need any additional information, please let me know.
If there are other GitHub issues I can tackle or any way I can assist, please do direct me.
Thank you for your message, and please don’t feel the need to apologize… I completely understand that you’ve been busy this week, and I truly appreciate your effort in taking the time to verify it. Your feedback is highly valuable.
I am ready with the code and am requesting your feedback on this:
def getOptions():
userOptions = {}
userOptions['glycan'] = {}
userOptions['glycan']['label'] = 'convert glycan to smiles'
userOptions['glycan']['type'] = 'string'
userOptions['glycan']['default'] = "Gal"
opts = {'userOptions': userOptions}
return opts
def convert_to_smiles(opts):
glycan= opts['glycan']
smiles=convert(glycan)
return smiles
def runCommand():
# Read options from stdin
stdinStr = sys.stdin.read()
# Parse the JSON strings
opts = json.loads(stdinStr)
# Prepare the result
result = convert_to_smiles(opts)
return result