Hello everyone,
I am trying to run the gstacks with the following command line:
gstacks -I /home/.mlatorre/bioinfo/aligned_stacks -O /home/.mlatorre/bioinfo/stacks -M /home/.mlatorre/bioinfo/aligned_stacks/popmap_qc.txt --rm-pcr-duplicates -t 28
and I got this output:
Logging to '/home/.mlatorre/bioinfo/aligned_stacks/gstacks.log'.
Locus/sample distributions will be written to '/home/.mlatorre/bioinfo/aligned_stacks/gstacks.log.distribs'.
Configuration for this run:
Input mode: reference-based
Population map: '/home/.mlatorre/bioinfo/aligned_stacks/popmap_qc.txt'
Input files: 165, e.g. '/home/.mlatorre/bioinfo/aligned_stacks/AZU1.bam'
Output to: '/home/.mlatorre/bioinfo/aligned_stacks/'
Model: marukilow (var_alpha: 0.01, gt_alpha: 0.05)
Discarding unpaired reads.
Removing PCR duplicates.
Reading BAM headers...
Processing all loci...
Error: No BAM records.
Error: (At the 0th record in file '/home/.mlatorre/bioinfo/aligned_stacks/Qcas5_3_10.bam'.)
Aborted.
I thought that the bam files could be corrupted, so I run the following command to check any possible error:
picard ValidateSamFile I=Qcas5_3_10.bam MODE=SUMMARY
The output indicates that files have no errors:
[Thu Jun 29 23:41:39 CST 2023] picard.sam.ValidateSamFile INPUT=Qcas5_3_10.bam MODE=SUMMARY MAX_OUTPUT=100 IGNORE_WARNINGS=false VALIDATE_INDEX=true IS_BISULFITE_SEQUENCED=false MAX_OPEN_TEMP_FILES=8000 VERBOSITY=INFO QUIET=false VALIDATION_STRINGENCY=STRICT COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false GA4GH_CLIENT_SECRETS=client_secrets.json
[Thu Jun 29 23:41:39 CST 2023] Executing as ..... on Linux 5.15.0-58-generic amd64; OpenJDK 64-Bit Server VM 17.0.7+4-jvmci-23.0-b10; Picard version: 1.141(8ece590411350163e7689e9e77aab8efcb622170_1447695087) IntelDeflater
No errors found
I do not know what is wrong with this. Does anyone have an idea or a suggestion for checking bam files?
PD: data are GBS paired-end and were aligned to a reference genome in bwa mem and then converted to bam file and sorted using samtools.
Thank you in advance
María Camila