Hello to all. This is my first question here. so be kind. So i have a .bed file, and there is a problem to it. One line is written in wrong way, maybe misspelled. Instead of typing chr11 ( chromosome 11), is writes r11 which is wrong. Anyway, i edited it in excel 1) deleted whole line 2) renamed it to chr11 , saved it as .txt then just renamed to .bed as i found here as answer, but it doesn't work when i want to use it in terminal ( bedtools - intersectBed ). I dont think its the right way to convert it. My question is , how do i edit it in excel and then save it as .bed file that actually works with bedtools, and maybe there is a way to delete lines or edit .bed files in terminal. But keep in mind, there are many lines, not just 4-5 of them, and i need a way to find/search the wrong one. Many thanks, i hope i was clear
Regardless of how many questions you have asked, if the question is good everyone should be kind, always :-)
Hello!! My problem is something like this, but instead of having only one line wrote wrong, I have the whole first column. I have "chr12" but I need it to be only the number of the chromosome (like "12"). How can I correct that? if it is with sed, which command should I use?
P.s.: It's a genome annotation file
You'll want something like:
Also, post things like this as new questions next time.
Please use
ADD COMMENTorADD REPLYto answer to previous reactions, as such this thread remains logically structured and easy to follow. I have now moved your reaction but as you can see it's not optimal. Adding an answer should only be used for providing a solution to the question asked.