Meaning of "%" in expressions for bcftools filter
1
1
Entering edit mode
8.8 years ago

The current bcftools HOWTO gives several examples of variant filtering, such as:

bcftools filter -i'%QUAL>20' calls.vcf.gz

What does the "%" mean? Why not simply using -i'QUAL>20' ?

I couldn't find details on this in the EXPRESSIONS section of the manual ("man bcftools").

bcftools • 3.3k views
ADD COMMENT
0
Entering edit mode

I'm curious about this as well. I know you have to put it in the single quotes so the shell doesn't think that you are want to to use the modulus function but I tried it both ways and got the same results. I saw earlier that the header format was %CHROM, etc. so maybe its more of a format/best practice kind of thing.

ADD REPLY
0
Entering edit mode
7.9 years ago
lstbl ▴ 40

This is because when you include a % inside of quotes, it will act as a stdin for the program.

See this post: http://serverfault.com/questions/274475/escaping-double-quotes-and-percent-signs-in-cron

ADD COMMENT

Login before adding your answer.

Traffic: 2810 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