enter code here
Hi everyone
I have a data frame such as :
I have a file such as:
scaffold_1_1 X 2 2
scaffold_24_0 X 9 2
scaffold_15 X 2 2
IDBA_scaffold_30_1 X 2 317
scf7180005161000_2 X 1 2
And the idea is simply to remove the last number part of all names in the first but there are 3 types of scaffolds_names:
scaffold_number0_number1
scaffold_number0
IDBA_scaffold_number0_number1
scfXXX_number1
and the idea is to remove all the number_1, here is the result I should get in this example:
scaffold_1 X 2 2
scaffold_24 X 9 2
scaffold_15 X 2 2
IDBA_scaffold_30 X 2 317
scf7180005161000 X 1 2
Have you an idea to deal with that?
Thank you for you help.