I have a file1
like this
8 Chrysiogenetes
12 Coprothermobacterota
13 Abditibacteriota
13 Dictyoglomi
36 Rhodothermaeota
I have file2
like this
Chrysiogenetes
Chrysiogenetes
Chrysiogenetes
Coprothermobacterota
Coprothermobacterota
Abditibacteriota
Abditibacteriota
Dictyoglomi
Dictyoglomi
Rhodothermaeota
Rhodothermaeota
My expected output:
Chrysiogenetes 8
Chrysiogenetes 8
Chrysiogenetes 8
Coprothermobacterota 12
Coprothermobacterota 12
Abditibacteriota 13
Abditibacteriota 13
Dictyoglomi 13
Dictyoglomi 13
Rhodothermaeota 36
Rhodothermaeota 36
I am using this join command:
join -t $'\t' -1 2 -2 1 <sorted file1.txt> <sorted file2.txt >
but I am not getting expected result because both Abditibacteriota and Dictyoglomi both has "13" so join command is not working properly.
Please help
what is the issue and what command you have used to join files?
I have a
file1
like thisI have
file2
like thisMy expected output:
I am using this join command:
but I am not getting expected result because both Abditibacteriota and Dictyoglomi both has "13" so join command is not working properly.