Skip to content
Snippets Groups Projects
Commit 67c34aa9 authored by tcarver's avatar tcarver
Browse files

add comment to protein when splitting gene models

parent aa4218c7
No related branches found
No related tags found
No related merge requests found
...@@ -1772,8 +1772,19 @@ public class EditMenu extends SelectionMenu ...@@ -1772,8 +1772,19 @@ public class EditMenu extends SelectionMenu
final Qualifier comment = final Qualifier comment =
new Qualifier("comment", "this gene model has previous ID "+prevId+ new Qualifier("comment", "this gene model has previous ID "+prevId+
" and was reassigned a new ID as changes in the gene model occurred"); " and was reassigned a new ID as changes in the gene model occurred");
((Feature)gene1.getGene().getUserData()).addQualifierValues(comment);
((Feature)gene2.getGene().getUserData()).addQualifierValues(comment); try
{
((Feature)gene1.getProteinOfTranscript( GeneUtils.getUniqueName(
gene1.getTranscripts().get(0)) ).getUserData()).addQualifierValues(comment);
((Feature)gene2.getProteinOfTranscript( GeneUtils.getUniqueName(
gene2.getTranscripts().get(0)) ).getUserData()).addQualifierValues(comment);
}
catch (Exception e)
{
((Feature)gene1.getGene().getUserData()).addQualifierValues(comment);
((Feature)gene2.getGene().getUserData()).addQualifierValues(comment);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment