This is a test version of Biostars. For the public version, visit https://www.biostars.org.
freebayes for variant calling too slow

Hi All,

I am using freebayes to call variants mainly SNPs from 200 samples. I have created bam files by aligning RNA-seq fastq files to the transcriptome. I want to make a vcf file with SNPs from all the samples. However, it seems to run fairly slow and job is not complete after three days. I am not sure if there is something wrong or is it normal speed? Thank you

freebayes  -f  transcriptome.fasta bam1 bam2-------bam200 > result_file.vcf
rna-seq snp

1 answer

Freebayes is running in a single core, in general, you can split the task per chromosome, check the parallel script https://github.com/ekg/freebayes/blob/master/scripts/freebayes-parallel

Is it a python script? Is there a way to split the regions in linux and use multi-threading. Thank you!

That is pure BASH using GNU parallel

I meant the script to generate chunks of regions.

Log in to answer this question.