Skip to content

Commit

Permalink
correct number of feature lines written to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
kyostiebi committed Sep 7, 2023
1 parent d62b478 commit 5166ff6
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 137 deletions.
5 changes: 5 additions & 0 deletions packages/apollo-mst/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const ApolloRefSeq = types
name: types.string,
features: types.map(AnnotationFeature),
sequence: types.array(Sequence),
description: '',
})
.actions((self) => ({
addFeature(feature: AnnotationFeatureSnapshot) {
Expand Down Expand Up @@ -104,6 +105,7 @@ export const ApolloAssembly = types
.model('ApolloAssembly', {
_id: types.identifier,
refSeqs: types.map(ApolloRefSeq),
comments: types.array(types.string),
backendDriverType: types.optional(
types.enumeration('backendDriverType', [
'CollaborationServerDriver',
Expand All @@ -124,6 +126,9 @@ export const ApolloAssembly = types
addRefSeq(id: string, name: string) {
return self.refSeqs.put({ _id: id, name })
},
addComment(comment: string) {
return self.comments.push(comment)
},
}))

export type ApolloRefSeqI = Instance<typeof ApolloRefSeq>
Expand Down
Loading

0 comments on commit 5166ff6

Please sign in to comment.