예제 #1
0
#!/usr/bin/env python
# vim: fdm=indent
'''
author:     Fabio Zanini
date:       15/08/17
content:    Test CountsTable class.
'''
# Script
if __name__ == '__main__':

    # NOTE: an env variable for the config file needs to be set when
    # calling this script
    from singlet.counts_table import CountsTable
    ct = CountsTable.from_tablename('example_table_tsv')

    print('Test binning of CountsTable')
    ct = ct.iloc[:200]
    ct.bin(result='index', inplace=True)
    assert (ct.values.max() == 4)
    print('Done!')
예제 #2
0
파일: test_bin.py 프로젝트: entcai/singlet
def ct():
    from singlet.counts_table import CountsTable
    return CountsTable.from_tablename('example_table_tsv').iloc[:200]
예제 #3
0
def test_initialize():
    from singlet.counts_table import CountsTable
    ct = CountsTable.from_tablename('example_table_tsv')