AlexandrovLab / SigProfilerClusters

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.
BSD 2-Clause "Simplified" License
11 stars 1 forks source link

Errors during multiprocessing #23

Closed MousumyCSE closed 8 months ago

MousumyCSE commented 8 months ago

Hi,

I am getting multiprocessing error during running the SigProfilerClusters tool in an interactive python session. The command I used to run SigProfilerClusters: from SigProfilerClusters import SigProfilerClusters as hp hp.analysis("BRCA", "GRCh37", "96", ["288"], "/BRCA_example/", analysis="all", sortSims=True, subClassify=True, correction=True, calculateIMD=True, max_cpu=4, TCGA=True, sanger=False)

Here is the error that I got:

Picture1

Thanks!

MousumyCSE commented 8 months ago

Hi,

If we run the SigProfilerClusters tool with python script by defining the main function then it works fine. Here is how I am running:

from SigProfilerClusters import SigProfilerClusters as hp
def main_function():
   hp.analysis("BRCA", "GRCh37", "96", ["96"], "/Users/mousumykundu/Desktop/SigProfilerRepositories/SPC_matplotlib/SigProfilerClusters/examples/BRCA_example/", 
               analysis="all", sortSims=True, subClassify=True, correction=True, calculateIMD=True, max_cpu=4, TCGA=True, sanger=False)

if __name__=="__main__":
   main_function()

Thanks!