colomemaria / epiScanpy

Episcanpy: Epigenomics Single Cell Analysis in Python
BSD 3-Clause "New" or "Revised" License
139 stars 33 forks source link

Remind: error in function **load_features** #36

Closed kridsadakorn closed 4 years ago

kridsadakorn commented 4 years ago

Regarding the tutorial: https://nbviewer.jupyter.org/github/colomemaria/epiScanpy/blob/master/docs/tutorials/ATAC_bld_ct_mtx_tutorial.html

The bed file contains 4 columns

chr1    3120019 3122019 enhancer_3120019_3122019
chr1    3209819 3211819 enhancer_3209819_3211819
chr1    3292869 3294869 enhancer_3292869_3294869
chr1    3298619 3300619 enhancer_3298619_3300619
chr1    3309519 3311519 enhancer_3309519_3311519
chr1    3359619 3361619 enhancer_3359619_3361619
chr1    3398119 3400119 enhancer_3398119_3400119
chr1    3410669 3412669 enhancer_3410669_3412669
chr1    4138319 4140319 enhancer_4138319_4140319

For the bed file that contains 3 columns as like

chr1    10413   10625
chr1    13380   13624
chr1    16145   16354
chr1    96388   96812
chr1    115650  115812
chr1    237625  237888
chr1    240909  241193
chr1    521446  521676
chr1    540558  541085
chr1    713705  714611

It reports an error in function load_features

kridsadakorn commented 4 years ago

Solved

Please review the changes in load_features and name_features