Skip to main content

SigProfilerHotSpots tool

Project description

License Build Status

SigProfilerHotSpots

Tool for analyzing the inter-mutational distances between SNV-SNV and INDEL-INDEL mutations. Tool separates mutations into clustered and non-clustered groups on a sample-dependent basis.

INTRODUCTION

The purpose of this document is to provide a guide for using the SigProfilerHotSpots framework.

PREREQUISITES

The framework is written in PYTHON, and uses additional SigProfiler packages:

SigProfilerMatrixGenerator SigProfilerSimulator

Please visit their respective GitHub pages for detailed installation and usage instructions.

QUICK START GUIDE

This section will guide you through the minimum steps required to perform a hot-spot analysis:

  1. Install the python package using pip: pip install SigProfilerHotSpots

Install your desired reference genome from the command line/terminal as follows (available reference genomes are: GRCh37, GRCh38, mm9, and mm10):

$ python
>> from SigProfilerMatrixGenerator import install as genInstall
>> genInstall.install('GRCh37', rsync=False, bash=True)

This will install the human 37 assembly as a reference genome. You may install as many genomes as you wish. If you have a firewall on your server, you may need to install rsync and use the rsync=True parameter. Similarly, if you do not have bash, use bash=False. 2. Place your vcf files in your desired output folder. It is recommended that you name this folder based on your project's name. Before you can analyze clustered mutations, you need to generate a background model for each of your samples. To do this, generate a minimum of 100 simulations for your project (see SigProfilerSimulator for a detailed list of parameters):

>>from SigProfilerSimulator import SigProfilerSimulator as sigSim
>>sigSim.SigProfilerSimulator(project, project_path, genome, contexts=["96"], simulations=100, chrom_based=True)
  1. Now the original mutations can be partitioned into clustered and non-clustered sets using the required parameters below:
>> from SigProfilerHotSpots import SigProfilerHotSpots as hp
>> hp.analysis(project, genome, contexts, simContext, input_path)

See below for a detailed list of available parameters

  1. The partitioned vcf files are placed under [project_path]/ouput/vcf_files/[project]_clustered/ and [project_path]/ouput/vcf_files/[project]nonClustered/. You can visualize the results by looking at the IMD plots available under [project_path]/ouput/simulations/[project]simulations[genome][context]_intradistance_plots/.

AVAILABLE PARAMETERS

        project:			[string] Unique name for the given project
        genome:			[string] Reference genome to use. Must be installed using SigProfilerMatrixGenerator
        contexts:			[string] Mutation context for measuring IMD (e.g. "6", "96", "1536", etc,)
        simContext: 		[list of strings] Mutations context that was used for generating the background model (e.g ["6144"] or ["96"])
        input_path:			[string] Path to the given project
        analysis:	 		[string] Desired analysis pipeline. By default output_type='all'. Other options include "subClassify" and "hotspot". 
        sortSims:			[boolean] Option to sort the simulated files if they have already been sorted. By default sortSims=True to ensure accurate results. The files must be sorted for accurate results. 
        chrom_based:		[boolean] Option to generate chromosome-dependent IMDs per sample. By default chrom_based=False. 
        max_cpu:			[integer] Change the number of allocated CPUs. By default all CPUs are used
        subClassify:		[boolean] Subclassify the clustered mutations. Requires that VAF scores are available in TCGA or Sanger format. By default subClassify=False 

        The following parameters are used if the subClassify argument is True:
        sanger:			[boolean] The input files are from Sanger. By default sanger=True
        TCGA:			[boolean] The input files are from TCGA. By default TCGA=False
        windowSize:		[integer] Window size for calculating mutation density in the rainfall plots. By default windowSize=10000000
        correction		[boolean] Optional parameter to perform a genome-wide mutational density correction (boolean; default=False)

LOG FILES

All errors and progress checkpoints are saved into SigProfilerHotSpots_[project][genome].err and SigProfilerHotSpots[project]_[genome].out, respectively. For all errors, please email the error and progress log files to the primary contact under CONTACT INFORMATION.

CITATION

E.N. Bergstrom, M.N. Huang, U. Mahto, M. Barnes, M.R. Stratton, S.G. Rozen, and L.B. Alexandrov (2019) SigProfilerMatrixGenerator: a tool for visualizing and exploring patterns of small mutational events. https://www.biorxiv.org/content/10.1101/653097v1

COPYRIGHT

Copyright (c) 2020, Erik Bergstrom [Alexandrov Lab] All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

CONTACT INFORMATION

Please address any queries or bug reports to Erik Bergstrom at ebergstr@eng.ucsd.edu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SigProfilerHotSpots-0.0.20.tar.gz (42.9 kB view hashes)

Uploaded Source

Built Distribution

SigProfilerHotSpots-0.0.20-py3-none-any.whl (44.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page