Sign inSign up

knowengdev/signature_analysis_pipeline

By knowengdev

•Updated over 8 years ago

mage for running signature_analysis_pipeline, listed by creation date

Image
0

450

knowengdev/signature_analysis_pipeline repository overview

⁠KnowEnG's Signature Analysis Pipeline

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

This pipeline performs network-based signature analysis on the columns of a given spreadsheet, where spreadsheet's columns correspond to sample-labels and rows correspond to gene-labels. The signature is based on correlating gene expression data (network enriched) against known gene signature data.

There are four similarity "signature" methods that one can choose from:

OptionsMethodParameters
similaritytraditional methodspearman or cosine or pearson
net_similaritywith network enrichmentspearman or cosine or pearson
cc_similaritywith bootstrapsspearman or cosine or pearson
cc_net_similaritywith bootstraps and network enrichmentspearman or cosine or pearson

If a phenotype data file is included this pipeline evaluates the clustering result.

KnowEnG Signature Analisis on GitHub⁠


⁠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/signature_analysis_pipeline:05_10_2018

  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/signature_analysis_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_spearmanspearman similarity
make run_net_spearmanspearman similarity with network enrichment
make run_cc_spearmanspearman similarity with bootstraps
make run_cc_net_spearmanspearman similarity with bootstraps & network enrichment
make run_pearsonpearson similarity
make run_net_pearsonpearson similarity with network enrichment
make run_cc_pearsonpearson similarity with bootstraps
make run_cc_net_pearsonpearson similarity with bootstraps & network enrichment
make run_coscosine similarity
make run_net_coscosine similarity with network enrichment
make run_cc_coscosine similarity with bootstraps
make run_cc_net_coscosine similarity with bootstraps & network enrichment

⁠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 the Gene_Signature_Pipeline/data/run_files zTEMPLATE_cc_net_spearman.yml
⁠* Modify run_paramters file (YAML Format)

Change processing_method to one of: serial, parallel depending on your machine.

processing_method: serial

set the data file targets to the files you want to run, and the parameters as appropriate for your data.

⁠* Run the Gene Signature Pipeline:
  • Update PYTHONPATH enviroment variable
export PYTHONPATH='../src':$PYTHONPATH    
  • Run
python3 ../src/gene_signature.py -run_directory ./run_dir -run_file zTEMPLATE_cc_net_spearman.yml

⁠Description of "run_parameters" file


KeyValueComments
methodsimilarity, cc_similarity, net_similarity or cc_net_similarityChoose similarity method
similarity_measurespearman, pearson, cos,Choose correlation measure
gg_network_name_full_pathdirectory+gg_network_namePath and file name of the 4 col network file
spreadsheet_name_full_pathdirectory+spreadsheet_namePath and file name of user supplied gene sets
signature_name_full_pathdirectory+signature_data_namePath and file name of user supplied signature data
results_directorydirectoryDirectory to save the output files
tmp_directorydirectoryDirectory to save the intermediate files
rwr_max_iterations100Maximum number of iterations without convergence in random walk with restart
rwr_convergence_tolerence1.0e-8Frobenius norm tolerence of spreadsheet vector in random walk
rwr_restart_probability0.7alpha in V_(n+1) = alpha * N * Vn + (1-alpha) * Vo
rows_sampling_fraction0.8Select 80% of spreadsheet rows
number_of_bootstraps4Number of random samplings
processing_methodserial or parallel or distributeChoose processing method

gg_network_name = STRING_experimental_gene_gene.edge spreadsheet_name = ProGENI_rwr20_STExp_GDSC_500.rname.gxc.tsv signature_data_name =


⁠Description of Output files saved in results directory


  • Output files of all four methods save samples by signature similarity "correlation" with name similarity_matrix_{method}{measure}{timestamp}_viz.tsv.
signature 1...signature m
sample 1float...float
............
sample nfloat...float

Tag summary

Content type

Image

Digest

Size

358.1 MB

Last updated

over 8 years ago

docker pull knowengdev/signature_analysis_pipeline:05_10_2018