Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
Hint...
Hint...

What does the -v flag do in grep?

Code Block
grep -v *something*
Expand
Solution...
Solution...

Code Block

cat input.vcf | grep AF1=1 > output.vcf

Is not practical, since we will lose vital VCF formatting and may not be able to use this file in the future.

Code Block

cat input.vcf | grep -v AF1=0 > output.vcf

Will preserve all lines that don't have a AF1=0 value and is one way of doing this.

Code Block

sed -i '/AF1=0/ d' input.vcf

Is a way of doing it in-line and not requiring you to make another file.

Expand

Calling variants in reads mapped by BWA

...