Closed chris-cheshire closed 2 years ago
From your error message, I do not think this is a Chromap error. It seems that there is something wrong with a package you were using called singularity. And Chromap does not have such dependency. This makes me wonder how you installed Chromap. And can you provide more details about the OS or compiler you were using?
We are using the tool as part of a Nextflow pipeline. I wrapped the tool in a Docker container
ARG BASE_CONTAINER=nfcore/base:2.1
FROM $BASE_CONTAINER
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libz-dev \
build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home
RUN git clone https://github.com/haowenz/chromap.git
WORKDIR /home/chromap
RUN make
ENV PATH /home/chromap:$PATH
WORKDIR /home
When we run the pipeline on the cluster, we use Singularity to run docker containers - which are automatically converted to singularity images. This bug looks like its something to do with how chromap interacts with the singularity container.
I will investigate on my side as well
Sorry this is a duplicate of https://github.com/haowenz/chromap/issues/65
I did not see the full error -
Start to map reads.
Parameters: error threshold: 8, min-num-seeds: 2, max-seed-frequency: 500,1000, max-num-best-mappings: 1, max-insert-size: 2000, MAPQ-threshold: 30, min-read-length: 30, bc-error-threshold: 1, bc-probability-threshold: 0.90
Number of threads: 12
Analyze single-cell data.
Will try to remove adapters on 3'.
Will remove PCR duplicates after mapping.
Will remove PCR duplicates at cell level.
Won't allocate multi-mappings after mapping.
Only output unique mappings after mapping.
Only output mappings of which barcodes are in whitelist.
Perform Tn5 shift.
Output mappings in BED/BEDPE format.
Reference file: genome.fa
Index file: genome.index
1th read 1 file: scatac_4_1_val_1.fq.gz
1th read 2 file: scatac_4_2_val_2.fq.gz
1th cell barcode file: scatac_4.cellbc.fastq.gz
Cell barcode whitelist file: hydrop_atac_1_0_whitelist_wadpt.tsv
Output file: genome.bed
Loaded all sequences successfully in 4.36s, number of sequences: 195, number of bases: 3099922541.
Kmer size: 17, window size: 7.
Lookup table size: 393150044, occurrence table size: 444597151.
Loaded index successfully in 5.04s.
chromap: src/chromap.cc:4804: void chromap::Chromap<MappingRecord>::LoadBarcodeWhitelist() [with MappingRecord = chromap::PairedEndMappingWithBarcode]: Assertion `khash_return_code != -1 && khash_return_code != 0' failed.
/camp/lab/luscomben/home/users/cheshic/projects/2022_01_scatac_pilot_1/test_pipeline/work/7e/ddcc799a9b5c34911baf168d49dd1b/.command.sh: line 11: 14097 Aborted chromap -t 12 -r genome.fa -x genome.index -1 scatac_4_1_val_1.fq.gz -2 scatac_4_2_val_2.fq.gz -b scatac_4.cellbc.fastq.gz --barcode-whitelist hydrop_atac_1_0_whitelist_wadpt.tsv -o genome.bed --preset atac
SIGABRT: abort
PC=0x472a9b m=0 sigcode=0
Good to know. I will close this issue.