You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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
The text was updated successfully, but these errors were encountered: