Closed rnbatra closed 1 year ago
Hi,
I quickly went through bam2pat.py
and it seems like I forgot to print the informative error message in one place. For the case where the chromosomes in the bam files do not match the chromosomes in the reference fasta.
So,
wgbstools bam2pat
command with the --verbose
flag. It will print the subprocess commands it tries to run, that are probably failing.As for the solution, you should run wgbstools init_genome REF_NAME --fasta_path FASTA_PATH
, to initialize wgbstools
with the reference that matches your bam file.
If you are working with more than one reference fasta files, you can always switch between them with wgbstools set_default_ref --name NAME
.
Hi, Thank you for the update. Yes, I did realise the chromosome naming issue. It works now!
We used
bwamem
to create a bam file, and thensambamba
for duplication removal. Unfortunately, bam2pat does not work. Would you have any suggestions to move forward? Thanks!