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

Make count_tab compatible with umi_tools extract #654

Merged
merged 5 commits into from
Aug 2, 2024

Conversation

eachanjohnson
Copy link
Contributor

Provides a fix for #651.

I've updated the get_cell_umi_read_string() function in umi_tools/sam_methods.py so that the UMI and cell barcode are extracted in the same order that umi_tools extract creates them. I've also updated the docstring of umi_tools/count_tab.py to reflect this.

Since I had to update the test input file tests/count_tab_cell.tsv, I thought I would also fix the issue where count_tab writes out byte-encoded strings for the cell barcode. It was a small change but makes using downstream bash tools much easier.

Let me know what you think!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a direct copy of the previous tests/chr19_gene_assigned_cell.tsv, right? No need to keep a copy from my perspective, so this file can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, with some manipulations to get the cell barcode and UMI in the correct (new) order.

Copy link
Member

@TomSmithCGAT TomSmithCGAT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this @eachanjohnson! Could you please remove the copy of the previous test file and then I'll merge

@eachanjohnson
Copy link
Contributor Author

OK, previous copy of the file has been removed.

@TomSmithCGAT TomSmithCGAT merged commit 0bcb8a5 into CGATOxford:master Aug 2, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants