Regarding Gviz package
0
0
Entering edit mode
@shrutiaggarwal9968-12940
Last seen 7.0 years ago

Hi

 

I wanted to know how can I upload the position file in gviz to get the annotation track. My file contains only the single column of positions without any start and end position or any other information. Please help!!!!

annotation bioconductor R gviz • 948 views
ADD COMMENT
0
Entering edit mode

You cannot define a genomic position without the chromosome, start and end positions. Things like SNPs can be defined by just the chromosome and start position since they are only one base and the end is thus inferred. The same is true for CpG positions, but otherwise you need to know either the end position or the width.

If you were more descriptive, telling us what you want to do and giving an example of the data you have in hand, then people might be able to help you.

ADD REPLY
0
Entering edit mode

Thank you for your help!!!!!

Can you please help me that how can I convert my excel file to bed file?

ADD REPLY
0
Entering edit mode

I'd recommend for you to read up a bit on how to import Excel or tab delimited files into R, and also on the way Bioconductor handles genomic ranges. Gviz is very flexible in terms of inputs. You can provide a data.frame, a GRanges object, paths to various file formats or even populate the necessary fields from numeric or character vectors in the constructor function. This is all documented in much detail with tons of examples in the package vignette and also in the constructor man page:

? AnotationTrack

Florian

ADD REPLY

Login before adding your answer.

Traffic: 700 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6