示例#1
0
        public UgaGene ToUgaGene(bool isGrch37)
        {
            (string ensemblGeneId, string entrezGeneId) = GeneId.StartsWith("ENSG") ? (GeneId, null as string) : (null as string, GeneId);

            IInterval interval = new Interval(Start, End);

            (IInterval grch37, IInterval grch38) = isGrch37 ? (interval, null as IInterval) : (null as IInterval, interval);

            return(new UgaGene(Chromosome, grch37, grch38, OnReverseStrand, entrezGeneId, ensemblGeneId, Symbol,
                               HgncId));
        }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         int hashCode = Chromosome.Index.GetHashCode();
         hashCode = (hashCode * 397) ^ Start;
         hashCode = (hashCode * 397) ^ End;
         hashCode = (hashCode * 397) ^ OnReverseStrand.GetHashCode();
         hashCode = (hashCode * 397) ^ Symbol.GetHashCode();
         hashCode = (hashCode * 397) ^ GeneId.GetHashCode();
         // ReSharper restore NonReadonlyMemberInGetHashCode
         return(hashCode);
     }
 }