Example #1
0
        public VennProcessor(string[] inputPaths, VennVcfOptions parameters)
        {
            string outDir            = parameters.OutputDirectory;
            string consensusFileName = parameters.ConsensusFileName;

            _parameters = parameters;
            _inputPaths = inputPaths;
            _outDir     = outDir;
            for (int i = 0; i < inputPaths.Length; i++)
            {
                InputFileNames[i] = Path.GetFileName(inputPaths[i]);
                GuessSampleNameFromVcf(InputFileNames[i], out InputSampleNames[i], out InputSampleNums[i]);
            }

            if (!String.IsNullOrEmpty(consensusFileName))
            {
                //writeConsensusFile = true;
                consensusFilePath = Path.Combine(outDir, consensusFileName);
                consensusBuilder  = new ConsensusBuilder(consensusFilePath, parameters);
            }
        }
 public VennVcfOptionsParser()
 {
     Options = new VennVcfOptions();
 }
 public ConsensusBuilder(string consensusFilePath, VennVcfOptions options)
 {
     _consensusFilePath = consensusFilePath;
     _options           = options;
 }