Hi, I'm getting an error using StrainPhlan, when I run sample2markers.py. [This is a repost since the original had poor formatting]
I have looked at other messages regarding this error and the usual advice is to ensure that bcftools 0.1.19 is running. I have done that, including by pointing directly to bcftools using the bcftools_exe flag. Yet I still get the same error. Any advice on troubleshooting this would be greatly appreciated
Command:
python2.7 ../strainphlan_src/sample2markers.py --ifn_samples sams/sampleE.sam.bz2 --input_type sam --output_dir consensus_markers --nprocs 28 --bcftools_exe ~/bin/bcftools &> consensus_markers/logE.txt
Error:
cat consensus_markers/logE.txt
Traceback (most recent call last):
File "/home/ec2-user/metaphlan2/strainphlan_src/ooSubprocess.py", line 244, in wrapper
return f(*args, **kwargs)
File "../strainphlan_src/sample2markers.py", line 401, in run_sample
bcftools_exe=args['bcftools_exe'])
File "../strainphlan_src/sample2markers.py", line 252, in sam2markers
stderr=error_pipe)
File "/home/ec2-user/metaphlan2/strainphlan_src/ooSubprocess.py", line 181, in chain
%(' | '.join(self.chain_cmds), return_code))
ooSubprocessException: Failed when executing the command: dump_file.py --input_file sams/sampleE.sam.bz2
return code: 1
Versions:
$ samtools
Program: samtools (Tools for alignments in the SAM format)
Version: 0.1.19-44428cd
$ ~/bin/bcftools
Program: bcftools (Tools for data in the VCF/BCF formats)
Version: 0.1.19-44428cd
I also tried separately installing samtools-0.1.19 and using the bcftools therein (and pointing to it using --bcftools_exe) but there was no change. This is the second version of bcftools I tried:
$ temp/samtools-0.1.19/bcftools/bcftools
Program: bcftools (Tools for data in the VCF/BCF formats)
Version: 0.1.19-44428cd
Linux OS:
$ cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"