Here is example data frame:
qseqid sseqid pident
NP_040593.1 J02459.1 100
NP_040593.1 JQ086376.1 100
NP_040593.1 JQ182735.1 100
NP_040594.1 NC_049953.1 99.306
NP_040594.1 OM418625.1 99.306
NP_040594.1 NC_049954.1 98.611
NP_040594.1 CP025712.1 98.611
NP_040594.1 OL657226.1 98.611
How to update dataframe to have distinct (using dplyr::distinct probably) pident==100, but keep all other pident values (including duplicates) the same?
So, to something like that:
qseqid sseqid pident
NP_040593.1 J02459.1 100
NP_040594.1 NC_049953.1 99.306
NP_040594.1 OM418625.1 99.306
NP_040594.1 NC_049954.1 98.611
NP_040594.1 CP025712.1 98.611
NP_040594.1 OL657226.1 98.611