Hi Teresa,
Sorry, STITCH doesn't currently have that functionality, and it's unlikely I'll add it anytime soon, as it can be handled externally without much extra code, and the external option preserves your opportunity to parallelize as you see fit. Hopefully it shouldn't be too hard to run in either a cluster type environment, or within linux. So for example something like the below, having a file with a list of chromosomes, would allow you loop easily, or parallelize using something like gnu parallel. You could use the same technique on something like grid engine or slurm, on a task array of length the number of chromosomes, then define what chromosome to run within each job. After running something like the below, you could combine variants using something like GATK combine variants, or bcftools, or even using the pseudo-code below.
Hope that helps,
Best wishes,
Robbie
list_of_chr_file="something"
input=`cat "${list_of_chr_file}"`
chrs=($input)
for chr in $(seq 0 ${#chrs[@]})
do
STITCH.R --chr=$chr etc
done
## then use any of a variety of methods like gatk combine variants
## or something hacky like
giant_output_file="something"
gunzip -c ${first_chr_output_file} | head -n 2 > ${giant_output_file}
for chr in $(seq 0 ${#chrs[@]})
do
per_chr_output_file=${outputdir}/"stitch.${chr}.vcf.gz"
gunzip -c ${per_chr_output_file} | tail -n + 2 >> ${giant_output_file}
done
bgzip ${giant_output_file}
tabix ${giant_output_file}