Sign inSign up

knowengdev/feature_prioritization_pipeline

By knowengdev

•Updated about 7 years ago

image for running feature_prioritization_pipeline, listed by creation date

Image
0

494

knowengdev/feature_prioritization_pipeline repository overview

⁠KnowEnG's Feature Prioritization Pipeline

This is the Knowledge Engine for Genomics (KnowEnG), an NIH, BD2K Center of Excellence, Feature Prioritization Pipeline.

This pipeline ranks the rows of a given spreadsheet, where spreadsheet's rows correspond to feature-labels and columns correspond to sample-labels. The ranking is based on correlating feature expression data against response data.

There are two prioritization methods, using either pearson or t-test as the measure of correlation:

OptionsMethodParameters
Simple Correlationsimple correlationcorrelation
Bootstrap Correlationbootstrap sampling correlationbootstrap_correlation

Note: all of the correlation methods mentioned above use the Pearson or t-test correlation measure method.

feature_prioritization_pipeline GitHub repo⁠


⁠How to run this pipeline's docker image with Our data


  1. Install Docker - follow the instructions in this link. ============

Install Docker Engine⁠

  1. Get the current Docker Image. On the command line with internet connection: ============

docker pull knowengdev/feature_prioritization_pipeline:10_12_2017

  1. Create or change to a directory to hold the output data. ============

mkdir local_results and / or cd local_results

  1. Start the docker image connected to the (local_results) directory. =========== docker run -v local_results:/home/test/run_dir -it knowengdev/feature_prioritization_pipeline:10_12_2017

  2. At the docker image command prompt change to the test directory. =========== .../home# cd test

  3. Set up the environment. ============= .../home/test# make env_setup


  1. Use one of the following "make" commands to select and run a clustering option: ===========
CommandOption
make run_pearsonpearson correlation
make run_bootstrap_pearsonbootstrap sampling with pearson correlation
make run_t_testt-test correlation
make run_bootstrap_t_testbootstrap sampling with t-test correlation

⁠How to run this pipeline with Your data


Follow steps 1-3 above then do the following:

⁠* Create your run directory
mkdir run_directory
⁠* Change directory to the run_directory
cd run_directory
⁠* Create your results directory
mkdir results_directory
⁠* Create run_paramters file (YAML Format)
Look for examples of run_parameters in ./Feature_Prioritization_Pipeline/data/run_files/zTEMPLATE_FP_BENCHMARKS.yml
⁠* Modify run_paramters file (YAML Format)
set the spreadsheet and response data file names to point to your data
⁠* Run the Feature Prioritization Pipeline:
  • Update PYTHONPATH enviroment variable
export PYTHONPATH='../src':$PYTHONPATH    
  • Run
python3 ../src/feature_prioritization.py -run_directory ./ -run_file zTEMPLATE_FP_BENCHMARKS.yml

⁠Description of "run_parameters" file


KeyValueComments
methodcorrelation or bootstrap_correlationChoose feature prioritization method
correlation_measurepearson or t_testChoose correlation measure method
spreadsheet_name_full_pathdirectory+spreadsheet_namePath and file name of user supplied feature sets
phenotype_name_full_pathdirectory+responsePath and file name of user supplied response file
results_directorydirectoryDirectory to save the output files
number_of_bootstraps5Number of random samplings
cols_sampling_fraction0.9Select 90% of spreadsheet columns
top_beta_of_sort100Number of top features selected

spreadsheet_name = CCLE_Expression_ensembl.df
response_name = CCLE_drug_ec50_cleaned_NAremoved_pearson.txt


⁠Description of Output files saved in results directory


  • Any method saves separate files per response with name {response}_{method}_{correlation_measure}_{timestamp}_viz.tsv. Features are sorted in descending order based on visualization_score.
ResponseFeature_IDquantitative_sorting_scorevisualization_scorebaseline_score
response 1feature 1floatfloatfloat
...............
response 1feature nfloatfloatfloat
  • Any method saves sorted features for each response with name ranked_features_per_response_{method}_{correlation_measure}_{timestamp}_download.tsv.
Rankingresponse 1response 2...response n
1feature
(most significant)
feature
(most significant)
...feature
(most significant)
...............
nfeature
(least significant)
feature
(least significant)
...feature
(least significant)
  • Any method saves spreadsheet with top ranked features per response with name top_features_per_response_{method}_{correlation_measure}_{timestamp}_download.tsv.
Featuresresponse 1...response n
feature 11/0...1/0
............
feature n1/0...1/0

Tag summary

Content type

Image

Digest

Size

702 MB

Last updated

about 7 years ago

docker pull knowengdev/feature_prioritization_pipeline:09_27_2019