Stampy make fails
1
0
Entering edit mode
3.4 years ago
shpak.max ▴ 50

I obtained the most recent version of Stampy from github, and makefile execution fails.

Specifically, as instructed I ran

make python=python2.7

because the default python is 3 on our server, and I get the following error. I'm not sure what to do about the fatal error: Python.h No file or directory and the python2.7-config command not found. I have a standard installation of Python 2.7.18

sudo make python=python2.7
make[1]: Entering directory '$HOME/alignment_software/stampy'
mkdir -p build//pyx
ln -s -f `pwd`/pyx/ucs4/maptools.c pyx/maptools.c
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC `python2.7-config   --includes` -c pyx/maptools.c -o build//pyx/maptools.o
/bin/bash: python2.7-config: command not found
pyx/maptools.c:4:10: fatal error: Python.h: No such file or directory
4 | #include "Python.h"
  |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [makefile:39: build//pyx/maptools.o] Error 1
Stampy • 1.3k views
ADD COMMENT
0
Entering edit mode

Can I ask why specifically stampy? I myself date back from the time that aligner was cutting-edge (so I liked that one as well), however recent aligners are much more performant and accurate.

ADD REPLY
0
Entering edit mode

I inherited a pipeline for an unfinished data analysis project and wanted my results to be consistent with those of my predecessor on the study.

What newer tools accomplish the same things as stampy (i.e. optimized for alignments of CNV-rich regions and other reads that BWA etc may miss)?

ADD REPLY
0
Entering edit mode

valid reason indeed :)

it seems indeed you ran into some technical issue there, perhaps still a conflict in the python versions? I'm no expert in this so can't help you much further I'm afraid.

ADD REPLY
0
Entering edit mode

What are your preferred, more up to date aligners? If I can't get stampy to work, I may need to use something else to pick up on the CNV-enriched reads that BWA couldn't align, even if it means some inconsistency with the analyses that my predecessor performed.

ADD REPLY
0
Entering edit mode
10 months ago

A little late, but better late than never. I encountered the same issue and I managed to resolve the error by installing pyton2.7-dev by running:

sudo apt-get install python2.7-dev

I think this is an error with the installation of python2 into Ubuntu 20 and above, which does not have native python2.

ADD COMMENT

Login before adding your answer.

Traffic: 2780 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6