Hi LauferVA,
Thank you for your suggestion!
Yes I have tried a bit to got through the files manually and check every single rsID but when it is a large file it becomes difficult (especially that I am new in this and I don't have the set of tools to shortcut many tasks) but yeah, you are absolutely right.
May I ask when you say loop, what do you mean by it?
With the same set of files? That is unlikely if nothing has changed with the files.
If not then there is something wrong with one of the files you are using. My guess would likely be the input rsID files. Did that file come from a windows machine?
You should ideally be using
bcftoolsinstead ofgrepfor this:Thank you for the suggestion!
May I ask, What does bcftools do, and is it solely for genetic data? Also, does it need to be setup in the terminal?
check there is no blank line or just a dot
.in your rsID_list.txtfurthermore, you should use
grep -F -w -fto prevent the regular expressionsfurthermore you should use a tool like bcftools to extract those variants.
Thank you for the suggestion!
Is there a difference between the -F and -f options?
what would a . do when running the commands?