## reviewer #2
This tool starts a simple image server that lets you quickly flip through image files from a local directory using your web browser.
Also, it optionally shows a customizable form where you can take notes or answer questions about each image or set of images.
### Example uses:
- manual curation / review of sequencing data visualization images such as those generated by [REViewer](https://www.illumina.com/science/genomics-research/reviewer-visualizing-alignments-short-reads-long-repeat.html) for short tandem repeat loci
- machine learning training set creation
- reviewing a pile of photos
### Features:
- simple way to flip through many local image files using your web browser
- crawls a top-level directory to find .png, .jpeg, or .svg image files
- web interface: home page lists all images
- web interface: image pages show the image, an optional customizable form where you can take notes or answer questions about the image, next/previous page links, and optional other customizable info for context
- use subdirectories to group images. Any images found in the same subdirectory will be shown on the same page
-------
[![PyPI version](https://img.shields.io/pypi/v/reviewer2.svg?style=flat)](https://pypi.org/project/reviewer2/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/reviewer2.svg)](https://shields.io/)
### Install:
```
python3 -m pip install reviewer2
```
### Run:
```
python3 -m reviewer2 # start server for all images in the current directory and subdirectories
```
Below are more examples. Run with `--help` to see all available options and their descriptions.
```
python3 -m reviewer2 -x temp -x keyword2 /path/dir-with-images # -x are keyword(s) of paths to skip and /path/dir-with-images is the top level dir to search instead of the current dir
python3 -m reviewer2 -t /path/user_responses.xls # change where user responses get saved (default: reviewer2_form_responses.tsv)
python3 -m reviewer2 -m /path/metadata.tsv # provide a metadata table
```
After the server is running, open your web browser to [http://localhost:8080](http://localhost:8080) to start reviewing images.
### Options:
- metadata table (`-m`)
It's often useful to add extra info to the image pages to help with review - such as image descriptions, quality scores, etc.
To enable this, there are several ways to specify arbitrary key-value pairs to add to specific image pages.
The 1st way is to put a file called `reviewer2_metadata.json` next to the image(s). All keys and values from this file
will appear on that image page. The 2nd way is to use `-m` to pass in a metadata table
(`.tsv` or `.xls`) with a `Path` column + arbitrary other columns. If the `Path` value matches the relative directory containing
the image(s), entries from that row will be added to this image page.
Since the keys and values are treated as html, they can be used to add more complex info - such as
colors, text formatting, <img ..> tags with images from other web pages, iframes containing entire sections of external pages, etc.
- responses table (`-t`)
As you fill in the forms at the top of the image pages, the responses are written to this table. If you later restart reviewer2 with the same `-t`, it will reload previous responses. You can also optionally use this table to provide additional columns to display - sometimes this can be more convenient than using `-m`.
*Default*: `reviewer2_form_responses.tsv`
- custom form schema (`--form-schema-json`)
If you'd like to use non-default questions in the image page forms, you can specify the path or url of a .json file containing a custom form schema. For examples of the expected format see [main/form_schema_examples](https://github.com/broadinstitute/reviewer2/tree/main/form_schema_examples)
- config file (`~/.reviewer2_config`)
Most settings that can be provided on the command line can also be set via this YAML config file instead. For example:
*~/.reviewer2_config*
```
form-schema-json: /path/to/my-schema.json
hide-metadata-on-home-page: true
host: 127.0.0.1
port: 8080
```
For more details, run:
```
python3 -m reviewer2 --help
```
### Comparing reviews:
If 2 or more people review the same images, the reviews can be compared using the `compare_form_response_tables` script.
For example:
```
python3 -m compare_form_response_tables egor_reviewer2_form_responses.tsv ben_reviewer2_form_responses.tsv -o combined_responses.tsv -s1 egor -s2 ben
```
This script will print concordance stats, and output a `combined_responses.tsv` table that contains one image per row as well as each person's review of the image.
To see the full list of args and descriptions, run `python3 -m compare_form_response_tables --help`
### Development:
To create a local dev instance, run
```
git clone git@github.com:broadinstitute/reviewer2.git
cd reviewer2
# start server in dev mode so it reloads code on change
python3 -m reviewer2 /path/dir-with-images --dev-mode
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:reviewer2-0.9.31.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
reviewer2-0.9.31.tar.gz (16个子文件)
reviewer2-0.9.31
PKG-INFO 7KB
compare_form_response_tables.py 7KB
reviewer2
save.py 3KB
utils.py 6KB
__main__.py 2KB
main_list.py 2KB
__init__.py 13KB
data_page.py 4KB
reviewer2.egg-info
PKG-INFO 7KB
requires.txt 91B
SOURCES.txt 341B
top_level.txt 39B
dependency_links.txt 1B
setup.cfg 38B
setup.py 2KB
README.md 5KB
共 16 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Django和HTML的新疆地区水稻产量影响因素可视化分析系统(含数据集)
- windows conan2应用构建模板
- 3_base.apk.1
- 基于STM32F103C8T6的4g模块(air724ug)
- 基于Java技术的ASC学业支持中心并行项目开发设计源码
- 基于Java和微信支付的wxmall开源卖票商城设计源码
- 基于Java和前端技术的东软环保公众监督系统设计源码
- 基于Python、HTML、CSS的crawlerdemo软件工程实训爬虫设计源码
- 基于多智能体深度强化学习的边缘协同任务卸载方法设计源码
- 基于BS架构的Java、Vue、JavaScript、CSS、HTML整合的毕业设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功