Question: VCF to Interval dataset
0
gravatar for taniamahmood38
7 days ago by
taniamahmood380 wrote:

Could anyone tell me how to convert a VCF dataset into Interval dataset on main galaxy?

Thanks!!!

interval snp vcf tabular galaxy • 49 views
ADD COMMENTlink modified 1 day ago • written 7 days ago by taniamahmood380
0
gravatar for Jennifer Hillman Jackson
7 days ago by
United States
Jennifer Hillman Jackson25k wrote:

Hi,

In most cases, it is better to work with the data in VCF format. Tools in the group NGS: VCF Manipulation can compare VCF to BED and other data formats, if the goal is to look for overlaps or to link to annotation.

However, if you want to do this anyway, try the steps below. Note this will only work for single-nucleotide-polymorphisms and not multiple-nucleotide-polymorphisms. The tools referenced below are in the group Text Manipulation unless stated differently.

First, use the tool NGS: VCF Manipulation > VCFtoTab-delimited: Convert VCF data into TAB-delimited format.

From there you will need to remove the header (tool: Remove beginning of a file), create a start coordinate from the Pos field (tool: Compute and subtract "1"), change the datatype to interval, and at the end assign the chromosome, start (the new column from Compute), and end columns (original Pos column).

Cut can be used to rearrange/reduce the columns if wanted. And if you need strand, all the data in VCF files are with respect to the "+" strand. You can add in a "+" column to all result lines with the tool Add column.

FAQs: https://galaxyproject.org/support/#getting-inputs-right

Galaxy Tutorials: https://galaxyproject.org/learn/

Thanks! Jen, Galaxy team

ADD COMMENTlink written 7 days ago by Jennifer Hillman Jackson25k
0
gravatar for taniamahmood38
1 day ago by
taniamahmood380 wrote:

I am doing variant calling on my data and needed an interval file for several analysis in variant calling as input that's why i was stuck there. But now i have done with it by following your rejoinder thanks a lot.

ADD COMMENTlink written 1 day ago by taniamahmood380
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 133 users visited in the last hour