NFCORE_RNAVAR:RNAVAR:GATK4_MERGEVCFS fails with error "has sample entries that don't match the other files"
This is something that happens when running with --annotate_tools merge, and it also happens with --annotate_tools VEP and the issue is only spotted when running input samplesheets with more than one sample.
For the first command the full error said:
java.lang.IllegalArgumentException: Input path K562_REP2_13scattered_5scattered.vcf.gz has sample entries that don't match the other files.
And when looking at the file, I saw that the K562_REP2_13scattered_5scattered.vcf.gz VCF file contained an incorrect sample:
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT GM12878_REP1
While it should look like the other files, for example K562_REP2_10scattered.vcf:
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT K562_REP2
It seems that the files from different samples are getting mixed up somewhere
Command used and terminal output
First command:
nextflow run nf-core/rnavar -r dev -latest -profile bi,cluster --outdir . --annotate_tools merge --input https://raw.githubusercontent.com/nf-core/test-datasets/rnavar/samplesheet/v1.0/samplesheet_full.csv -c ../config.config -resume
Second command:
nextflow run nf-core/rnavar -r dev -latest -profile bi,cluster --input ../input_backup.csv --outdir . --annotate_tools merge -resume -c ../config.config
Description of the bug
NFCORE_RNAVAR:RNAVAR:GATK4_MERGEVCFS fails with error "has sample entries that don't match the other files"
This is something that happens when running with --annotate_tools merge, and it also happens with --annotate_tools VEP and the issue is only spotted when running input samplesheets with more than one sample.
For the first command the full error said:
And when looking at the file, I saw that the K562_REP2_13scattered_5scattered.vcf.gz VCF file contained an incorrect sample:
While it should look like the other files, for example K562_REP2_10scattered.vcf:
It seems that the files from different samples are getting mixed up somewhere
Command used and terminal output
Relevant files
The samplesheet contains these samples:
The config file contains reference file information, and the input_backup.csv contains a list of samples, similar to the samplesheet_full.csv
System information
nf-core/rnavar -r dev