@apollo-annotation/jbrowse-plugin-apollo 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7115,7 +7115,7 @@
7115
7115
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
7116
7116
  }), 'Add');
7117
7117
 
7118
- var version = "1.1.0";
7118
+ var version = "1.1.1";
7119
7119
 
7120
7120
  const ApolloConfigSchema = configuration.ConfigurationSchema('ApolloInternetAccount', {
7121
7121
  baseURL: {
@@ -29815,7 +29815,15 @@
29815
29815
  }
29816
29816
  // Trim any sequence before first start codon and after stop codon
29817
29817
  const startCodonIndex = proteinSequence.indexOf('M');
29818
- const stopCodonIndex = proteinSequence.lastIndexOf('*');
29818
+ if (startCodonIndex === -1) {
29819
+ notify('Start codon not found', 'error');
29820
+ return;
29821
+ }
29822
+ const stopCodonIndex = proteinSequence.indexOf('*', startCodonIndex);
29823
+ if (stopCodonIndex === -1) {
29824
+ notify('Stop codon not found', 'error');
29825
+ return;
29826
+ }
29819
29827
  const startCodonPos = startCodonIndex * 3;
29820
29828
  const stopCodonPos = stopCodonIndex * 3;
29821
29829
  const startCodonGenomicLoc = getCodonGenomicLocation(startCodonPos);
@@ -35368,7 +35376,7 @@
35368
35376
  const [selectedDestinationFeature, setSelectedDestinationFeature] = React.useState();
35369
35377
  const apolloAssembly = apolloSessionModel.apolloDataStore.assemblies.get(assembly.name);
35370
35378
  const refSeq = apolloAssembly?.refSeqs.get(refSeqId);
35371
- const features = refSeq?.getFeatures(region.start, region.end);
35379
+ const features = React.useMemo(() => refSeq?.getFeatures(region.start, region.end), [refSeq, region.start, region.end]);
35372
35380
  React.useEffect(() => {
35373
35381
  const getDestinationFeatures = () => {
35374
35382
  const filteredFeatures = [];