Thank you so much finswimmer.
• 1 views
•
link
Hi all
I have an miRNA text file (having ~2000 miRNA information) like the following
>hsa-miR-576-3p MIMAT0004796
AAGAUGUGGAAAAAUUGGAAUC
>hsa-miR-140-5p MIMAT0000431
CAGUGGUUUUACCCUAUGGUAG
i want it to become
>hsa-miR-576-3p
AAGAUGUGGAAAAAUUGGAAUC
>hsa-miR-140-5p
CAGUGGUUUUACCCUAUGGUAG
without the MIMAT000XX
Could anyone help me to do this? My OS is Ubuntu 14.04
Thank You in advance.
Assuming there is a whitespace before the part that you want to remove, you can do this:
$ cut -d " " -f1 input.fa > output.fa
cut selects the columns given with -f parameter. With -d " " we define a whitespace as a delimiter between two columns.
fin swimmer
Thank you so much finswimmer.
Log in to answer this question.
Try sed ,
Thank You So Much kathirvel. I was able to do it.
After this when i was running miRDeep2.pl, i got this error
Do you have any idea how to rectify this?
Don't ask unrelated/new questions in existing threads. Consider opening a new thread, if you are not able to find a previous answer by searching.