I have a gzipped file that is too large to unzip and save. I'm looking to use zcat to unzip it and feed it into a java program that takes in multiple inputs. This program has the format:
java -jar GenomeAnalysisTK.jar \
-T FastaAlternateReferenceMaker \
-R refgen.fa \
-o output.fasta \
-V data.vcf
Where after -V is supposed to be the input from the gzipped file. I've tried something like:
zcat data.vcf.gz | java -jar GenomeAnalysisTK.jar \
-T FastaAlternateReferenceMaker \
-R refgen.fa \
-o output.fasta \
-V
But this does not work. How can I solve this issue?