Hi, I'm trying to work with sequenza in order to calculate HRD score of a sample using WES data. When I run sequenza, I get a message saying that "chromosomes are out of order", and I don't know how to solve it, so if you could help me I would really appreciate it.
This is the code I'm using:
sequenza-utils bam2seqz -gc hg38/hg38.wig.gz --fasta hg38/hg38.fa -n MCF10A/SRR3090727_recall_reads.bam -t MDA-MB-231/SRR1021654_recall_reads.bam -C chr1 chr2 chr3 chr4 chr5 chr6 chr7 chr8 chr9 chr10 chr11 chr12 chr13 chr14 chr15 chr16 chr17 chr18 chr19 chr20 chr21 chr22 chr23 chr24 chrX --output sample.seqz.gz
`
and this is the output I get:
[mpileup] 1 samples in 1 input files
[mpileup] 1 samples in 1 input files
[E::bam_plp_push] [E::bam_plp_push] The input is not sorted (chromosomes out of order)The input is not sorted (chromosomes out of order)
samtools mpileup: error reading from input file
samtools mpileup: error reading from input file
The bam files were sorted using picard's SortSam tool, so I don't really understand what is happening.
Thanks in advance!
when I run
I get
and tail
This error seems to come from the samtools mpileup, run that command on each bam file to troubleshoot. Maybe resort?