[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [modeller_usage] Change ROOT_NAME for automodel.make()



Thanks,

I would like to change the root_name for all the output file.  It's kind of silly there is not class root_name attribute in automodel.  Then you could just name that.  I am having trouble overriding the __init__ in automodel because it calls self.set_defaults().

Brian

-----Original Message-----
From: Modeller Caretaker <> 
Sent: Friday, August 7, 2020 6:34 PM
To: Brian Wiley <>; 
Subject: Re: [modeller_usage] Change ROOT_NAME for automodel.make()


      External Email - Use Caution



On 8/7/20 2:21 PM, Brian Wiley wrote:
> a = automodel(env,
>                alnfile = 'TSC2_6ssh.ali',
>                knowns = ('6ssh'),
>                sequence = 'TSC2_HUMAN')
>
> a.make() # Here I want the prefix to be 'TSC2_6ssh' and not 
> 'TSC2_HUMAN'  so all files and pdb file at end would be 
> TSC2_6ssh.B99990001.pdb

automodel is written under the assumption that files are named for the sequence. If you want to name the output PDB files differently, that's straightforward; just override get_model_filename() as per
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsalilab.org%2Fmodeller%2F9.24%2Fmanual%2Fnode76.html&amp;data=02%7C01%7Cbwiley4%40jhu.edu%7C6f07e10ecf5f422a6fb208d83b21f0b7%7C9fa4f438b1e6473b803f86f8aedf0dec%7C0%7C0%7C637324364242278344&amp;sdata=RDPF8YlYqQhS0HRwmdXsmHY9Hm0PnjFOFy37jBnK1bM%3D&amp;reserved=0

If you want to name the other output files differently, there isn't currently a mechanism for that, but it would be easy enough to modify the Python code to do so.

        Ben Webb, Modeller Caretaker
--
             https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsalilab.org%2Fmodeller%2F&amp;data=02%7C01%7Cbwiley4%40jhu.edu%7C6f07e10ecf5f422a6fb208d83b21f0b7%7C9fa4f438b1e6473b803f86f8aedf0dec%7C0%7C0%7C637324364242278344&amp;sdata=%2BLPF1vPPMdMoPDm6VViwhU5RkfSy%2BVREtTE85sZpqZI%3D&amp;reserved=0
Modeller mail list: https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsalilab.org%2Fmailman%2Flistinfo%2Fmodeller_usage&amp;data=02%7C01%7Cbwiley4%40jhu.edu%7C6f07e10ecf5f422a6fb208d83b21f0b7%7C9fa4f438b1e6473b803f86f8aedf0dec%7C0%7C0%7C637324364242278344&amp;sdata=uiK%2BA8ii3KGFphxSpOnj1JdMGXQfdMsggwfdXG1goNw%3D&amp;reserved=0

<<attachment: winmail.dat>>