Title: PCAViz
Author: durrantlab
Published: <strong>2019 年 8 月 1 日</strong>
Last modified: 2019 年 8 月 2 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/pcaviz.svg)

# PCAViz

 作者：[durrantlab](https://profiles.wordpress.org/durrantlab/)

[下载](https://downloads.wordpress.org/plugin/pcaviz.zip)

 * [详情](https://cn.wordpress.org/plugins/pcaviz/#description)
 * [评价](https://cn.wordpress.org/plugins/pcaviz/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pcaviz/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pcaviz/#developers)

 [支持](https://wordpress.org/support/plugin/pcaviz/)

## 描述

PCAViz is a tool for displaying molecular dynamics simulations in the browser. To
encourage use, an easy-to-install PCAViz-powered WordPress plugin enables “plug-
and-play” trajectory visualization. The PCAViz download also provides examples showing
how to use PCAViz in any webpage.

### Examples of Use

The PCAViz WordPress Plugin uses shortcodes that can be inserted into any WordPress
post or page.

### Major Attributes

 1. If you use the plugin without any attributes, it will allow your site visitors 
    to select from any of the compressed JSON files you’ve uploaded to your WordPress
    media library. Note that these files must end in `.compressed.json` to be recognized.`[
    pcaviz]`
 2. If you want to show your site visitors a specific simulation present in your media
    library, simplify specify the name of the simulation. PCAViz will search through
    your media library and will choose the first JSON file ending in `.compressed.json`
    that includes your specified text in its title, URL, or file name. `[pcaviz file
    ="larp1"]`
 3. You can also control the molecular styles. The WordPress plugin uses [3DMol.js](https://3dmol.csb.pitt.edu)
    to render molecules. Passing the plugin a [3DMol.js AtomStyleSpec](https://3dmol.csb.pitt.edu/doc/types.html#AtomStyleSpec)
    JSON string changes the way the molecules are displayed. `[pcaviz visStyle='{"cartoon":{"
    style": "trace", "color": "grey", "opacity": 0.75}}']`
 4. Note that the [3DMol.js documentation](https://3dmol.csb.pitt.edu/doc/$3Dmol.GLViewer.html#setStyle)
    shows AtomStyleSpec examples as JavaScript objects. PCAViz accepts only JSON strings.
    The two look similar, but with important differences (e.g., keys in JSON strings
    must always be quoted). We recommend using a [JSON validator](https://jsonformatter.curiousconcept.com)
    to check your AtomStyleSpec strings.

### Minor Attributes

 1.  To explicitly specify the height and width of the viewer, in pixels: `[pcaviz 
     height=150 width=150]`
 2.  To align the viewer to the left, center, or right, and to optionally add a caption:`[
     pcaviz align="right" caption="My molecule in motion!"]`
 3.  To instead use the caption associated with the `.compressed.json` file in your
     media library: `[pcaviz mediaLibraryCaption="true"]`
 4.  (Note that this option is automatically set to true when no `file` attribute is
     specified.)
 5.  To hide the playback buttons: `[pcaviz playback_buttons="false"]`
 6.  To prevent the plugin from looping the animation: `[pcaviz loop="false"]`
 7.  The plugin starts playing the simulation automatically by default. To deactivate
     autoplay: `[pcaviz autoplay="false"]`
 8.  To specify the duration of the animation and how frequently the atomic positions
     are updated: `[pcaviz durationInMilliseconds=10000 updateFreqInMilliseconds=50]`
 9.  To smooth the animation by averaging the atomic coordinates over multiple frames:`[
     pcaviz windowAverageSize=25]`
 10. To control how the plugin caches calculated coordinates: `[pcaviz caching="continuous"]`
 11. Acceptable values are “none” (no caching), “continuous” (cache each frame’s coordinates
     after they are first calculated), and “pre” (calculate and cache all frame coordinates
     before starting the animation).

## 安装

You can install the PCAViz WordPress plugin via the official WordPress Plugin Directory.
Search for **PCAViz**. The [wordpress.org](https://wordpress.org/support/article/managing-plugins/#automatic-plugin-installation)
site provides useful instructions detailing how to install plugins from their directory.

You can also install the plugin using this repository’s `pcaviz-wordpress/` directory.
Either copy `pcaviz-wordpress/` directly to your server’s `wp-content/plugins/` 
directory ([instructions](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation)),
or create a ZIP file of the `pcaviz-wordpress/` directory and upload it via your
WordPress admin screen ([instructions](https://wordpress.org/support/article/managing-plugins/#manual-upload-via-wordpress-admin)).

## 常见问题

  How can I compress my MD trajectories to use with this plugin?

Download the [PCAViz Compressor](http://git.durrantlab.com/jdurrant/pcaviz) to compress
your trajectories.

## 评价

此插件暂无评价。

## 贡献者及开发者

「PCAViz」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ durrantlab ](https://profiles.wordpress.org/durrantlab/)

[帮助将「PCAViz」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pcaviz)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pcaviz/)，查看[SVN仓库](https://plugins.svn.wordpress.org/pcaviz/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/pcaviz/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pcaviz/)。

## 更新日志

#### 1.0

 * The original version.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.2.2 或更高版本 **
 *  已测试的最高版本为 **5.2.28**
 *  PHP 版本 ** 7.3.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/pcaviz/)
 *  [高级视图](https://cn.wordpress.org/plugins/pcaviz/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/pcaviz/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pcaviz/reviews/)

## 贡献者

 *   [ durrantlab ](https://profiles.wordpress.org/durrantlab/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pcaviz/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://durrantlab.com/pcaviz/)