public MaxQuantFileDistillerUI()
        {
            InitializeComponent();

            base.SetFileArgument("SourceFile", new OpenFileArgument("Source MaxQuant", "txt"));
            this.targetFile = new RcpaFileField(btnTarget, txtTarget, "TargetFile", new OpenFileArgument("Target MaxQuant", "txt"), true);
            AddComponent(targetFile);

            this.Roles = new MaxQuantTagMatchRoles();

            Text = Constants.GetSQHTitle(title, version);
        }
Exemple #2
0
        /// <summary>
        /// 根据roles以及target集合,构建hash表,用于与source的快速比较
        /// </summary>
        /// <param name="roles">规则集合</param>
        /// <param name="targets">目标集合</param>
        public MaxQuantTagMatcher(MaxQuantTagMatchRoles roles, IEnumerable <IAnnotation> targets)
        {
            this.roles   = roles;
            this.targets = targets;

            foreach (var target in targets)
            {
                List <string> entries = GetKeys(target, (role, item) => role.GetTargetItems(item));

                entries.ForEach(m => this.targetKeyMap[m] = target);
            }
        }
Exemple #3
0
 public MaxQuantFileDistiller(string targetFile, MaxQuantTagMatchRoles roles)
 {
     this.targetFile = targetFile;
     this.roles      = roles;
 }