[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [modeller_usage] Reading density files
- To: chris.wood AT stfc.ac.uk, modeller_usage@listsrv.ucsf.edu
- Subject: Re: [modeller_usage] Reading density files
- From: Modeller Caretaker <modeller-care@ucsf.edu>
- Date: Fri, 06 Jun 2014 09:04:31 -0700
On 6/6/14, 7:53 AM, chris.wood AT stfc.ac.uk wrote:
m = modeller.density(modeller.environ(), "file.mrc", 10)
The constructor takes keyword arguments, not positional args (this makes
for more readable code anyway). Plus it generally makes sense to keep
the environ object around. So what you want here is
e = modeller.environ()
m = modeller.density(e, file="file.mrc", resolution=10,
em_density_format='MRC')
Note you need to specify the file format, otherwise it defaults to
XPLOR, and obviously an MRC file isn't valid XPLOR format ;)
Ben Webb, Modeller Caretaker
--
modeller-care@ucsf.edu http://www.salilab.org/modeller/
Modeller mail list: http://salilab.org/mailman/listinfo/modeller_usage