Open Flooooooooooooower opened 3 months ago
Hi, I'll try lra on some fastq I have and I'll let you know.
Did you see any warning or error while running the previous steps (i.e., smooth and search)?
Best,
I tried lra but after smoothing, the samtools index
failed
[E::bam_read1] CIGAR and query sequence lengths differ for m64062_200604_115437/45811539/ccs
samtools index: failed to create index for "hg007.lra.smoothed.bam"
I checked that read in the lra bam and I found that it's cigar is: 68=1X4=...18=5D5S
. I think that having a deletion followed by a soft clip may create issue in the smoothing step. Can you please check if you have a similar error while indexing the smoothed bam file?
If not, can you please share where I can get the fastq you are using? I think I can replicate the error that way.
Best,
Hello, the data I used is the ultra-long ONT data of HG002: ftp://ftp-trace.ncbi.nlm.nih.gov/ReferenceSamples/giab/data/AshkenazimTrio/HG002_NA24385_son/UCSC_Ultralong_OxfordNanopore_Promethion/GM24385_2.fastq.gz 885e56952b657af9abc7ca644151411e. However, I did not encounter the samtools index failure error. Below is the command I used for alignment with LRA:
#apptainer exec ${container}/lra.sif lra index -ONT ${ref}
zcat ${sample} | apptainer exec ${container}/lra.sif lra align -ONT ${ref} /dev/stdin -t ${threads} -p s --printMD -SkipH >${output}/${name}_lra.align.sam
apptainer exec ${container}/AssemblyTools_v1.sif samtools sort -@ ${threads} -O BAM -o ${output}/${name}_lra.sort.bam ${output}/${name}_lra.align.sam
apptainer exec ${container}/AssemblyTools_v1.sif samtools index -@ ${threads} ${output}/${name}_lra.sort.bam
Hi, the issue is that in some regions (like the one in the screenshot) potential SV are very long.
When SVDSS try to create the consensus (via abpoa
), it fails due to not enough memory (or something like that). These cases are not expected with HiFi reads that are way shorter than ONT. The only patch I can think of for now is to filter out those regions. I prepared this patched binary. I tried it on the lra bam and it should work - please try and let me know.
However, I'd like to point out that we developed SVDSS to work with HiFi data and not ONT - although it could work, results may not be the best. We are currently working on extending the approach to ONT, but it's not ready yet.
When I used LRA to align the HG002 ONT data and ran the following code, I did not get any results. However, other alignment software worked fine.
I would greatly appreciate it if you could help me identify the error!!!!