Hello,
I have been using the pbmm2 tool for alignment of long reads. It takes input of the movie.bam files and does the alignment
I get this error:
>|> 20240621 15:14:23.782 -|- INFO -|- AlignSettings -|- 0x2b85319d8340|| -|- Using 6 threads for alignments, 2 threads for sorting, and 1.5G bytes RAM for sorting.
>|> 20240621 15:14:23.783 -|- INFO -|- CheckPositionalArgs -|- 0x2b85319d8340|| -|- READ input file: smrtcells/ready/0006-104/m84177_240228_161820.hifi_reads.bam
>|> 20240621 15:14:23.783 -|- INFO -|- CheckPositionalArgs -|- 0x2b85319d8340|| -|- REF input file: reference/human_GRCh38_no_alt_analysis_set.fasta
>|> 20240621 15:14:23.866 -|- FATAL -|- CheckPositionalArgs -|- 0x2b85319d8340|| -|- pbmm2 align ERROR: Could not determine read input type(s). Please do not mix data types, such as BAM+FASTQ. File of files may only contain BAMs or datasets.
Has anyone solved this issue. I tried converting the hifi_reads_movie bam file to fasta and fastq formats to check. Deletion or inclusion of fastq and fasta files does not change anything. It will be helpful if someone can share their experience with this issue
Thank you
Have you checked the
bam
file withsamtools view
to make sure it looks ok. Runningsamtools quickcheck -vvvv
may also be useful.Thank you. I ran with samtools, the bam file looks fine
Which command did you use with pbmm2?
I run the command in snakemake pipeline. Please find the attached snapshot that is shown as error in the rules
log file is posted along with question above
This is rules given in snakemake file:
.
Posting errors as screenshots makes thing very difficult to see. If is unclear if there are weird characters in your command or you appear to have tried to redact part of the sample names (which is fine to do and easier when dealing with text). Looks like the error is in your rule. I am not a snakemake person so someone else may chime in.