/** * Created by Samuel Gratzl on 11.05.2016. */ import { IDType, IFormSelectOption, ISelection } from 'tdp_core'; interface IAvailableSpecies { name: string; value: string; iconClass?: string; } interface ISpeciesFilterObject { species: string; [key: string]: any; } export declare namespace Species { const availableSpecies: IAvailableSpecies[]; const defaultSpecies: string; const DEFAULT_ENTITY_TYPE = "Ensembl"; const SPECIES_SESSION_KEY = "species"; } export interface IPostProcessor { process: (importResults: { [key: string]: any; }, data: string[][]) => Promise; } export declare class SpeciesUtils { static getSelectedSpecies(): string; /** * selects a human readable idtype for a given one that can be mapped * @param idType * @returns {Promise} */ static selectReadableIDType(idType: IDType): Promise; static mapToId(selection: ISelection, target?: IDType): string[] | Promise; static createOptions(ensgs: string[], selection: ISelection, base: IDType): Promise; /** * Creates a converter to use GeneSymbols, translate them to Ensembl IDs, add these IDs and change the previously detected options (e.g. add a new header, change IDType, ...) */ static convertGeneSymbolToEnsembl(): IPostProcessor; /** * Filters elements containing the selected species from the given data array by using the provided accessor function * @param filter Object * @returns Boolean */ static filterSpecies(filter: ISpeciesFilterObject): boolean; } export {}; //# sourceMappingURL=common.d.ts.map