public static void doIBDCSFast() { Program.addLog("data: " + data_files_folder); Program.addLog("ibd: " + out_folder); if (!Directory.Exists(data_files_folder) || !Directory.Exists(out_folder)) { Program.addLog("Required data and ibd directories doesn't exist!"); return; } string[] files = Directory.GetFiles(data_files_folder); int total = files.Length; foreach (string file in files) { ExecTask task = new ExecTask(data_files_folder, out_folder, snp_threshold, base_pairs_threshold); task.processFile(file); } }
static void Main(string[] args) { //DEBUG //data_files_folder = @"D:\Genetics\Ancient-DNA\data\"; //out_folder = @"D:\Genetics\Ancient-DNA\ibd\"; Console.WriteLine("Genetic Genealogy Tools - Felix Chandrakumar <*****@*****.**>"); Console.WriteLine(); //Console.WriteLine("Syntax:"); //Console.WriteLine("\tibdcsfast.exe <base_pairs_threshold> <snps_threshold>"); //Console.WriteLine("\r\nE.g., ibdcsfast.exe 1000000 150"); //Console.WriteLine("data and ibd folder must exist."); if (args.Length == 2) { base_pairs_threshold = int.Parse(args[0]); snp_threshold = int.Parse(args[1]); } Console.WriteLine("data: " + data_files_folder); Console.WriteLine("ibd: " + out_folder); if (!Directory.Exists(data_files_folder) || !Directory.Exists(out_folder)) { Console.WriteLine("Required data and ibd directories doesn't exist!"); return; } string[] files = Directory.GetFiles(data_files_folder); int total = files.Length; foreach (string file in files) { ExecTask task = new ExecTask(data_files_folder, out_folder, snp_threshold, base_pairs_threshold); task.processFile(file); } }