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

[issue/273] Add chromosome renaming script for dbSNP2 files #304

Merged
merged 4 commits into from
Oct 23, 2023

Conversation

akotlar
Copy link
Collaborator

@akotlar akotlar commented Oct 19, 2023

  • Adds dbSNP chromosome renaming tool, taking us from identifiers like NC_000001.10 to those like "1"

This script works tested on GCF_000001405.25.gz (hg19) and GCF_000001405.39.gz (hg38); in a future PR will wrap into utility that can be run through bystro-utils.pl; will add test at that time.

With this we have a fully working DbSNP 2 transformation; I have already tested building dbSNP 2, works well.

Copy link
Contributor

@poneill poneill left a comment

Choose a reason for hiding this comment

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

LGTM, approved modulo minor comments

@@ -0,0 +1,30 @@
# Check if the correct number of arguments are provided
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd vote for starting all scripts with set -e, wdyt?

for k in *assembly_report.txt
do
out=$(echo $k | sed 's/.txt/.chrnames/')
grep -e '^[^#]' $k | awk '{ print $7, $1 }' > $out
Copy link
Contributor

Choose a reason for hiding this comment

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

would gloss what these column positions represent in case the format changes at some later date

@akotlar
Copy link
Collaborator Author

akotlar commented Oct 23, 2023

Addressed

@akotlar akotlar merged commit 82bd33f into bystrogenomics:master Oct 23, 2023
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