Sign inSign up

knowengdev/autobuild_geneset

By knowengdev

•Updated about 10 years ago

Test build for geneset_characterization_pipeline

Image
0

986

knowengdev/autobuild_geneset repository overview

⁠Gene Set Characterization Pipeline

This is the Knowledge Engine for Genomics (KnowEnG), an NIH BD2K Center of Excellence, Gene Set Characterization Pipeline.
This pipeline selects one of three methods to rank a user supplied gene set against a KnowEnG gene sets collection.

One can select one of three gene set characterization options:

OptionsMethodParameters
Fisher exact testFisherfisher
Discriminative Random Walks with RestartDRaWRDRaWR
Net OneNet Onenet_one

⁠How to run this pipeline with provided data

###1. Get Access to KnowEnG-Research Repo: Email [email protected]⁠ infrastructure team (IST) lead to:

  1. Access KnowEnG-Research github repo

###2. Clone the Samples_Clustering_Pipeline Repo

 git clone https://github.com/KnowEnG-Research/GeneSet_Characterization_Pipeline.git

###3. Install the following (Mac OS or Linux)

 apt-get install -y python3-pip
 apt-get install -y libblas-dev liblapack-dev libatlas-base-dev gfortran
 pip3 install numpy==1.11.1
 pip3 install pandas==0.18.1 
 pip3 install scipy==0.18.0
 pip3 install scikit-learn==0.17.1
 apt-get install -y libfreetype6-dev libxft-dev 
 pip3 install matplotlib==1.4.2
 pip3 install pyyaml
 pip3 install knpackage

###4. Change directory to the GeneSet_Characterization_Pipeline

 cd GeneSet_Characterization_Pipeline

###5. Use the following "make" command to create a local directory "run_dir" and place all the parameters files in it

  • Prepare input data and running directories.
 make preparation
  • Run the pipeline you desire
 make -f Makefile.docker docker_run_fisher
 make -f Makefile.docker docker_run_drawer
  • Clean the running environment and revert the local repository to original state after you finish your tests and analysis
 make final_clean 

⁠How to run it with your data

###6. Setup your run environment

  • Create a run directory
mkdir run_directory_name
  • Create results directory to save output files under run directory
cd run_directory_name
mkdir results_directory_name
  • Create run_paramerters file with example below (yml format)
KeyValueComments
methodDRaWR or fisherChoose DRaWR or fisher as the gene set characterization method
pg_network_name_full_path./a/pg_network_namePath and file name of the 4 col property file
gg_network_name_full_path./a/gg_network_namePath and file name of the 4 col network file(only needed in DRaWR)
spreadsheet_name_full_path./a/spreadsheet_namePath and file name of user supplied gene sets
results_directory./run_dir/resultsDirectory to save the output files
rwr_max_iterations500Maximum number of iterations without convergence in random walk with restart(only needed in DRaWR)
rwr_convergence_tolerence0.0001Frobenius norm tolerence of spreadsheet vector in random walk(only needed in DRaWR)
rwr_restart_probability0.5alpha in Vn+1 = alpha * N * Vn + (1-alpha) * Vo(only needed in DRaWR)
a = input_date
pg_network_name = kegg_pathway_property_gene
gg_network_name = STRING_experimental_gene_gene
spreadsheet_name = ProGENI_rwr20_STExp_GDSC_500.rname.gxc
  • Make sure the directories of the input data in fisher_run_file.yml and DRaWR_run_file.yml are correct

  • Run GeneSet_Characterization_Pipeline

export PYTHONPATH='../GeneSet_Characterization_Pipeline/src':$PYTHONPATH    
python3 ../GeneSet_Characterization_Pipeline/src/geneset_characterization.py -run_directory ./ -run_file file_name.yml
  • Output files are saved in results directory
    1.DRaWR_result output file saves sorted properties based on the difference between updated user gene vector and baseline.
    2.fisher_result output file has seven columns and it is sorted in ascending order based on pval.
user genepropertycountuser countgene countoverlappval
stringstringintintintintfloat
⁠Net_One

Tag summary

Content type

Image

Digest

Size

383.2 MB

Last updated

about 10 years ago

docker pull knowengdev/autobuild_geneset