how to change the 'bcftools plugin' temp directory
1
0
Entering edit mode
15 months ago
evoecogen ▴ 30

Hi, \ I am using the bcftools plugin 'liftover',

cat input.vcf | bcftools +liftover --threads 10 -Oz -o output.liftover.vcf.gz -- -s original_reference.fna -f new_reference.fna -c original_to_new.chain 2>liftover.log

but my runs fail with the following error:

[main_plugin] Error: cannot write to Perognathus_filtered.liftover.vcf.gz

Based on some browsing, I gather this is related to memory, possibly bcftools writing too much to the default /tmp. How to change this directory? samtools has the -T flag, but for bcftools plugins -T means something else. I tried simply changing TMPDIR, to no avail. \ Any suggestions will be greatly appreciated!

bcftools liftover tmp htslib • 1.2k views
ADD COMMENT
0
Entering edit mode

I cannot see "Perognathus_filtered.liftover.vcf.gz" in your command line ? Are you sure you have the rights to write in the directory ?

ADD REPLY
0
Entering edit mode

I haven't seen this this liftover plugin elsewhere. Where is this from?

ADD REPLY
1
Entering edit mode
ADD REPLY
0
Entering edit mode

having seen this one, looks intereseting, thanks ^^

ADD REPLY
0
Entering edit mode
15 months ago

There are no memory requirements for bcftools +liftover as it does not automatically resort the output VCF (you can achieve that piping the output into bcftools sort though). Are you sure this is not something related to filesystem permissions? What happens if you try to output the VCF on standard output or on /dev/null? Do you get the same error? Also, the --threads option is only used to compress and decompress faster so you most likely don't need to use that many threads. The +liftover tool itself is not multi-threaded as it is already extremely fast (~10x faster than Picard LiftoverVcf)

ADD COMMENT

Login before adding your answer.

Traffic: 1971 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6