Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniprot-SP-GO.sorted is missing SPIDs present in _blast-sort.tab #2

Open
kubu4 opened this issue Dec 16, 2020 · 0 comments
Open

uniprot-SP-GO.sorted is missing SPIDs present in _blast-sort.tab #2

kubu4 opened this issue Dec 16, 2020 · 0 comments

Comments

@kubu4
Copy link
Contributor

kubu4 commented Dec 16, 2020

I was reviewing transcriptomev3.1-BLAST-to-GOslim.ipynb and noticed that there appeared to be some SPIDs in the BLAST results that were not present in the output of the join command (In [28]: ):

#joining blast with uniprot annoation file and reducing to three columns UniprotID, Query, All GO terms
join -t $'\t' \
_blast-sort.tab \
uniprot-SP-GO.sorted \
| cut -f1,2,14 \
> _blast-annot.tab

I ran a quick comparison and identified 209 SPIDs in the _blast-sort.tab file that don't have corresponding SPIDs in the uniprot-SP-GO.sorted file.

If someone can/wants to double-check, here's how I compared the two files:

Grab unique SPIDs
awk -F"\t" '{print $1}' _blast-sort.tab | sort -u > blast-sort-unique.txt
awk -F"\t" '{print $1}' uniprot-SP-GO.sorted | sort -u > uniprot-SP-GO.sorted-unique.txt
Use comm to only show entries present in blast-sort-unique.txt
$ comm -13 uniprot-SP-GO.sorted-unique.txt blast-sort-unique.txt | wc -l
209

Should an updated version of uniprot-SP-GO.sorted be produced and then used to re-run the analysis?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant