public List <FastQCItem> ReadFromRootDirectory(string rootDirectory)
 {
     return((from dir in Directory.GetDirectories(rootDirectory)
             let item = FastQCItem.ParseFromDirectory(dir)
                        where item != null
                        select item).ToList());
 }
Exemplo n.º 2
0
    public static FastQCItem ParseFromDirectory(string directory)
    {
      FastQCItem result = new FastQCItem();
      result.Name = Path.GetFileName(directory);

      foreach (var dir in Directory.GetDirectories(directory))
      {
        var file = dir + "/fastqc_data.txt";
        if (File.Exists(file))
        {
          result.Items.Add(FastQCBasicStatisticItem.ParseFromFile(file));
        }
      }

      if (result.Items.Count == 0)
      {
        return null;
      }

      return result;
    }
Exemplo n.º 3
0
        public static FastQCItem ParseFromDirectory(string directory)
        {
            FastQCItem result = new FastQCItem();

            result.Name = Path.GetFileName(directory);

            foreach (var dir in Directory.GetDirectories(directory))
            {
                var file = dir + "/fastqc_data.txt";
                if (File.Exists(file))
                {
                    result.Items.Add(FastQCBasicStatisticItem.ParseFromFile(file));
                }
            }

            if (result.Items.Count == 0)
            {
                return(null);
            }

            return(result);
        }