PacificBiosciences / FALCON_unzip

Making diploid assembly becomes common practice for genomic study
BSD 3-Clause Clear License
30 stars 18 forks source link

fail to open a sam file #65

Open IEkAdN opened 7 years ago

IEkAdN commented 7 years ago

Hello.

FALCON_unzip fails with the error below(4-quiver/track_reads_h/pwatcher.dir/stderr). I think it failed to create a sam file for some reason. How can I avoid this problem ?

. . . samfile_fn:'/scratch/hoge/FU_1701151949/4-quiver/reads/000613F_002.sam' samfile_fn:'/scratch/hoge/FU_1701151949/4-quiver/reads/000053F_008.sam' samfile_fn:'/scratch/hoge/FU_1701151949/4-quiver/reads/000083F_022.sam' [E::hts_open_format] fail to open file '/scratch/hoge/FU_1701151949/4-quiver/reads/000083F_022.sam' /scratch/hoge/FU_1701151949/4-quiver/track_reads_h/track_reads_h.sh: line 9: 7124 segmentation fault fc_select_reads_from_bam.py --basedir ../.. /scratch/hoge/FU_1701151949/input_bam.fofn touch /scratch/hoge/FU_1701151949/4-quiver/track_reads_h/track_reads_h_done.exit

real 234m16.529s user 931m6.059s sys 37m34.987s returned: 256

pb-jchin commented 7 years ago

You samtools or pysam installation may not be able to handle the files.

IEkAdN commented 7 years ago

Thank you for your quick reply. I added ${FALCON_unzip_38de578_install_dir}/lib/python2.7/site-packages to the top of PYTHONPATH, and assigned ${smrtlink_3.1.1_install_dir}/smrtcmds/bin to smrt_bin in fc_unzip.cfg. Doesn't it mean that I ran FALCON_unzip with the expected version of samtools and pysam ?

IEkAdN commented 7 years ago

In the directory ${FALCON_unzip_38de578_install_dir}/lib/python2.7/site-packages, there is a directory pysam-0.9.1.4-py2.7-linux-x86_64.egg/, so I thought pysam was automatically installed when I installed FALCON_unzip. Is it right ?

And when I installed FALCON_unzip, messages below were output. Are these related to this problem ?

package init file 'samtools/init.py' not found (or not a regular file) package init file 'bcftools/init.py' not found (or not a regular file) package init file 'samtools/win32/init.py' not found (or not a regular file) package init file 'htslib/init.py' not found (or not a regular file) package init file 'htslib/htslib/init.py' not found (or not a regular file)