Chimera - mask after vop
Hi Chimera team, Is it possible to mask after vop. I got it to work in Chimera’s command line in the gui but when I run it from my python script it does not work. I am trying to change this working solution to this solution without ground truth: WORKING SOLUTION #chimera_script.write('open ' + paths['input'] + '\n' # 'open ' + paths['ground_truth'] + '\n' # 'molmap #1 6 gridSpacing 1\n' # 'volume #1.1 level 0.1\n' # 'mask #0 #1.1\n' # 'vop resample #2 onGrid #1.1\n' # 'volume #3 save ' + paths['cleaned_map']) NEW SOLUTION chimera_script.write('open ' + paths['input'] + '\n' 'vop gaussian #0 sDev 2\n' 'vop median #1 iterations 5 modelId #2.1\n' 'volume #2.1 level 0.1\n' 'mask #0 #2.1\n' 'vop resample #3 onGrid #2.1\n' 'volume #4 save ' + paths['cleaned_map']) While mask after vop works with GUI command line it gets a NoneType error when doing this: subprocess.run(['/usr/local/bin/chimera', '--nogui', chimera_script.name]). It seems like this might be a bug of chimera? Since it tries to return None to a tuple and crashes. For some reason no triangles in the new surface with vop. Here is a snippet from the depthmask.py where it crashes. [cid:image001.png@01D525AB.830ADC20] Thank you, Ryan Harlich Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
You'd have to send the error traceback to make any sense of this.
On Jun 18, 2019, at 7:57 AM, Ryan Harlich wrote:
Hi Chimera team,
Is it possible to mask after vop. I got it to work in Chimera’s command line in the gui but when I run it from my python script it does not work. I am trying to change this working solution to this solution without ground truth:
WORKING SOLUTION #chimera_script.write('open ' + paths['input'] + '\n' # 'open ' + paths['ground_truth'] + '\n' # 'molmap #1 6 gridSpacing 1\n' # 'volume #1.1 level 0.1\n' # 'mask #0 #1.1\n' # 'vop resample #2 onGrid #1.1\n' # 'volume #3 save ' + paths['cleaned_map'])
NEW SOLUTION chimera_script.write('open ' + paths['input'] + '\n' 'vop gaussian #0 sDev 2\n' 'vop median #1 iterations 5 modelId #2.1\n' 'volume #2.1 level 0.1\n' 'mask #0 #2.1\n' 'vop resample #3 onGrid #2.1\n' 'volume #4 save ' + paths['cleaned_map'])
While mask after vop works with GUI command line it gets a NoneType error when doing this: subprocess.run(['/usr/local/bin/chimera', '--nogui', chimera_script.name]). It seems like this might be a bug of chimera? Since it tries to return None to a tuple and crashes. For some reason no triangles in the new surface with vop. Here is a snippet from the depthmask.py where it crashes. <9A06DA0CF3424B2F8BCE5B3F4F939F16.png>
Thank you,
Ryan Harlich
Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
_______________________________________________ Chimera-users mailing list: Chimera-users@cgl.ucsf.edu <mailto:Chimera-users@cgl.ucsf.edu> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
participants (2)
-
Ryan Harlich
-
Tom Goddard