public void Load(string ucscReferenceName, IChromosomeRenamer renamer) { if (_customAnnotationDirs == null || _customAnnotationDirs.Count == 0 || ucscReferenceName == _currentUcscReferenceName) { return; } _customAnnotationReaders = SupplementaryAnnotationCommon.GetReaders(_customAnnotationDirs, ucscReferenceName); _hasCustomAnnotations = _customAnnotationReaders.Count > 0; _currentUcscReferenceName = ucscReferenceName; }
void CheckDirectoryNoSA() { var dataSourceVersions = new List <DataSourceVersion>(); Exception obsException = null; try { SupplementaryAnnotationDirectory saDirectory; SupplementaryAnnotationCommon.CheckDirectoryIntegrity(Resources.TopPath("CustomIntervals"), dataSourceVersions, out saDirectory); } catch (Exception ex) { obsException = ex; } Assert.NotNull(obsException); Assert.True(obsException.GetType().IsAssignableFrom(typeof(UserErrorException))); }