Entering edit mode
9.1 years ago
D H
▴
30
Hello!
I started a gene enrichment analysis (I haven't done this before), and I have a dataset that contains the gene expression data. This data set has a column with the gene names.
However, there are some entries in that columns, which represent chromosome locations instead of gene names. I want to find the gene closest to these chromosomes locations.
I'm using R 2.15.2 (if that helps).
What are my options?
Thank you in advance!
I see that this utility takes as an input a BED file. I only have a csv file though.
Is it possible to convert csv to BED?
(I'm sorry for the questions but I'm very new to this)
The most simple version of a BED file is three tab-separated columns (chr, start pos, end pos). You can use Excel to extract those three columns and save as tab-delimited text file.
[Disparaging comment about Excel deleted]
If you use Excel, be sure to clean it up. It can save tab-delimited text files, but with non-Linux line endings.
You can do the following fix, in the case of exporting from Excel on Mac:
If you exported your data from Excel on Windows, apply this post-save fix:
Then run closest-features to query features of interest: