public override void SetProperty(T t, string value)
        {
            var item = t.GetQuantificationItem();

            if (item == null)
            {
                item = new QuantificationItem();
                t.SetQuantificationItem(item);
            }

            SetValue(item, value);
        }
        public static QuantificationItem GetOrCreateQuantificationItem(this IAnnotation ann)
        {
            if (ann.Annotations.ContainsKey(QuantificationItem.KEY_RATIO))
            {
                return(ann.Annotations[QuantificationItem.KEY_RATIO] as QuantificationItem);
            }

            var result = new QuantificationItem();

            ann.Annotations[QuantificationItem.KEY_RATIO] = result;

            return(result);
        }
Beispiel #3
0
        private QuantificationItem FindOrCreateItem(T t)
        {
            if (!t.Annotations.ContainsKey(objectKey))
            {
                t.Annotations[objectKey] = new ProteinQuantificationResult();
            }

            var pqr = t.Annotations[objectKey] as ProteinQuantificationResult;

            if (!pqr.Items.ContainsKey(dsName))
            {
                var item = new QuantificationItem();
                pqr.Items[dsName] = item;
                return(item);
            }
            else
            {
                return(pqr.Items[dsName]);
            }
        }
Beispiel #4
0
        protected QuantificationItem FindOrCreateItem(T t)
        {
            if (!t.Annotations.ContainsKey(_silacKey))
            {
                t.Annotations[_silacKey] = new ProteinQuantificationResult();
            }

            var lrrr = t.Annotations[_silacKey] as ProteinQuantificationResult;

            if (!lrrr.Items.ContainsKey(_dsName))
            {
                var item = new QuantificationItem();
                lrrr.Items[_dsName] = item;
                return(item);
            }
            else
            {
                return(lrrr.Items[_dsName]);
            }
        }
 public static void SetQuantificationItem(this IAnnotation ann, QuantificationItem value)
 {
     ann.Annotations[QuantificationItem.KEY_RATIO] = value;
 }