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

Update parse_taxonomy.R #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jthmiller
Copy link

Added 'd' to gsub regular expression to remove 'd__' that is used in some formats instead of 'k__' (such as the mitofish reference)

Added 'd' to gsub regular expression to remove 'd__' that is used in some formats instead of 'k__' (such as the mitofish reference)
@bingli2019
Copy link

bingli2019 commented Jan 17, 2024

In some case, when using "D_\\d__" is not work. so, it if can be changed to "[Dd]__" or not.
I changed it and find ok

Copy link

@bingli2019 bingli2019 left a comment

Choose a reason for hiding this comment

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

taxonomy$Taxon<-gsub("D_\\d__","", taxonomy$Taxon) should be changed to
taxonomy$Taxon<-gsub("D_|d__","", taxonomy$Taxon)

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.

2 participants