c5c2d65ebd3ee375fa9855c326d88646ee403aa7,scanpy/get.py,,obs_df,#,70

Before Change


        elif use_raw:
            matrix = adata.raw[:, var_names].X
        else:
            matrix = adata[:, var_names].X

        from scipy.sparse import issparse

After Change


    // prepare var values
    if len(var_names) > 0:
        X = _get_obs_rep(adata, layer=layer, use_raw=use_raw)
        matrix = X[:, adata.var_names.get_indexer(var_names)]
        df_var = pd.DataFrame(matrix, columns=var_symbol, index=adata.obs.index)

    // prepare obs values
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: theislab/scanpy
Commit Name: c5c2d65ebd3ee375fa9855c326d88646ee403aa7
Time: 2020-12-03
Author: fidel.ramirez@gmail.com
File Name: scanpy/get.py
Class Name:
Method Name: obs_df


Project Name: theislab/scanpy
Commit Name: 5a4260be766333d81bddbb0fa5fd591fc78bd763
Time: 2020-12-03
Author: fidel.ramirez@gmail.com
File Name: scanpy/get.py
Class Name:
Method Name: var_df


Project Name: theislab/scanpy
Commit Name: 2bbca4b5e1d6dafa223d9d643975cdc33ab03f7a
Time: 2020-12-03
Author: fidel.ramirez@gmail.com
File Name: scanpy/get.py
Class Name:
Method Name: obs_df