Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'MOVBBirthMergeAlg' #19

Open
ycl6 opened this issue May 22, 2018 · 2 comments
Open

AttributeError: 'module' object has no attribute 'MOVBBirthMergeAlg' #19

ycl6 opened this issue May 22, 2018 · 2 comments

Comments

@ycl6
Copy link

ycl6 commented May 22, 2018

I installed THetA and bnpy using source files from github, but encounter this error:

/tools/THetA/bin/RunTHetA tumor.interval_count \
--TUMOR_FILE tumor.snp_formatted.txt --NORMAL_FILE normal.snp_formatted.txt \
--BAF --NUM_PROCESSES `nproc` --FORCE
Reading in query file...
Frac with potential copy numbers: 0.0734379924922
Reading SNP file at tumor.snp_formatted.txt
Reading SNP file at normal.snp_formatted.txt
Reading interval file at tumor.interval_count
Calculating BAFs
Determining heterozygosity.
Calculating BAFs.
First round of clustering...
Traceback (most recent call last):
  File "/tools/THetA/bin/../python/RunTHetA.py", line 514, in <module>
    main()
  File "/tools/THetA/bin/../python/RunTHetA.py", line 291, in main
    resultsfile2, boundsfile2 = run_fixed_N(2, args, intervals)
  File "/tools/THetA/bin/../python/RunTHetA.py", line 328, in run_fixed_N
    lengths, tumorCounts, normalCounts, m, upper_bounds, lower_bounds, clusterAssignments, numClusters, clusterMeans, normalInd = clustering_BAF(n, intervals=intervals, missingData=missingData, prefix=prefix, outdir=directory, numProcesses=num_processes)
  File "/tools/THetA/python/ClusteringBAF.py", line 99, in clustering_BAF
    metaData = generate_meta_data(intervals, byChrm, numProcesses, sampleName, generateData, outdir)
  File "/tools/THetA/python/ClusteringBAF.py", line 152, in generate_meta_data
    results = p.map(cluster_wrapper, zip(intervals, linearizedSampleName, linearizedChrm, linearizedGenerateData))
  File "/storage/miniconda2/lib/python2.7/multiprocessing/pool.py", line 253, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/storage/miniconda2/lib/python2.7/multiprocessing/pool.py", line 572, in get
    raise self._value
AttributeError: 'module' object has no attribute 'MOVBBirthMergeAlg'

@zhouyangyu
Copy link

@ycl6 You must use bnpy-dev. See https://[email protected]/michaelchughes/bnpy-dev

@simozacca
Copy link
Contributor

Yes, the current version of THetA only supports the bnpy-dev version of BNPY which is available here: https://bitbucket.org/michaelchughes/bnpy-dev/src/master/

There is also an easy fix that you can apply directly, please see the same topic in the HATCHet's repository at: raphael-group/hatchet#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants