Toggle renaming of gene names in alleles in --change-gene-id #2830
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added a flag
--no-rename
tocanto_admin.pl
that, when set with--change-gene-id
, skips the renaming of gene names in allele names. This was needed because PHI-base wanted to keep using the gene name that was specified in the publication for our annotations.The
--no-rename
flag defaults to0
instead ofundef
. If the--no-rename
flag is set with any other flag, the script warns and exits:This required adding an argument
$no_rename
tochange_gene_id
in TrackUtil.pm that skips the allele renaming when set. I didn't bother to set a default value for this argument becausechange_gene_id
is currently only used in one place.I've tested this with PHI-Canto where it works fine both with and without the new flag. I haven't tested any other modes.