From: gmungoc Date: Fri, 26 Jan 2018 14:53:22 +0000 (+0000) Subject: Merge branch 'develop' into features/JAL-1793VCF X-Git-Tag: Release_2_11_0~70 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d38847f4c9170385c3b4c8fbc5e6f5c95a15a196;p=jalview.git Merge branch 'develop' into features/JAL-1793VCF Conflicts: resources/lang/Messages.properties resources/lang/Messages_es.properties src/jalview/ext/ensembl/EnsemblGene.java src/jalview/ext/ensembl/EnsemblLookup.java src/jalview/ext/ensembl/EnsemblSeqProxy.java --- d38847f4c9170385c3b4c8fbc5e6f5c95a15a196 diff --cc resources/lang/Messages.properties index 1277a86,f526699..0f801eb --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@@ -1324,38 -1320,13 +1325,45 @@@ label.select_hidden_colour = Select hid label.overview = Overview label.reset_to_defaults = Reset to defaults label.oview_calc = Recalculating overview... +label.feature_details = Feature details +label.matchCondition_contains = Contains +label.matchCondition_notcontains = Does not contain +label.matchCondition_matches = Matches +label.matchCondition_notmatches = Does not match +label.matchCondition_present = Is present +label.matchCondition_notpresent = Is not present +label.matchCondition_eq = = +label.matchCondition_ne = not = +label.matchCondition_lt = < +label.matchCondition_le = <= +label.matchCondition_gt = > +label.matchCondition_ge = >= +label.numeric_required = The value should be numeric +label.filter = Filter +label.filters = Filters +label.join_conditions = Join conditions with +label.score = Score +label.colour_by_label = Colour by label +label.variable_colour = Variable colour +label.select_colour = Select colour - option.enable_disable_autosearch = When ticked, search is performed automatically. + option.enable_disable_autosearch = When ticked, search is performed automatically option.autosearch = Autosearch label.retrieve_ids = Retrieve IDs +label.display_settings_for = Display settings for {0} features +label.simple = Simple +label.simple_colour = Simple Colour +label.colour_by_text = Colour by text +label.graduated_colour = Graduated Colour +label.by_text_of = By text of +label.by_range_of = By range of +label.filters_tooltip = Click to set or amend filters +label.or = Or +label.and = And +label.sequence_feature_colours = Sequence Feature Colours + label.best_quality = Best Quality + label.best_resolution = Best Resolution + label.most_protein_chain = Most Protein Chain + label.most_bound_molecules = Most Bound Molecules + label.most_polymer_residues = Most Polymer Residues + label.cached_structures = Cached Structures + label.free_text_search = Free Text Search diff --cc resources/lang/Messages_es.properties index 616cb9d,77f053e..d035e73 --- a/resources/lang/Messages_es.properties +++ b/resources/lang/Messages_es.properties @@@ -337,6 -336,6 +337,8 @@@ label.optimise_order = Optimizar orde label.seq_sort_by_score = Ordenar las secuencias por puntuación label.load_colours = Cargar colores label.save_colours = Guardar colores ++label.load_colours_tooltip = Cargar colores y filtros desde fichero ++label.save_colours_tooltip = Guardar colores y filtros en fichero label.fetch_das_features = Recuperar funciones DAS label.selected_database_to_fetch_from = Seleccionada {0} Base de datos {1} para buscar de {2} label.database_param = Base de datos: {0} @@@ -1323,37 -1320,13 +1326,45 @@@ label.select_hidden_colour = Selecciona label.overview = Resumen label.reset_to_defaults = Restablecen a los predeterminados label.oview_calc = Recalculando resumen +label.feature_details = Detalles de característica +label.matchCondition_contains = Contiene +label.matchCondition_notcontains = No contiene +label.matchCondition_matches = Es igual a +label.matchCondition_notmatches = No es igual a +label.matchCondition_present = Está presente +label.matchCondition_notpresent = No está presente +label.matchCondition_eq = = +label.matchCondition_ne = not = +label.matchCondition_lt = < +label.matchCondition_le = <= +label.matchCondition_gt = > +label.matchCondition_ge = >= +label.numeric_required = Valor numérico requerido +label.filter = Filtro +label.filters = Filtros +label.join_conditions = Combinar condiciones con +label.score = Puntuación +label.colour_by_label = Colorear por texto +label.variable_colour = Color variable +label.select_colour = Seleccionar color - option.enable_disable_autosearch = Marque para buscar automáticamente - option.autosearch = Búsqueda automática + option.enable_disable_autosearch = Marcar para buscar automáticamente + option.autosearch = Auto búsqueda label.retrieve_ids = Recuperar IDs +label.display_settings_for = Visualización de características {0} +label.simple = Simple +label.simple_colour = Color simple +label.colour_by_text = Colorear por texto +label.graduated_colour = Color graduado +label.by_text_of = Por texto de +label.by_range_of = Por rango de +label.filters_tooltip = Haga clic para configurar o modificar los filtros +label.or = O - label.and = Y ++label.and = Y ++label.sequence_feature_colours = Colores de características de las secuencias + label.best_quality = Mejor Calidad + label.best_resolution = Mejor Resolución + label.most_protein_chain = Más Cadena de Proteína + label.most_bound_molecules = Más Moléculas Ligadas + label.most_polymer_residues = Más Residuos de Polímeros + label.cached_structures = Estructuras en Caché + label.free_text_search = Búsqueda de texto libre diff --cc src/jalview/ext/ensembl/EnsemblGene.java index cdcfa96,0d5fc26..7e6f653 --- a/src/jalview/ext/ensembl/EnsemblGene.java +++ b/src/jalview/ext/ensembl/EnsemblGene.java @@@ -146,10 -150,10 +152,14 @@@ public class EnsemblGene extends Ensemb { continue; } + if (geneAlignment.getHeight() == 1) { + // ensure id has 'correct' case for the Ensembl identifier + geneId = geneAlignment.getSequenceAt(0).getName(); ++ + findGeneLoci(geneAlignment.getSequenceAt(0), geneId); ++ getTranscripts(geneAlignment, geneId); } if (al == null) diff --cc src/jalview/ext/ensembl/EnsemblLookup.java index 0d1b554,92763a1..4c43281 --- a/src/jalview/ext/ensembl/EnsemblLookup.java +++ b/src/jalview/ext/ensembl/EnsemblLookup.java @@@ -39,22 -34,13 +39,16 @@@ import org.json.simple.parser.JSONParse import org.json.simple.parser.ParseException; /** - * A client for the Ensembl lookup REST endpoint - * A client for the Ensembl lookup REST endpoint, used to find the gene - * identifier given a gene, transcript or protein identifier. ++ * A client for the Ensembl /lookup REST endpoint, used to find the gene ++ * identifier given a gene, transcript or protein identifier, or to extract the ++ * species or chromosomal coordinates from the same service response * * @author gmcarstairs */ public class EnsemblLookup extends EnsemblRestClient { + private static final String SPECIES = "species"; + - private static final String PARENT = "Parent"; - - private static final String OBJECT_TYPE_TRANSLATION = "Translation"; - private static final String OBJECT_TYPE_TRANSCRIPT = "Transcript"; - private static final String ID = "id"; - private static final String OBJECT_TYPE_GENE = "Gene"; - private static final String OBJECT_TYPE = "object_type"; - /** * Default constructor (to use rest.ensembl.org) */ @@@ -128,20 -123,15 +131,15 @@@ } /** - * Calls the Ensembl lookup REST endpoint and returns - *