Entering edit mode
12 months ago
MAPK2 ▴ 40
I have a table with the list of variants and need to create a bed file for these. There are indels and some are even listed by +- bp as in the table below. How do I create a bed file for such variants?
A bed file is a white space delimited file with three required fields - CHR, START and END. You have two fields from which the three can be derived. What is your problem? I don't see any
-s signifying an insertion of deletion like VCF pre 4.2 convention.
Should I just subtract or add bases for the Pos_End? Right, they have not given + or -. I wanted to search these variants in my VCF file.
Look up some of these on dbSNP or gnomAD to understand how base positioning works - you'll need some math to calculate the End Pos, and some more math to account for the
-) is in reality
You can of course skip this step if standardization in not something you need. You could do just the End Pos calculation using Start Pos and the number of REF bases (I'll leave calculating the exact formula to you).