Entering edit mode
8.7 years ago
Gabe Anderson
▴
10
Hi,
I have a file with reads and read counts like this:
CGTAGTTGAACTTGTGCTTCAT 8
ATCCCCGGCATCTCCGCCA 1
TGAGAATAGTGTGCATTT 52
I'd appreciate some help converting it to look like this:
>dme_1_count=8
CGTAGTTGAACTTGTGCTTCAT
>dme_2_count=1
ATCCCCGGCATCTCCGCCA
>dme_3_count=52
TGAGAATAGTGTGCATTT
count = number at the end of each read dme_x, x = unique number.
I also want to delete reads with count<=2. However, I want the processes separate.
Thank you!
You can modify this answer according to your task.