[Chimera-users] Chimera - mask after vop

Tom Goddard goddard at sonic.net
Tue Jun 18 12:46:22 PDT 2019


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 at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20190618/032d1084/attachment.html>


More information about the Chimera-users mailing list