# HG changeset patch # User devteam # Date 1385309523 18000 # Node ID 799feac145c8abe5ebb4052278edf0c62ab43a8f Uploaded diff -r 000000000000 -r 799feac145c8 test-data/1.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/1.vcf Sun Nov 24 11:12:03 2013 -0500 @@ -0,0 +1,27 @@ +##fileformat=VCFv4.1 +##FILTER= +##FILTER= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT== 15"> +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##INFO== 15"> +##INFO= +##INFO= +##INFO= +##INFO= +##source=VarScan2 +#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample7 +chr1 14653 . C T . PASS ADP=30;HET=7;HOM=0;NC=0;WT=0 GT:GQ:SDP:DP:RD:AD:FREQ:PVAL:RBQ:ABQ:RDF:RDR:ADF:ADR 0/1:0:18:18:13:5:27.78%:9.8E-1:37:38:7:6:5:0 +chr1 14907 . A G . PASS ADP=18;HET=2;HOM=2;NC=1;WT=2 GT:GQ:SDP:DP:RD:AD:FREQ:PVAL:RBQ:ABQ:RDF:RDR:ADF:ADR 0/1:0:19:19:5:8:61.54%:9.8E-1:37:18:5:0:5:3 +chr1 14930 . A G . PASS ADP=19;HET=2;HOM=2;NC=1;WT=2 GT:GQ:SDP:DP:RD:AD:FREQ:PVAL:RBQ:ABQ:RDF:RDR:ADF:ADR 0/1:0:24:22:5:11:68.75%:9.8E-1:35:24:4:1:5:6 diff -r 000000000000 -r 799feac145c8 test-data/2.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/2.vcf Sun Nov 24 11:12:03 2013 -0500 @@ -0,0 +1,25 @@ +##fileformat=VCFv4.1 +##FILTER= +##FILTER= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT== 15"> +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##FORMAT= +##INFO== 15"> +##INFO= +##INFO= +##INFO= +##INFO= +##source=VarScan2 +#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample7 +chr1 14907 . A G . PASS ADP=18;HET=2;HOM=2;NC=1;WT=2 GT:GQ:SDP:DP:RD:AD:FREQ:PVAL:RBQ:ABQ:RDF:RDR:ADF:ADR 0/1:0:19:19:5:8:61.54%:9.8E-1:37:18:5:0:5:3 diff -r 000000000000 -r 799feac145c8 test-data/out.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/out.vcf Sun Nov 24 11:12:03 2013 -0500 @@ -0,0 +1,6 @@ +##fileformat=VCFv4.1 +##source_20130524.1=vcf-isec(r797) 1.vcf.header.gz 2.vcf.header.gz +##sourceFiles_20130524.1=0:1.vcf.header.gz,1:2.vcf.header.gz +##INFO= +#CHROM POS ID REF ALT QUAL FILTER INFO +chr1 14907 . A G . PASS ADP=18;HET=2;HOM=2;NC=1;WT=2;SF=0,1 GT:GQ:SDP:DP:RD:AD:FREQ:PVAL:RBQ:ABQ:RDF:RDR:ADF:ADR 0/1:0:19:19:5:8:61.54%:9.8E-1:37:18:5:0:5:3 diff -r 000000000000 -r 799feac145c8 tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Sun Nov 24 11:12:03 2013 -0500 @@ -0,0 +1,6 @@ + + + + + + diff -r 000000000000 -r 799feac145c8 vcftools_isec.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vcftools_isec.xml Sun Nov 24 11:12:03 2013 -0500 @@ -0,0 +1,63 @@ + + multiple VCF datasets + + + tabix + vcftools + + + + ## Preprocessing for each dataset. + #set dataset_names = [] + #for i, $input in enumerate( $inputs ): + ## Sort file. + vcf-sort ${input.file} > ${i}.vcf.sorted ; + + ## Compress. + bgzip ${i}.vcf.sorted ; + + ## Index. + tabix -p vcf ${i}.vcf.sorted.gz ; + + #silent dataset_names.append( str($i) + '.vcf.sorted.gz' ) + #end for + + ## Intersect. + vcf-isec -f + #if $complement: + -c + #end if + #echo ' '.join( dataset_names ) # > ${output} + + + + + + + + + + + + + + + + + + + + + + Please see the VCFtools `documentation`__ for help and further information. + + .. __: http://vcftools.sourceforge.net/docs.html + +