python的anchor函数_anchor-bio-Anchor is a python package to estimate modality of splicing, percent meth...

作者:Olga Botvinnik

### 作者邮箱:olga.botvinnik@gmail.com

### 首页:https://github.com/YeoLab/anchor

### 文档:None

### 下载链接

![Anchor logo](https://raw.githubusercontent.com/YeoLab/anchor/master/logo/v1/logo.png)

up-94bc4c46ac8aac0f060a1fa244a14f73.jpgup-8ffaf993b8da9a4151bbfb940c3c75e6.jpgbadge.svg

What is anchor?

Anchor is a python package to find unimodal, bimodal, and multimodal features in any data that is normalized between 0 and 1, for example alternative splicing or other percent-based units.

Free software: BSD license

Documentation: https://YeoLab.github.io/anchor

Installation

To install anchor, we recommend using the Anaconda Python Distribution and creating an environment, so the anchor code and dependencies don't interfere with anything else. Here is the command to create an environment:

conda create -n anchor-env pandas scipy numpy matplotlib seaborn

Stable (recommended)

To install this code from the Python Package Index, you'll need to specify anchor-bio (anchor was already taken - boo).

pip install anchor-bio

Bleeding-edge (for the brave)

If you want the latest and greatest version, clone this github repository and use pip to install

git clone git@github.com:YeoLab/anchor

cd anchor

pip install . # The "." means "install *this*, the folder where I am now"

Usage

anchor was structured like scikit-learn, where if you want the "final answer" of your estimator, you use fit_transform(), but if you want to see the intermediates, you use fit().

If you want the modality assignments for your data, first make sure that you have a pandas.DataFrame, here it is called data, in the format (samples, features). This uses a log2 Bayes Factor cutoff of 5, and the default Beta distribution parameterizations (shown here)

import anchor

bm = anchor.BayesianModalities()

modalities = bm.fit_transform(data)

If you want to see all the intermediate Bayes factors, then you can do:

import anchor

bm = anchor.BayesianModalities()

bayes_factors = bm.fit(data)

History

1.1.1 (2017-06-29)

In infotheory.binify, round the decimal numbers before they are written as strings

1.0.1 (2017-06-28)

Documentation and build fixes

1.0.0 (2017-06-28)

Updated to Python 3.5, 3.6

0.1.0 (2015-07-08)

First release on PyPI.

Copy from pypi.org

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值