Hi, I'm using `lofreq` as my variant caller, and ...
# sarek
s
Hi, I'm using
lofreq
as my variant caller, and my output doesn't have any indels in it, even though
--call-indels
is specified in the default config for LoFreq in sarek. In the LoFreq docs, it says: "f you also want to call indels add --call-indels to the parameter list. Note, this will only work if your BAM file contains indel qualities." Does this mean that the BAM generated by sarek doesn't have indel qualities? I can't actually find a BAM file in my output to check, even though the sarek docs say there is one. Thanks!
t
I don't have experience with
lofreq
(yet, should look at some results soon), but the CRAMs (or BAMs if you chose) should be under
preprocessing
, and you have the choice of
markduplicates
or
recalibrated
. The latter were used for variant calling and were filtered by the targets if you specified
--intervals
. If they are not there, check the
.nextflow.log
for errors.
I'm not sure what "indel qualities" actually means -- is this related to the mapping quality, the base quality from sequencing, or a separate thing in a tag?
s
Their docs say it's the BI/BD tags in a BAM file
t
OK, I don't know if they are included. Check the files or the docs of the mapper (bwa-mem by default, I think, but you have choices).
s
If I used other variant calling tools (specifically strelka and freebayes) and I got indels with them, I assume that means I do have indel qualities in there? Unless that's not how those other algorithms work?
I'm reading the BWA docs now but struggling to figure it out, I didn't save the output as BAM so need to convert CRAM to BAM to actually check if they're there
t
No, I don't think the other variant callers use those tags. And you don't need to convert CRAMs, you can look at them with samtools or in IGV, but you may have to provide the genome FASTA in addition (use `samtools view -T /path/to/genome.fa ...`; if this is human, IGV can use the default genome at least for the canonical chromosomes, which are the most important).
s
Unfortunately I work with algae 😆 but good to know abou the other callers -- that does make me feel like it's not something actually wrong! I don't actually need indels, I just wanted to make sure nothing else was wrong, but whoever added lofreq might want to know that's the case, since based on the config they seem to have intended indels to be called!
t
If you work with non-model organisms, you'll have to provide the genome to IGV anyway, so it shouldn't make a difference if you use CRAM or BAM.
lofreq
was just added to the pipeline recently, I'll ask the developers about it.
🙌 1
f
I would suggest to use the other variant callers - is there a specific reason why you wanted to use lofreq?
a
BI/BD tags aren't used by GATK's BQSR anymore since quite some time. If you want to call INDELs with LoFreq, you need to add an additional step after BQSR (lofreq indelqual). Assuming that your samples are acutal pools of indiviudals and not single algae, LoFreq might indeed be a good choice of variant caller for your use case.