Skip to content

Update parse_taxonomy.R - #51

Open
jthmiller wants to merge 1 commit into
jbisanz:masterfrom
jthmiller:master
Open

Update parse_taxonomy.R#51
jthmiller wants to merge 1 commit into
jbisanz:masterfrom
jthmiller:master

Conversation

@jthmiller

Copy link
Copy Markdown

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

bingli2019 commented Jan 17, 2024

Copy link
Copy Markdown

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

@bingli2019 bingli2019 left a comment

Copy link
Copy Markdown

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