mage for running signature_analysis_pipeline, listed by creation date
450
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:
| Options | Method | Parameters |
|---|---|---|
| similarity | traditional method | spearman or cosine or pearson |
| net_similarity | with network enrichment | spearman or cosine or pearson |
| cc_similarity | with bootstraps | spearman or cosine or pearson |
| cc_net_similarity | with bootstraps and network enrichment | spearman or cosine or pearson |
If a phenotype data file is included this pipeline evaluates the clustering result.
KnowEnG Signature Analisis on GitHub
docker pull knowengdev/signature_analysis_pipeline:05_10_2018
mkdir local_results and / or cd local_results
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
At the docker image command prompt change to the test directory. =========== .../home# cd test
Set up the environment. ============= .../home/test# make env_setup
| Command | Option |
|---|---|
| make run_spearman | spearman similarity |
| make run_net_spearman | spearman similarity with network enrichment |
| make run_cc_spearman | spearman similarity with bootstraps |
| make run_cc_net_spearman | spearman similarity with bootstraps & network enrichment |
| make run_pearson | pearson similarity |
| make run_net_pearson | pearson similarity with network enrichment |
| make run_cc_pearson | pearson similarity with bootstraps |
| make run_cc_net_pearson | pearson similarity with bootstraps & network enrichment |
| make run_cos | cosine similarity |
| make run_net_cos | cosine similarity with network enrichment |
| make run_cc_cos | cosine similarity with bootstraps |
| make run_cc_net_cos | cosine similarity with bootstraps & network enrichment |
Follow steps 1-3 above then do the following:
mkdir run_directory
cd run_directory
mkdir results_directory
Look for examples of run_parameters in the Gene_Signature_Pipeline/data/run_files zTEMPLATE_cc_net_spearman.yml
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.
export PYTHONPATH='../src':$PYTHONPATH
python3 ../src/gene_signature.py -run_directory ./run_dir -run_file zTEMPLATE_cc_net_spearman.yml
| Key | Value | Comments |
|---|---|---|
| method | similarity, cc_similarity, net_similarity or cc_net_similarity | Choose similarity method |
| similarity_measure | spearman, pearson, cos, | Choose correlation measure |
| gg_network_name_full_path | directory+gg_network_name | Path and file name of the 4 col network file |
| spreadsheet_name_full_path | directory+spreadsheet_name | Path and file name of user supplied gene sets |
| signature_name_full_path | directory+signature_data_name | Path and file name of user supplied signature data |
| results_directory | directory | Directory to save the output files |
| tmp_directory | directory | Directory to save the intermediate files |
| rwr_max_iterations | 100 | Maximum number of iterations without convergence in random walk with restart |
| rwr_convergence_tolerence | 1.0e-8 | Frobenius norm tolerence of spreadsheet vector in random walk |
| rwr_restart_probability | 0.7 | alpha in V_(n+1) = alpha * N * Vn + (1-alpha) * Vo |
| rows_sampling_fraction | 0.8 | Select 80% of spreadsheet rows |
| number_of_bootstraps | 4 | Number of random samplings |
| processing_method | serial or parallel or distribute | Choose processing method |
gg_network_name = STRING_experimental_gene_gene.edge spreadsheet_name = ProGENI_rwr20_STExp_GDSC_500.rname.gxc.tsv signature_data_name =
| signature 1 | ... | signature m | |
|---|---|---|---|
| sample 1 | float | ... | float |
| ... | ... | ... | ... |
| sample n | float | ... | float |
Content type
Image
Digest
Size
358.1 MB
Last updated
over 8 years ago
docker pull knowengdev/signature_analysis_pipeline:05_10_2018