To set up the environment for running the QUBO notebook, follow these steps:
conda env create -f environment.yml
conda activate dwave
pip install -e .
python -m ipykernel install --user --name dwave
- Visit D-Wave Leap and find your Solver API Token.
- In your terminal, configure your D-Wave API client:
dwave config create
- When prompted, paste your Solver API Token and hit Enter.
Add the following directory to your MATLAB path:
C:\Users\ssromerogon\Documents\vscode_working_dir\QUBO_Feature_Selection\qfeatures-src-v0.2_matlab
You have three options for generating the QUBO matrix:
- Run the script
qfeatures_driver.m
located in../../../qubo_fs_matlab/efficient_differentiation/
. - Copy the generated files
genes.csv
andqubo_matrix.csv
to the current local directory.
- Download the pre-computed matrix from the following link: Google Drive - Pre-Computed QUBO Matrix
- After installing the
qfeatures
package (pip install -e .
), run the stand-alone notebookconstruct_qubo_python.ipynb
in this directory. - Download the prepared single-cell data from the following link:
Google Drive - Single-Cell Data
File:
Data_hESC_EC_day1_5000g_filtered_feature_bc_matrix_h5.h5ad
- Open
qubo_solver_from_MATLAB_Q.ipynb
in Jupyter Notebook. - Run all cells in the notebook.
- The selected features will be saved in
filt_df_QA.csv
.
- Open
qfeatures_driver.m
located in./qubo_fs_matlab/efficient_differentiation/
and execute it (NOTE: installQuantum Computing
matlab package) - Cross validation available in
qfeatures_driver_cross_validation.m
in./qubo_fs_matlab/efficient_differentiation/