Open nitishnih opened 3 years ago
Please can you:
errno: No such file or directory
chr
prefix (Y:2934912
).Our internal large-scale CI ran with no errors on the 4.2.1 release.
Thanks for your response, @keiranmraine
setup.sh
alleleCounter -l gender.loci -b test.bam -o test.out
. This is how we tested previous versions of alleleCount installed on our cluster.The complete command line is alleleCounter -l gender.loci -b test.bam -o test.out
I am not sure about this either, but I ran samtools view -H test.bam
and include the output in the full log
Either I am testing the new version of alleleCount incorrectly or I am incorrectly installing the latest version, which differs from how we installed previous versions.
I can confirm a change in the htslib behaviour causes this (1.10 I suspect). I believe it was intended to ensure that applications notice that a contig isn't in the file. We'll have to look into this in more depth.
The problem is that the BAM file that you are using only contains chr 22 (without prefix) but the gender.loci only looks at Y. A BAM file with data for a single chromosome can be processed, BUT a full complement of contigs need to be listed in the @SQ
headers due to this
You would need to use the loci_22.txt
or loci_snp6.txt
files with test.bam
, otherwise you aren't testing any counts (although this is run during the install).
Thanks @keiranmraine for the clarification. That makes sense!
Hi
I got the similar error with alleleCounter(v4.3.0) too!
alleleCounter -l $myPath1/G1000_loci_hg38_chr1.txt -b $myPath2/ABCD_hg38_bwa_sort_rmdup.bam -o out_chr1.txt
And it outputs this info: Reading locis Done reading locis [E::sam_itr_next] Null iterator [ERROR] (src/bam_access.c: bam_access_get_position_base_counts:454 errno: No such file or directory) Error detected (-2) when trying to iterate through region. [ERROR] (./src/alleleCounter.c: main:448 errno: None) Error retrieving stats from bam file for position 1:809641 Segmentation fault (core dumped)
Could you please give me some advice? Thanks
Sunna
Could you check the chromosome names between your loci and bam files are consistent. The default for hg38 is to include the chr prefix but your loci file looks to contain position 1:809641 and not chr1:809641
Hi,
I recently installed alleleCount v4.2.1 on an HPC cluster using gcc 7.4.0. The installation ran without any problems. However, when testing with example data I receive a long error message, see attached, but here is the top section:
The command run was:
alleleCounter -l gender.loci -b test.bam -o test.out
The input files gender.loci and test.bam are from this repository. Running the same command with v4.0.0 works without any errors.
Can you help troubleshoot the problem? Thanks.