Exemple #1
0
        public Dominomics(MultipleDirectorySelector mds, InputFormat inputF)
        {
            Progress      = 0;
            MyInputFormat = inputF;

            //Read all SEPro Files to obtain a dictionary of ID (key) and fasta (value) and peptide (key) SeproFiles (values)

            locusFastaDict   = new Dictionary <string, string>();
            myResultPackages = new List <FileInfoResultPackage>();


            matrixClassDescriptionDictionary = new Dictionary <int, string>();
            foreach (DirectoryClassDescription myDir in mds.MyDirectoryDescriptionDictionary)
            {
                if (inputF == InputFormat.SEPro)
                {
                    FileInfo[] resultFilteredFiles = new DirectoryInfo(myDir.MyDirectoryFullName).GetFiles("*.sepr", SearchOption.AllDirectories);
                    FeedLocusFastaDictSEPro(myDir, resultFilteredFiles);
                }
                else if (inputF == InputFormat.MPex)
                {
                    FileInfo[] resultFilteredFiles = new DirectoryInfo(myDir.MyDirectoryFullName).GetFiles("*.mpex", SearchOption.AllDirectories);
                    FeedLocusFastaDictPex(myDir, resultFilteredFiles);
                }
                matrixClassDescriptionDictionary.Add(myDir.ClassLabel, myDir.Description);
            }

            bdf = new HMMVerifier.BatchDomainFetcher();
        }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     df = new BatchDomainFetcher();
 }