Hello,
I obtained my .bam files from the nf-core/methylseq using the bwa-mem workflow instead of the Bismark one as stated in the documentation. I have copied the description as an image below.

My .bam files have been aligned and sorted, so as far as I understand, I should be able to produce methylation call files for each sample and then use methRead to create the methylrawList object.
My code reads as follows:
> my.methRaw=processBismarkAln(location = "PN0341_0001_S1_L001_R1_001.sorted.markDups.bam",sample.id="test1",assembly="hg19",read.context="CpG",save.folder=getwd())
But I keep getting this as an output:
Trying to process:
PN0341_0001_S1_L001_R1_001.sorted.markDups.bam
Using htslib.
Error in methCall(read1 = location, type = "bam", nolap = nolap, minqual = minqual, :
no methylation tag found for bam file PN0341_0001_S1_L001_R1_001.sorted.markDups.bam
If I understand correctly, the problem is with the .bam file, but as I am not too experienced in this, I would like to know if there is any way to overcome this problem or if methylKit can only read .bam files that come from Bismark instead.
I appreciate any help that you could provide in this matter.
Alejandra