Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Cef_tools.py #5

Open
dheerajbobbili opened this issue Aug 14, 2017 · 0 comments
Open

Error in Cef_tools.py #5

dheerajbobbili opened this issue Aug 14, 2017 · 0 comments

Comments

@dheerajbobbili
Copy link

Hi,

I'm trying to use your data for the pseudotime analysis and I'm getting the error below while running the cell # Load dataset with tine annotations (E-day)

The problem is below,

df, rows_annot, cols_annot, _ = cef2df('data/Mouse_Embryo_fulldataset.cef')

TypeError Traceback (most recent call last)
in ()
----> 1 df, rows_annot, cols_annot, _ = cef2df('data/Mouse_Embryo_fulldataset.cef')

/Users/dheeraj.bobbili/Work/single_cell_analysis/ipynb-lamanno2016_modified/Cef_tools.py in cef2df(filepath, index_ix, columns_ix)
186
187 cef = CEF_obj()
--> 188 cef.readCEF(filepath)
189 df = pd.DataFrame( data= cef.matrix, index=cef.row_attr_values[index_ix], columns=cef.col_attr_values[columns_ix])
190

/Users/dheeraj.bobbili/Work/single_cell_analysis/ipynb-lamanno2016_modified/Cef_tools.py in readCEF(self, filepath, matrix_dtype)
95 # Read cef file first line
96 self.header, self.row_attr, self.col_attr, self.rows,
---> 97 self.cols, self.flags = fin.readline().rstrip('\n').split('\t')[1:7]
98 self.header = int(self.header)
99 self.row_attr = int( self.row_attr )

TypeError: a bytes-like object is required, not 'str'

I had these problems earlier while switching from python2 to python3. Not sure what is happening in this case. Is there any fix for it??

I'm using python version 3.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant