I have an issue joining the two files linked below using join -t $'\t' -a1 file_1 file_2
. I'm aware that one has to use specific flags when sorting in order to make join work, as explained in this and this post. Specifically, I have sorted both file_1 and file_2 using the following syntax: cat file_1 | LANG=en_EN sort k1b,1
.
The error I get is this:
https://drive.google.com/open?id=1vlh9NqD1Nlm6dQi33Qt0gevsLfYxRURN
This is problematic. For example, entry "S2_005_008G1__bin.1" fails to be joined despite being present in both file_1 and file_2.
Sorry that I cannot give a simple toy example, but I've been unable to regenerate this error using hand-made files. I really at a loss as what might cause this issue.
sort -k1b,1
, notsort k1b,1
) or the error messages. Always copy-paste, never copy things manually or post a screenshot of text. I answered the question because I can probably guess what you did wrong and it might help others, but don't expect this to happen often when you don't even bother to copy-paste your code and data. – Gilles 'SO- stop being evil' Apr 20 '20 at 08:09