Git Product home page Git Product logo

flowgrid's Introduction

Ultrafast clustering of single-cell flow cytometry data using FlowGrid

Authors: Xiaoxin Ye and Joshua W. K. Ho
Contact: [email protected]
Copyright © 2018, Victor Chang Cardiac Research Institute

Input data format

Our FlowGrid algorithm could be applied into many format data set but the sample code only accept csv format. In the csv file, the first row is feature name and each columns is seperated by ",". If you have true label file , you could use --l filename to input label file for testing the ARI of FlowGrid result.

Install

Before using the package, we need to install the dependent package sklearn and numpy.

pip install -r requirements.txt --user

or

pip install sklearn numpy scipy --user

Usage

A summary of the argument of sample code is included in the table below.

Argument Usage Required?
--f the input file name required
--n number of bins required
--eps maximun distance between two bins required
--t threshold for high density bin optional (default:40)
--o the output file name optional (default: out.csv)
--l the true label file name optional

Sample

After installing all the dependent packages, you could try to use the sample code to run FlowGrid on the sample data.

python sample_code.py --f sample_data.csv --n 4  --eps 1.1 --l sample_label.csv

The predicted label is saved at out.csv and the sample result is as follow.

The number of cells is: 23377
The number of dimensions is: 4
runing time: 0.027
ARI:0.9816

FlowGrid for Scanpy usage

Authors: Xiunan Fang and Joshua W. K. Ho
Contact: [email protected]
Copyright © 2019, Joshua W. K. Ho's Lab

NOTE!

FlowGrid implementation in Scanpy can be found in github PAGE: https://github.com/holab-hku/FlowGrid

flowgrid's People

Contributors

seanyexx avatar xfanuu avatar hojwk avatar

Stargazers

Georg Auer avatar Zhicheng Guo / Stark avatar Aaron Ross avatar  avatar Cameron Smith avatar Rholais Lii avatar Sam Gardiner avatar Hao avatar  avatar Nicholas Socci avatar

Watchers

James Cloos avatar  avatar Nicholas Socci avatar David Humphreys avatar Andrian avatar  avatar

Forkers

seanyexx pythseq

flowgrid's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.