Skip to content

Commit

Permalink
Merge pull request #515 from lschaffer2/master
Browse files Browse the repository at this point in the history
ambiguous #
  • Loading branch information
Leah Schaffer authored May 16, 2018
2 parents d5752b6 + 481df75 commit ecb2a6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ProteoformSuiteInternal/Proteoform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ private void assign_pf_identity(ExperimentalProteoform e, PtmSet set, Proteoform
}
}
}
//if already been assigned -- check if gene name != this gene name ==> ambiguous
else if (!e.topdown_id && (e.gene_name.get_prefered_name(Lollipop.preferred_gene_label) != this.gene_name.get_prefered_name(Lollipop.preferred_gene_label)))
else if (!e.topdown_id && e.gene_name.get_prefered_name(Lollipop.preferred_gene_label) != this.gene_name.get_prefered_name(Lollipop.preferred_gene_label)
&& e.linked_proteoform_references.Count == this.linked_proteoform_references.Count + 1)
{
e.ambiguous = true;
}
Expand All @@ -315,6 +315,8 @@ private void assign_pf_identity(ExperimentalProteoform e, PtmSet set, Proteoform
{
e.gene_name.gene_names.Concat(this.gene_name.gene_names);
}


}

#endregion Private Methods
Expand Down
2 changes: 1 addition & 1 deletion Test/TestProteoformIdentification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void ambiguous_experimentals()
Assert.AreEqual(3, fam.experimental_proteoforms.Count);
Assert.AreEqual(2, fam.theoretical_proteoforms.Count);
Assert.AreEqual(2, fam.gene_names.Count);
Assert.IsTrue(e2.ambiguous); //dont have same path length, still ambiguous
Assert.IsFalse(e2.ambiguous); //dont have same path length, not ambiguous
Assert.IsFalse(e1.ambiguous);
Assert.IsTrue(e3.ambiguous);
}
Expand Down

0 comments on commit ecb2a6b

Please sign in to comment.