[Chimera-users] Web Access Data
Elaine Meng
meng at cgl.ucsf.edu
Tue Mar 3 09:10:45 PST 2009
Hi Thiru,
The session file is python (*.py) ... you cannot just rename it as
*.chimerax. Instead you would make a chimerax file that gives the
names/locations of any files you want to open in Chimera, such as the
python session file, and can include various Chimera commands. If
all you want to do is open the session, the chimerax file will be
very simple.
For example, these 6 lines of text are a chimerax file from the
Structure-Function Linkage Database (SFLD):
<?xml version="1.0"?>
<ChimeraPuppet type="std_webdata">
<web_files>
<file name="session.py" format="text" loc="http://
sfld.rbvi.ucsf.edu/data/site_sessions/1yey.py"/>
</web_files>
</ChimeraPuppet>
Your web page would link to the chimerax file. Then when the
chimerax file is opened by Chimera, Chimera will get the session file
named inside.
The page at the SFLD that has this link is
<http://sfld.rbvi.ucsf.edu/cgi-bin/SFLDvm.py?view=family&id=111>
The chimerax file is linked to the large "Active Site" image.
You can test your chimerax file without using the web just by opening
it in Chimera. Then if it works, you can link it to a web page, but
there is one more step:
If you are using a cgi-bin script to create the chimerax files on the
fly, the cgi-bin script must specify the Content-type header as
application/x-chimerax. If you just have pre-made chimerax files,
your webmaster needs to change the web server settings so that it
sends this information along with the file.
The chimerax format is described here:
<http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/webdata/
chimerax.html>
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D. meng at cgl.ucsf.edu
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
http://www.cgl.ucsf.edu/home/meng/index.html
On Mar 2, 2009, at 6:46 PM, Thiruvarangan Ramaraj wrote:
> Hello All,
>
> I created a session and saved it under .chimerax extension. I have
> a link
> to this session on a web page. When I click on this link I wanted the
> session to open directly using the chimera program.
>
> http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/webdata/
> webdata.html#webdata
>
> I tried to follow the instructions given in the above link, still I
> am unsuccessful in figuring it out.
>
> Any suggestions/ideas would be greatly appreciated.
>
> Thank You
>
> Thiru
>
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users
More information about the Chimera-users
mailing list