Class | Line # | Actions | |||
---|---|---|---|---|---|
PIDColourScheme | 31 | 15 | 12 | 0.9333333493.3% |
Class PIDColourScheme |
Line # 31 |
15 |
12 |
0.9333333493.3% |
---|---|---|---|---|
PIDColourScheme() PIDColourScheme() | 4040 | 0.00 | 1.01 | -1.0 -1.0 - |
findColour(char,int,SequenceI,String,float) : Color findColour(char,int,SequenceI,String,float) : Color | 4444 | 12.012 | 8.08 | 0.90909094 0.9090909490.9% |
getSchemeName() : String getSchemeName() : String | 8383 | 1.01 | 1.01 | 1.0 1.0100% |
getInstance(AlignViewportI,AnnotatedCollectionI) : ColourSchemeI getInstance(AlignViewportI,AnnotatedCollectionI) : ColourSchemeI | 9393 | 1.01 | 1.01 | 1.0 1.0100% |
isSimple() : boolean isSimple() : boolean | 100100 | 1.01 | 1.01 | 1.0 1.0100% |
0.73333335
|
jalview.schemes.PIDColourSchemeTest.testFindColourjalview.schemes.PIDColourSchemeTest.testFindColour | 1PASS | ||
0.73333335
|
jalview.schemes.PIDColourSchemeTest.testFindColour_ignoreGapsjalview.schemes.PIDColourSchemeTest.testFindColour_ignoreGaps | 1PASS | ||
0.16666667
|
jalview.schemes.ColourSchemesTest.testGetColourSchemejalview.schemes.ColourSchemesTest.testGetColourScheme | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageOutputTestjalview.bin.CommandsTest.structureImageOutputTest | 1PASS | ||
0.13333334
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverExpandedviewsjalview.project.Jalview2xmlTests.testStoreAndRecoverExpandedviews | 1PASS | ||
0.13333334
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverReferenceSeqSettingsjalview.project.Jalview2xmlTests.testStoreAndRecoverReferenceSeqSettings | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.project.Jalview2xmlTests.viewRefPdbAnnotationjalview.project.Jalview2xmlTests.viewRefPdbAnnotation | 1PASS | ||
0.13333334
|
jalview.project.Jalview2xmlTests.testCopyViewSettingsjalview.project.Jalview2xmlTests.testCopyViewSettings | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageOutputTestjalview.bin.CommandsTest.structureImageOutputTest | 1PASS | ||
0.13333334
|
jalview.gui.StructureChooserTest.openStructureFileForSequenceTestjalview.gui.StructureChooserTest.openStructureFileForSequenceTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.ext.jmol.JmolViewerTest.testSingleSeqViewJMoljalview.ext.jmol.JmolViewerTest.testSingleSeqViewJMol | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.gui.StructureChooserTest.openStructureFileForSequenceTestjalview.gui.StructureChooserTest.openStructureFileForSequenceTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.project.Jalview2xmlTests.gatherViewsHerejalview.project.Jalview2xmlTests.gatherViewsHere | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageOutputTestjalview.bin.CommandsTest.structureImageOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageOutputTestjalview.bin.CommandsTest.structureImageOutputTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.13333334
|
jalview.gui.StructureChooserTest.openStructureFileForSequenceTestjalview.gui.StructureChooserTest.openStructureFileForSequenceTest | 1PASS | ||
0.13333334
|
jalview.ext.jmol.JmolViewerTest.testAddStrToSingleSeqViewJMoljalview.ext.jmol.JmolViewerTest.testAddStrToSingleSeqViewJMol | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.13333334
|
jalview.bin.CommandsTest.structureImageAnnotationsOutputTestjalview.bin.CommandsTest.structureImageAnnotationsOutputTest | 1PASS | ||
0.1
|
jalview.schemes.ColourSchemePropertyTest.testGetColourSchemejalview.schemes.ColourSchemePropertyTest.testGetColourScheme | 1PASS | ||
0.1
|
jalview.schemes.ResidueColourSchemeTest.testGetNamejalview.schemes.ResidueColourSchemeTest.testGetName | 1PASS | ||
0.1
|
jalview.schemes.ColourSchemePropertyTest.testGetColourNamejalview.schemes.ColourSchemePropertyTest.testGetColourName | 1PASS | ||
0.1
|
jalview.gui.AlignViewportTest.testSetGlobalColourSchemejalview.gui.AlignViewportTest.testSetGlobalColourScheme | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTestjalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTest | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testParse_mixedJalviewGffjalview.io.FeaturesFileTest.testParse_mixedJalviewGff | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverPDBEntryjalview.project.Jalview2xmlTests.testStoreAndRecoverPDBEntry | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testMergeDatasetsforViewsjalview.project.Jalview2xmlTests.testMergeDatasetsforViews | 1PASS | ||
0.06666667
|
jalview.ext.jmol.JmolCommandsTest.testGetColourBySequenceCommands_hiddenColumnsjalview.ext.jmol.JmolCommandsTest.testGetColourBySequenceCommands_hiddenColumns | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.schemes.ColourSchemesTest.testGetColourSchemesjalview.schemes.ColourSchemesTest.testGetColourSchemes | 1PASS | ||
0.06666667
|
jalview.gui.PaintRefresherTest.testGetAssociatedPanelsjalview.gui.PaintRefresherTest.testGetAssociatedPanels | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.renderer.seqfeatures.FeatureRendererTest.testFilterFeaturesForDisplayjalview.renderer.seqfeatures.FeatureRendererTest.testFilterFeaturesForDisplay | 1PASS | ||
0.06666667
|
jalview.gui.AlignmentPanelTest.testSetOverviewTitle_automaticOverviewjalview.gui.AlignmentPanelTest.testSetOverviewTitle_automaticOverview | 1PASS | ||
0.06666667
|
jalview.gui.ColourMenuHelperTest.testAddMenuItems_peptidejalview.gui.ColourMenuHelperTest.testAddMenuItems_peptide | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testPrintJalviewFormatjalview.io.FeaturesFileTest.testPrintJalviewFormat | 1PASS | ||
0.06666667
|
jalview.gui.AnnotationLabelsTest2.testIdWidthChangesjalview.gui.AnnotationLabelsTest2.testIdWidthChanges | 1PASS | ||
0.06666667
|
jalview.io.vcf.VCFLoaderTest.testDoLoad_vepCsqjalview.io.vcf.VCFLoaderTest.testDoLoad_vepCsq | 1PASS | ||
0.06666667
|
jalview.io.BackupFilesTest.backupsEnabledNoRollMaxTestjalview.io.BackupFilesTest.backupsEnabledNoRollMaxTest | 1PASS | ||
0.06666667
|
jalview.io.gff.GffTests.testResolveExonerateGffjalview.io.gff.GffTests.testResolveExonerateGff | 1PASS | ||
0.06666667
|
jalview.gui.AlignFrameTest.testChangeColour_background_groupsAndThresholdsjalview.gui.AlignFrameTest.testChangeColour_background_groupsAndThresholds | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.SecondaryStructureDistanceModelTest.testFindDistances_withSSUndefinedInEitherOneSeqjalview.analysis.scoremodels.SecondaryStructureDistanceModelTest.testFindDistances_withSSUndefinedInEitherOneSeq | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testFindColumn_unwrappedjalview.gui.SeqPanelTest.testFindColumn_unwrapped | 1PASS | ||
0.06666667
|
jalview.gui.PairwiseAlignmentPanelTest.testConstructor_noSelectionGroupjalview.gui.PairwiseAlignmentPanelTest.testConstructor_noSelectionGroup | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverAnnotationRowElementColoursjalview.project.Jalview2xmlTests.testStoreAndRecoverAnnotationRowElementColours | 1PASS | ||
0.06666667
|
jalview.io.BackupFilesTest.backupsEnabledSingleFileBackupTestjalview.io.BackupFilesTest.backupsEnabledSingleFileBackupTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTestjalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTest | 1PASS | ||
0.06666667
|
jalview.gui.ScalePanelTest.testSelectColumns_withHiddenjalview.gui.ScalePanelTest.testSelectColumns_withHidden | 1PASS | ||
0.06666667
|
jalview.schemes.ClustalxColourSchemeTest.testFindColour_ignoreGapsjalview.schemes.ClustalxColourSchemeTest.testFindColour_ignoreGaps | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testDeregisterMapping_withReferencejalview.gui.AlignViewportTest.testDeregisterMapping_withReference | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.FeatureDistanceModelTest.testFindDistancesjalview.analysis.scoremodels.FeatureDistanceModelTest.testFindDistances | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.FeatureDistanceModelTest.testFeatureScoreModel_HiddenColumnsjalview.analysis.scoremodels.FeatureDistanceModelTest.testFeatureScoreModel_HiddenColumns | 1PASS | ||
0.06666667
|
jalview.io.vcf.VCFLoaderTest.testDoLoadjalview.io.vcf.VCFLoaderTest.testDoLoad | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.datamodel.AlignmentViewTest.testGetVisibleContigsjalview.datamodel.AlignmentViewTest.testGetVisibleContigs | 1PASS | ||
0.06666667
|
jalview.io.JalviewExportPropertiesTests.testImportExportPeriodGapsjalview.io.JalviewExportPropertiesTests.testImportExportPeriodGaps | 1PASS | ||
0.06666667
|
jalview.io.BackupFilesTest.noBackupsEnabledTestjalview.io.BackupFilesTest.noBackupsEnabledTest | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverOverviewjalview.project.Jalview2xmlTests.testStoreAndRecoverOverview | 1PASS | ||
0.06666667
|
jalview.gui.AlignFrameTest.testNewView_dsRefPreservedjalview.gui.AlignFrameTest.testNewView_dsRefPreserved | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testPcaViewAssociationjalview.project.Jalview2xmlTests.testPcaViewAssociation | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTestjalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTest | 1PASS | ||
0.06666667
|
jalview.gui.ColourMenuHelperTest.testAddMenuItems_forAlignFramejalview.gui.ColourMenuHelperTest.testAddMenuItems_forAlignFrame | 1PASS | ||
0.06666667
|
jalview.io.vcf.VCFLoaderTest.testDoLoad_reverseStrandjalview.io.vcf.VCFLoaderTest.testDoLoad_reverseStrand | 1PASS | ||
0.06666667
|
jalview.gui.StructureChooserTest.openStructureFileForSequenceTestjalview.gui.StructureChooserTest.openStructureFileForSequenceTest | 1PASS | ||
0.06666667
|
jalview.io.AnnotatedPDBFileInputTest.testJalviewProjectRelocationAnnotationjalview.io.AnnotatedPDBFileInputTest.testJalviewProjectRelocationAnnotation | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.noDuplicatePdbMappingsMadejalview.project.Jalview2xmlTests.noDuplicatePdbMappingsMade | 1PASS | ||
0.06666667
|
jalview.controller.AlignViewControllerTest.testSelectColumnsWithHighlightjalview.controller.AlignViewControllerTest.testSelectColumnsWithHighlight | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testFindMousePosition_wrapped_annotationsjalview.gui.SeqPanelTest.testFindMousePosition_wrapped_annotations | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.SecondaryStructureDistanceModelTest.testFindDistances_withSSUndefinedInBothSeqsjalview.analysis.scoremodels.SecondaryStructureDistanceModelTest.testFindDistances_withSSUndefinedInBothSeqs | 1PASS | ||
0.06666667
|
jalview.io.AnnotationFileIOTest.testAnnotateAlignmentViewjalview.io.AnnotationFileIOTest.testAnnotateAlignmentView | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest2.structureOpeningArgsTestjalview.bin.CommandsTest2.structureOpeningArgsTest | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testAmbiguousAminoAcidGetsStatusMessagejalview.gui.SeqPanelTest.testAmbiguousAminoAcidGetsStatusMessage | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testAutoShowOverviewForLegacyProjectsjalview.project.Jalview2xmlTests.testAutoShowOverviewForLegacyProjects | 1PASS | ||
0.06666667
|
jalview.gui.ScalePanelTest.testBuildPopupMenujalview.gui.ScalePanelTest.testBuildPopupMenu | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testGetConsensusSeqjalview.gui.AlignViewportTest.testGetConsensusSeq | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.io.JSONFileTest.testGrpParsed_colourNonejalview.io.JSONFileTest.testGrpParsed_colourNone | 1PASS | ||
0.06666667
|
jalview.schemes.ColourSchemesTest.testRegisterColourSchemejalview.schemes.ColourSchemesTest.testRegisterColourScheme | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testForceQuitjalview.gui.QuitHandlerTest.testForceQuit | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testSavedAlignmentChangesjalview.gui.QuitHandlerTest.testSavedAlignmentChanges | 1PASS | ||
0.06666667
|
jalview.gui.StructureChooserTest.openStructureFileForSequenceTestjalview.gui.StructureChooserTest.openStructureFileForSequenceTest | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testPrintGffFormat_withFiltersjalview.io.FeaturesFileTest.testPrintGffFormat_withFilters | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testInstantQuitjalview.gui.QuitHandlerTest.testInstantQuit | 1PASS | ||
0.06666667
|
jalview.gui.AnnotationLabelsTest2.testIdWidthNoChangesjalview.gui.AnnotationLabelsTest2.testIdWidthNoChanges | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testFindMousePosition_wrapped_scaleAbovejalview.gui.SeqPanelTest.testFindMousePosition_wrapped_scaleAbove | 1PASS | ||
0.06666667
|
jalview.gui.AnnotationLabelsTest2.testIdWidthNoChangesjalview.gui.AnnotationLabelsTest2.testIdWidthNoChanges | 1PASS | ||
0.06666667
|
jalview.renderer.seqfeatures.FeatureRendererTest.testGetColourjalview.renderer.seqfeatures.FeatureRendererTest.testGetColour | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testGetSelectionAsNewSequences_withContactMatricesjalview.gui.AlignViewportTest.testGetSelectionAsNewSequences_withContactMatrices | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testFindMousePosition_wrapped_noAnnotationsjalview.gui.SeqPanelTest.testFindMousePosition_wrapped_noAnnotations | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testParse_pureGff3jalview.io.FeaturesFileTest.testParse_pureGff3 | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testFindMousePosition_wrapped_scales_longSequencejalview.gui.SeqPanelTest.testFindMousePosition_wrapped_scales_longSequence | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverGeneLocusjalview.project.Jalview2xmlTests.testStoreAndRecoverGeneLocus | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.FeatureDistanceModelTest.testFindDistances_withParamsjalview.analysis.scoremodels.FeatureDistanceModelTest.testFindDistances_withParams | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTestjalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTest | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testParsejalview.io.FeaturesFileTest.testParse | 1PASS | ||
0.06666667
|
jalview.ext.jmol.JmolParserTest.testAlignmentLoaderjalview.ext.jmol.JmolParserTest.testAlignmentLoader | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testFindColumn_and_FindAlignmentColumn_wrappedjalview.gui.SeqPanelTest.testFindColumn_and_FindAlignmentColumn_wrapped | 1PASS | ||
0.06666667
|
jalview.io.gff.ExonerateHelperTest.testAddExonerateGffToAlignmentjalview.io.gff.ExonerateHelperTest.testAddExonerateGffToAlignment | 1PASS | ||
0.06666667
|
jalview.io.BackupFilesTest.backupsEnabledReverseRollMaxTestjalview.io.BackupFilesTest.backupsEnabledReverseRollMaxTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTestjalview.bin.CommandsTest.argFilesGlobAndSubstitutionsTest | 1PASS | ||
0.06666667
|
jalview.gui.StructureChooserTest.openStructureFileForSequenceTestjalview.gui.StructureChooserTest.openStructureFileForSequenceTest | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverNoOverviewjalview.project.Jalview2xmlTests.testStoreAndRecoverNoOverview | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.simpleGff3FileLoaderjalview.io.FeaturesFileTest.simpleGff3FileLoader | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testPAEsaveRestorejalview.project.Jalview2xmlTests.testPAEsaveRestore | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testSetGetHasSearchResultsjalview.gui.AlignViewportTest.testSetGetHasSearchResults | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testColourByAnnotScoresjalview.project.Jalview2xmlTests.testColourByAnnotScores | 1PASS | ||
0.06666667
|
jalview.gui.PopupMenuTest.testHideInsertionsjalview.gui.PopupMenuTest.testHideInsertions | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testNoGUIUnsavedChangesjalview.gui.QuitHandlerTest.testNoGUIUnsavedChanges | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverGroupRepSeqsjalview.project.Jalview2xmlTests.testStoreAndRecoverGroupRepSeqs | 1PASS | ||
0.06666667
|
jalview.analysis.AverageDistanceEngineTest.testUPGMAEnginejalview.analysis.AverageDistanceEngineTest.testUPGMAEngine | 1PASS | ||
0.06666667
|
jalview.gui.ScalePanelTest.testPreventNegativeStartColumnjalview.gui.ScalePanelTest.testPreventNegativeStartColumn | 1PASS | ||
0.06666667
|
jalview.io.WindowsFileLoadAndSaveTest.loadAndSaveAlignmentjalview.io.WindowsFileLoadAndSaveTest.loadAndSaveAlignment | 1PASS | ||
0.06666667
|
jalview.gui.AlignmentPanelTest.testSetOverviewTitlejalview.gui.AlignmentPanelTest.testSetOverviewTitle | 1PASS | ||
0.06666667
|
jalview.structures.models.AAStructureBindingModelTest.testBuildColoursMapjalview.structures.models.AAStructureBindingModelTest.testBuildColoursMap | 1PASS | ||
0.06666667
|
jalview.io.BackupFilesTest.backupsEnabledRollMaxTestjalview.io.BackupFilesTest.backupsEnabledRollMaxTest | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRestoreIDwidthAndAnnotationHeightjalview.project.Jalview2xmlTests.testStoreAndRestoreIDwidthAndAnnotationHeight | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testDeregisterMapping_onCloseViewjalview.gui.AlignViewportTest.testDeregisterMapping_onCloseView | 1PASS | ||
0.06666667
|
jalview.gui.ColourMenuHelperTest.testAddMenuItems_simpleOnlyjalview.gui.ColourMenuHelperTest.testAddMenuItems_simpleOnly | 1PASS | ||
0.06666667
|
jalview.gui.ColourMenuHelperTest.testAddMenuItems_nucleotidejalview.gui.ColourMenuHelperTest.testAddMenuItems_nucleotide | 1PASS | ||
0.06666667
|
jalview.io.JSONFileTest.testBioJSONRoundTripWithColourSchemeNonejalview.io.JSONFileTest.testBioJSONRoundTripWithColourSchemeNone | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testStoreAndRecoverColourThresholdsjalview.project.Jalview2xmlTests.testStoreAndRecoverColourThresholds | 1PASS | ||
0.06666667
|
jalview.renderer.seqfeatures.FeatureRendererTest.testIsVisiblejalview.renderer.seqfeatures.FeatureRendererTest.testIsVisible | 1PASS | ||
0.06666667
|
jalview.gui.PairwiseAlignmentPanelTest.testConstructor_withSelectionGroupjalview.gui.PairwiseAlignmentPanelTest.testConstructor_withSelectionGroup | 1PASS | ||
0.06666667
|
jalview.gui.DesktopTests.testInternalCopyPastejalview.gui.DesktopTests.testInternalCopyPaste | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testRNAStructureRecoveryjalview.project.Jalview2xmlTests.testRNAStructureRecovery | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.gui.AnnotationLabelsTest2.testIdWidthChangesjalview.gui.AnnotationLabelsTest2.testIdWidthChanges | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testTCoffeeScoresjalview.project.Jalview2xmlTests.testTCoffeeScores | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testPrintJalviewFormat_withFiltersjalview.io.FeaturesFileTest.testPrintJalviewFormat_withFilters | 1PASS | ||
0.06666667
|
jalview.controller.AlignViewControllerTest.testFindColumnsWithFeaturejalview.controller.AlignViewControllerTest.testFindColumnsWithFeature | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testSetSelectionGroupjalview.gui.AlignViewportTest.testSetSelectionGroup | 1PASS | ||
0.06666667
|
jalview.gui.SeqPanelTest.testSetStatusReturnsNearestResiduePositionjalview.gui.SeqPanelTest.testSetStatusReturnsNearestResiduePosition | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testPrintGffFormatjalview.io.FeaturesFileTest.testPrintGffFormat | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.SecondaryStructureDistanceModelTest.testFindDistances_withGapjalview.analysis.scoremodels.SecondaryStructureDistanceModelTest.testFindDistances_withGap | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testShowOrDontShowOccupancyjalview.gui.AlignViewportTest.testShowOrDontShowOccupancy | 1PASS | ||
0.06666667
|
jalview.io.AnnotationExporterTest.testAnnotationExportAsCSVjalview.io.AnnotationExporterTest.testAnnotationExportAsCSV | 1PASS | ||
0.06666667
|
jalview.gui.AlignFrameTest.testHideFeatureColumnsjalview.gui.AlignFrameTest.testHideFeatureColumns | 1PASS | ||
0.06666667
|
jalview.renderer.seqfeatures.FeatureRendererTest.testFindFeaturesAtColumnjalview.renderer.seqfeatures.FeatureRendererTest.testFindFeaturesAtColumn | 1PASS | ||
0.06666667
|
jalview.io.CrossRef2xmlTests.openCrossrefsForEnsemblTwicejalview.io.CrossRef2xmlTests.openCrossrefsForEnsemblTwice | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.FeatureDistanceModelTest.testFindFeatureAt_PointFeaturejalview.analysis.scoremodels.FeatureDistanceModelTest.testFindFeatureAt_PointFeature | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testUnsavedChangesjalview.gui.QuitHandlerTest.testUnsavedChanges | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testUpdateConservation_qualityOnlyjalview.gui.AlignViewportTest.testUpdateConservation_qualityOnly | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.FeatureDistanceModelTest.testFeatureScoreModel_hiddenFirstColumnjalview.analysis.scoremodels.FeatureDistanceModelTest.testFeatureScoreModel_hiddenFirstColumn | 1PASS | ||
0.06666667
|
jalview.gui.FeatureSettingsTest.testSaveLoadjalview.gui.FeatureSettingsTest.testSaveLoad | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testSavedProjectChangesjalview.gui.QuitHandlerTest.testSavedProjectChanges | 1PASS | ||
0.06666667
|
jalview.renderer.seqfeatures.FeatureRendererTest.testFindAllFeaturesjalview.renderer.seqfeatures.FeatureRendererTest.testFindAllFeatures | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testMergeDatasetsforManyViewsjalview.project.Jalview2xmlTests.testMergeDatasetsforManyViews | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.allLinkedIdsTestjalview.bin.CommandsTest.allLinkedIdsTest | 1PASS | ||
0.06666667
|
jalview.gui.AlignViewportTest.testDeregisterMapping_withNoReferencejalview.gui.AlignViewportTest.testDeregisterMapping_withNoReference | 1PASS | ||
0.06666667
|
jalview.project.Jalview2xmlTests.testSaveLoadFeatureColoursAndFiltersjalview.project.Jalview2xmlTests.testSaveLoadFeatureColoursAndFilters | 1PASS | ||
0.06666667
|
jalview.bin.CommandsTest.commandsOpenTestjalview.bin.CommandsTest.commandsOpenTest | 1PASS | ||
0.06666667
|
jalview.gui.QuitHandlerTest.testWaitForSaveQuitjalview.gui.QuitHandlerTest.testWaitForSaveQuit | 1PASS | ||
0.06666667
|
jalview.schemes.ClustalxColourSchemeTest.testFindColourjalview.schemes.ClustalxColourSchemeTest.testFindColour | 1PASS | ||
0.06666667
|
jalview.io.FeaturesFileTest.testParse_jalviewFeaturesOnlyjalview.io.FeaturesFileTest.testParse_jalviewFeaturesOnly | 1PASS | ||
0.06666667
|
jalview.analysis.scoremodels.FeatureDistanceModelTest.testFeatureScoreModeljalview.analysis.scoremodels.FeatureDistanceModelTest.testFeatureScoreModel | 1PASS | ||
0.06666667
|
jalview.renderer.seqfeatures.FeatureRendererTest.testFindComplementFeaturesAtResiduejalview.renderer.seqfeatures.FeatureRendererTest.testFindComplementFeaturesAtResidue | 1PASS | ||
0.06666667
|
jalview.gui.AlignFrameTest.testNewView_colourThresholdsjalview.gui.AlignFrameTest.testNewView_colourThresholds | 1PASS | ||
0.06666667
|
jalview.renderer.ScaleRendererTest.testCalculateMarksjalview.renderer.ScaleRendererTest.testCalculateMarks | 1PASS | ||
0.033333335
|
jalview.datamodel.SequenceGroupTest.testCopyConstructorjalview.datamodel.SequenceGroupTest.testCopyConstructor | 1PASS | ||
0.033333335
|
jalview.schemes.ResidueColourSchemeTest.testIsApplicableTojalview.schemes.ResidueColourSchemeTest.testIsApplicableTo | 1PASS | ||
0.033333335
|
jalview.renderer.ResidueShaderTest.testAboveThresholdjalview.renderer.ResidueShaderTest.testAboveThreshold | 1PASS | ||
0.033333335
|
jalview.renderer.ResidueShaderTest.testApplyConservationjalview.renderer.ResidueShaderTest.testApplyConservation | 1PASS |
1 | /* | ||||||
2 | * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) | ||||||
3 | * Copyright (C) $$Year-Rel$$ The Jalview Authors | ||||||
4 | * | ||||||
5 | * This file is part of Jalview. | ||||||
6 | * | ||||||
7 | * Jalview is free software: you can redistribute it and/or | ||||||
8 | * modify it under the terms of the GNU General Public License | ||||||
9 | * as published by the Free Software Foundation, either version 3 | ||||||
10 | * of the License, or (at your option) any later version. | ||||||
11 | * | ||||||
12 | * Jalview is distributed in the hope that it will be useful, but | ||||||
13 | * WITHOUT ANY WARRANTY; without even the implied warranty | ||||||
14 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR | ||||||
15 | * PURPOSE. See the GNU General Public License for more details. | ||||||
16 | * | ||||||
17 | * You should have received a copy of the GNU General Public License | ||||||
18 | * along with Jalview. If not, see <http://www.gnu.org/licenses/>. | ||||||
19 | * The Jalview Authors are detailed in the 'AUTHORS' file. | ||||||
20 | */ | ||||||
21 | package jalview.schemes; | ||||||
22 | |||||||
23 | import jalview.api.AlignViewportI; | ||||||
24 | import jalview.datamodel.AnnotatedCollectionI; | ||||||
25 | import jalview.datamodel.SequenceGroup; | ||||||
26 | import jalview.datamodel.SequenceI; | ||||||
27 | import jalview.util.Comparison; | ||||||
28 | |||||||
29 | import java.awt.Color; | ||||||
30 | |||||||
|
|||||||
31 | public class PIDColourScheme extends ResidueColourScheme | ||||||
32 | { | ||||||
33 | private static final Color[] pidColours = { new Color(100, 100, 255), | ||||||
34 | new Color(153, 153, 255), new Color(204, 204, 255), }; | ||||||
35 | |||||||
36 | private static final float[] thresholds = { 80, 60, 40, }; | ||||||
37 | |||||||
38 | SequenceGroup group; | ||||||
39 | |||||||
|
|||||||
40 | 67 | public PIDColourScheme()... | |||||
41 | { | ||||||
42 | } | ||||||
43 | |||||||
|
|||||||
44 | 14 | @Override... | |||||
45 | public Color findColour(char c, int j, SequenceI seq, | ||||||
46 | String consensusResidue, float pid) | ||||||
47 | { | ||||||
48 | /* | ||||||
49 | * compare as upper case; note consensusResidue is | ||||||
50 | * always computed as uppercase | ||||||
51 | */ | ||||||
52 | 14 | if ('a' <= c && c <= 'z') | |||||
53 | { | ||||||
54 | 1 | c -= ('a' - 'A'); | |||||
55 | } | ||||||
56 | |||||||
57 | 14 | if (consensusResidue == null || Comparison.isGap(c)) | |||||
58 | { | ||||||
59 | 0 | return Color.white; | |||||
60 | } | ||||||
61 | |||||||
62 | 14 | Color colour = Color.white; | |||||
63 | |||||||
64 | /* | ||||||
65 | * test whether this is the consensus (or joint consensus) residue | ||||||
66 | */ | ||||||
67 | 14 | boolean matchesConsensus = consensusResidue.contains(String.valueOf(c)); | |||||
68 | 14 | if (matchesConsensus) | |||||
69 | { | ||||||
70 | 31 | for (int i = 0; i < thresholds.length; i++) | |||||
71 | { | ||||||
72 | 29 | if (pid > thresholds[i]) | |||||
73 | { | ||||||
74 | 11 | colour = pidColours[i]; | |||||
75 | 11 | break; | |||||
76 | } | ||||||
77 | } | ||||||
78 | } | ||||||
79 | |||||||
80 | 14 | return colour; | |||||
81 | } | ||||||
82 | |||||||
|
|||||||
83 | 564 | @Override... | |||||
84 | public String getSchemeName() | ||||||
85 | { | ||||||
86 | 564 | return JalviewColourScheme.PID.toString(); | |||||
87 | } | ||||||
88 | |||||||
89 | /** | ||||||
90 | * Returns a new instance of this colour scheme with which the given data may | ||||||
91 | * be coloured | ||||||
92 | */ | ||||||
|
|||||||
93 | 3 | @Override... | |||||
94 | public ColourSchemeI getInstance(AlignViewportI view, | ||||||
95 | AnnotatedCollectionI coll) | ||||||
96 | { | ||||||
97 | 3 | return new PIDColourScheme(); | |||||
98 | } | ||||||
99 | |||||||
|
|||||||
100 | 47 | @Override... | |||||
101 | public boolean isSimple() | ||||||
102 | { | ||||||
103 | 47 | return false; | |||||
104 | } | ||||||
105 | } |