<div dir="ltr">Hi Pierre,<div><br></div><div>Thanks for finding this - it looks like the way the VEP is parsing bigWig files is a bit messed up. I'll take a look.</div><div><br></div><div style>Regarding the VCF, currently there's no way to get anything but either the identifier (the third column of the VCF) or the coordinates - this is the last parameter as described here <a href="http://www.ensembl.org/info/docs/variation/vep/vep_script.html#custom_options">http://www.ensembl.org/info/docs/variation/vep/vep_script.html#custom_options</a></div>
<div style><br></div><div style>A plugin might not be much help, as this jumps in after the custom annotation has been added, and the only data retained in memory is the chrom, start, end and name/identifier - the rest of the data from the VCF (or whatever custom file) is not kept. The plugin would have to re-read the data from file, which is not too complex to do (see cache_custom_annotation in VEP.pm for the code we use).</div>
<div style><br></div><div style>VCFtools has some components that may be of use to you - I know others have used vcf-annotate.</div><div style><br></div><div style>Hope this helps</div><div style><br></div><div style>Will McLaren</div>
<div style>Ensembl Variation</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 February 2013 15:21, Pierre Lindenbaum <span dir="ltr"><<a href="mailto:pierre.lindenbaum@univ-nantes.fr" target="_blank">pierre.lindenbaum@univ-nantes.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I cannot make VEP working with a bigwig file.<br>
<br>
In the following script, I<br>
<br>
* create a VCF with one variation<br>
* create a wig file with one range overlaping the variation<br>
* convert the wig to bigwig<br>
* annotate the variation with VEP:<br>
<br>
    echo "fixedStep chrom=22 start=38823000 step=1 span=1000" > test.wig<br>
    echo "99" >> test.wig<br>
    echo "<a href="tel:22%20%20%20%2048823000" value="+12248823000" target="_blank">22    48823000</a>">> chrominfo.txt<br>
    /path/to/ucsc/wigToBigWig test.wig chrominfo.txt <a href="http://test.bw" target="_blank">test.bw</a><br>
    /path/to/ucsc/bigWigSummary <a href="http://test.bw" target="_blank">test.bw</a> 22 38823170 38823190 1<br>
    99<br>
    echo "##fileformat=VCFv4.1" > test.vep.vcf<br>
    echo "#CHROM    POS    ID    REF    ALT    QUAL    FILTER INFO" >> test.vep.vcf<br>
    echo "22    38823180    .    G    T    100.0    .    ." >> test.vep.vcf<br>
    /path/to/variant_effect_<u></u>predictor/<a href="http://variant_effect_predictor.pl" target="_blank">variant_effect_<u></u>predictor.pl</a> --write_cache  --cache --dir cache  \<br>
             --fasta human_g1k_v37.fasta \<br>
             --format vcf --force_overwrite -\<br>
             --custom  <a href="http://test.bw" target="_blank">test.bw</a>,MYBIGWIG,bigwig,<u></u>overlap,0 \<br>
             -i  test.vep.vcf -o test.vep.txt<br>
<br>
Here is the output:<br>
<br>
<br>
2013-02-26 16:31:56 - Checking/creating FASTA index<br>
2013-02-26 16:31:56 - Read existing cache info<br>
2013-02-26 16:31:57 - Starting...<br>
2013-02-26 16:31:57 - Read 1 variants into buffer<br>
2013-02-26 16:31:57 - Reading transcript data from cache and/or database<br>
[=============================<u></u>==================]  [ 100% ]<br>
2013-02-26 16:31:57 - Retrieved 271 transcripts (0 mem, 271 cached, 0 DB, 0 duplicates)<br>
2013-02-26 16:31:57 - Analyzing chromosome 22<br>
2013-02-26 16:31:57 - Caching custom annotations<br>
[=============================<u></u>==================]  [ 100% ]<br>
2013-02-26 16:31:57 - Retrieved 2 custom annotations (2 MYBIGWIG)<br>
2013-02-26 16:31:57 - Analyzing custom annotations<br>
[>                                              ]    [ 0% ]Argument "fixedStep chrom=22 start=38823000 step=1 span=1000" isn't numeric in numeric ge (>=) at /path/to/variant_effect_<u></u>predictor/Bio/EnsEMBL/<u></u>Variation/Utils/VEP.pm line 1915.<br>

[=============================<u></u>==================]  [ 100% ]<br>
2013-02-26 16:31:57 - Analyzing variants<br>
[=============================<u></u>==================]  [ 100% ]<br>
2013-02-26 16:31:57 - Calculating consequences<br>
2013-02-26 16:31:57 - Processed 1 total variants (1 vars/sec, 1 vars/sec total)<br>
2013-02-26 16:31:57 - Finished!<br>
<br>
<br>
and the file test.vep.txt<br>
<br>
## ENSEMBL VARIANT EFFECT PREDICTOR v2.8<br>
## Output produced at 2013-02-26 16:31:57<br>
## Connected to homo_sapiens_core_70_37 on <a href="http://ensembldb.ensembl.org" target="_blank">ensembldb.ensembl.org</a><br>
## Using cache in /commun/data/pubdb/ensembl/<u></u>vep/cache/homo_sapiens/70<br>
## Using API version 70, DB version 70<br>
## Extra column keys:<br>
## CELL_TYPE : List of cell types and classifications for regulatory feature<br>
## DISTANCE : Shortest distance from variant to transcript<br>
## MYBIGWIG    : <a href="http://test.bw" target="_blank">test.bw</a> (overlap)<br>
#Uploaded_variation    Location    Allele    Gene    Feature Feature_type    Consequence    cDNA_position    CDS_position Protein_position    Amino_acids    Codons    Existing_variation Extra<br>
22_38823180_G/T    22:38823180    T    ENSG00000228620 ENST00000433230    Transcript non_coding_exon_variant,nc_<u></u>transcript_variant    395    -    - -    --<br>
22_38823180_G/T    22:38823180    T    ENSG00000168135 ENST00000303592    Transcript    missense_variant    1217    958 320    P/T    Cct/Act    -<br>
<br>
<br>
while I'm here :-) when I use --custom with a VCF indexed with tabix, VEP only shows the range where here found the data (e.g:" --custom /path/to/ALL.wgs.phase1_<u></u>release_v3.20101123.snps_<u></u>indels_sv.sites.vcf.gz,<u></u>1KGRel3,vcf,exact,1 "  )<br>

<br>
<br>
rs3887390    22:46136619    T    -    -    - intergenic_variant    -    -    -    -    -    - 1KGRel3=22:46136619-461366<br>
<br>
<br>
Is it possible to display something else (e.g. a component of the INFO field) or should I write a plugin ?<br>
<br>
<br>
Thank you,<br>
<br>
Pierre<br>
<br>
<br>
______________________________<u></u>_________________<br>
Dev mailing list    <a href="mailto:Dev@ensembl.org" target="_blank">Dev@ensembl.org</a><br>
Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev" target="_blank">http://lists.ensembl.org/<u></u>mailman/listinfo/dev</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><br>
</blockquote></div><br></div>