Comments (9)
Although I have not yet been able to reproduce this issue, I suspect that this is the sequence of events:
- Calling python from the shell to run mantis.py triggers the bash alias to python3. As Python 3.5 runs with PYTHONPATH pointing to the 3.5 libraries, it runs fine.
- mantis.py calls a helper program kmer_repeat_counter.py. However, bash will only recognize alias if run through an interactive shell (as explained here). Therefore, Python 2.7 runs kmer_repeat_counter.py.
- PYTHONPATH is still pointing to the 3.5 libraries. Given syntactic differences between Python 2 and 3, Python 2.7 crashes upon attempting to import them.
This issue should be fixed by properly packaging MANTIS (see #20). Until then, this may be a potential workaround:
- Create a folder in your home directory.
- Softlink /usr/local/bin/python3.5 to a link named 'python' in that folder.
- Set PATH to contain that folder first (e.g.
export PATH=/path/to/python_folder:$PATH
) - Keep using your PYTHONPATH variable.
from mantis.
What command are you using to run MANTIS? Also, please run 'python -V' and post the output.
from mantis.
Thanks for your help.
Here is the command:
python mantis.py --bedfile msi.test.bed --genome /Volumes/Data/References/HiSeqAnalysisSoftware_UCSC_hg19/Homo_sapiens/UCSC/hg19/Sequence/WholeGenomeFasta/genome.fa -n ./Sample-N1-EX-KD.bam -t ./Sample-T1-EX-KD.bam -o msi.txt
pgmserver01 ~/MANTIS-master -> python -V
Python 3.5.1
from mantis.
We are investigating this; we are currently requesting to borrow a Mac (from our department) to attempt to reproduce your error.
from mantis.
The only other reference to this error I can find is https://stackoverflow.com/questions/38124761/import-site-failed-use-v-for-traceback
Which python are you using? Can you also show the output of which python
and which python3
?
from mantis.
from mantis.
Try this version: https://github.com/rbonneville/MANTIS/tree/iss021
from mantis.
Hello @jp3117, do you have any further questions regarding this issue?
from mantis.
from mantis.
Related Issues (20)
- MANTIS on Mouse samples HOT 3
- MANTIS output fails if path to output contains a dot and output file stem does not
- Microsatellite Loci BED File HOT 11
- Repeatfinder missing? HOT 1
- Issue running MANTIS HOT 12
- How to select MSI loci most predictive of a sample's status ?? HOT 2
- Remove the step of correct off-by-one error in MANTIS ?
- Issue in HOT 4
- Issue HOT 1
- Issue in runni HOT 1
- In README: make RepeatFinder
- interpreter mismatch HOT 2
- Failed to fetch sequence; Error with k-mer repeat count calculations; terminating program. HOT 5
- About MS loci BED file used in MANTIS HOT 1
- Is it possible that using MANTIS to analyze RNAseq data? HOT 2
- can't finish the process HOT 8
- Running Mantis on WGS Sample
- typo in module checking HOT 1
- Error with k-mer repeat count calculations; terminating program, which seems to be triggered by "_multiprocessing.SemLock Permission Denied" HOT 1
- Use the FASTA index to get chromosome ordering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mantis.