Hi, I am creating a module named pbsv for the pacv...
# modules
t
Hi, I am creating a module named pbsv for the pacvar pipeline. I wanted to add some test-data for this module, for pacbio aligned bam files, I tried using the bam files already in the pacbio folder in the genome folder available, however I am getting the error
Copy code
│     >|> 20241007 22:49:22.740 -|- FATAL -|- Run -|- 0x7fffffc61740|| -|- pbsv discover ERROR:  │
│ [pbbam] BAM header ERROR: read group ID not found
so it seems like the existing bam file isn't compatible with the package I'd like to run (perhaps because it was generated for the isoseq pipeline).
m
What about updating the BAM file with samtools addreplacerg to add a read group. Example command stolen from stackexchange:
Copy code
samtools addreplacerg \
-r "@RG\tID:1\tLB:lib1\tPL:illumina\tSM:$sampleName\tPU:runBarcode" \
-m overwrite_all \         // mode to replace all
-@ 5 \                     // number of cpus
-O b \                     // output bam
-o "$sampleName"_RG.bam \
"$sampleName".bam
t
I could try that, then I'd have to submit a PR updating that dataset to have read groups? Alternatively I have my own pacbio data I could add.
m
Either way is fine. Your own data may be more relevant in order to get a non-empty output from pbsv. In both cases you’d have to make a PR onto test-datasets.
✅ 1