@jbrowse/plugin-alignments 2.6.1 → 2.6.2

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.
Files changed (524) hide show
  1. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +0 -1
  2. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js +0 -1
  3. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js +0 -1
  4. package/dist/AlignmentsFeatureDetail/index.js +0 -1
  5. package/dist/AlignmentsFeatureDetail/util.js +0 -1
  6. package/dist/AlignmentsTrack/configSchemaF.js +0 -1
  7. package/dist/AlignmentsTrack/index.js +0 -1
  8. package/dist/BamAdapter/BamAdapter.js +0 -1
  9. package/dist/BamAdapter/BamSlightlyLazyFeature.js +0 -1
  10. package/dist/BamAdapter/configSchema.js +0 -1
  11. package/dist/BamAdapter/index.js +0 -1
  12. package/dist/CramAdapter/CramAdapter.js +0 -1
  13. package/dist/CramAdapter/CramSlightlyLazyFeature.js +0 -1
  14. package/dist/CramAdapter/CramTestAdapters.js +0 -1
  15. package/dist/CramAdapter/configSchema.js +0 -1
  16. package/dist/CramAdapter/index.js +0 -1
  17. package/dist/CramAdapter/util.js +0 -1
  18. package/dist/GuessAlignmentsTypes/index.js +0 -1
  19. package/dist/HtsgetBamAdapter/HtsgetBamAdapter.js +0 -1
  20. package/dist/HtsgetBamAdapter/configSchema.js +0 -1
  21. package/dist/HtsgetBamAdapter/index.js +0 -1
  22. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
  23. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +5 -2
  24. package/dist/LinearAlignmentsDisplay/index.js +0 -1
  25. package/dist/LinearAlignmentsDisplay/models/configSchema.js +0 -1
  26. package/dist/LinearAlignmentsDisplay/models/model.js +5 -2
  27. package/dist/LinearPileupDisplay/components/ColorByModifications.js +0 -1
  28. package/dist/LinearPileupDisplay/components/ColorByTag.js +0 -1
  29. package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +0 -1
  30. package/dist/LinearPileupDisplay/components/ModificationsTable.js +0 -1
  31. package/dist/LinearPileupDisplay/components/SetFeatureHeight.js +0 -1
  32. package/dist/LinearPileupDisplay/components/SetMaxHeight.js +0 -1
  33. package/dist/LinearPileupDisplay/components/SortByTag.js +0 -1
  34. package/dist/LinearPileupDisplay/configSchema.js +0 -1
  35. package/dist/LinearPileupDisplay/index.js +0 -1
  36. package/dist/LinearPileupDisplay/model.d.ts +18 -26
  37. package/dist/LinearPileupDisplay/model.js +2 -3
  38. package/dist/LinearReadArcsDisplay/components/ReactComponent.js +0 -1
  39. package/dist/LinearReadArcsDisplay/configSchema.js +0 -1
  40. package/dist/LinearReadArcsDisplay/drawFeats.js +0 -1
  41. package/dist/LinearReadArcsDisplay/index.js +0 -1
  42. package/dist/LinearReadArcsDisplay/model.js +0 -1
  43. package/dist/LinearReadArcsDisplay/util.js +0 -1
  44. package/dist/LinearReadCloudDisplay/components/ReactComponent.js +0 -1
  45. package/dist/LinearReadCloudDisplay/configSchema.d.ts +4 -4
  46. package/dist/LinearReadCloudDisplay/configSchema.js +0 -1
  47. package/dist/LinearReadCloudDisplay/drawFeats.js +0 -1
  48. package/dist/LinearReadCloudDisplay/drawLongReadChains.js +0 -1
  49. package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -1
  50. package/dist/LinearReadCloudDisplay/index.js +0 -1
  51. package/dist/LinearReadCloudDisplay/model.d.ts +1 -3
  52. package/dist/LinearReadCloudDisplay/model.js +0 -1
  53. package/dist/LinearReadCloudDisplay/util.js +0 -1
  54. package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +0 -1
  55. package/dist/LinearSNPCoverageDisplay/index.js +0 -1
  56. package/dist/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -0
  57. package/dist/LinearSNPCoverageDisplay/models/configSchema.js +0 -1
  58. package/dist/LinearSNPCoverageDisplay/models/model.d.ts +31 -15
  59. package/dist/LinearSNPCoverageDisplay/models/model.js +0 -1
  60. package/dist/MismatchParser/index.js +0 -1
  61. package/dist/PileupRPC/base.js +0 -1
  62. package/dist/PileupRPC/index.js +0 -1
  63. package/dist/PileupRPC/methods/GetGlobalValueForTag.js +0 -1
  64. package/dist/PileupRPC/methods/GetReducedFeatures.js +0 -1
  65. package/dist/PileupRPC/methods/GetVisibleModifications.js +0 -1
  66. package/dist/PileupRPC/rpcMethods.js +0 -1
  67. package/dist/PileupRPC/util.js +0 -1
  68. package/dist/PileupRenderer/PileupLayoutSession.js +0 -1
  69. package/dist/PileupRenderer/PileupRenderer.js +0 -1
  70. package/dist/PileupRenderer/colorBy.js +8 -7
  71. package/dist/PileupRenderer/components/PileupRendering.js +0 -1
  72. package/dist/PileupRenderer/configSchema.js +0 -1
  73. package/dist/PileupRenderer/getAlignmentShapeColor.js +0 -1
  74. package/dist/PileupRenderer/index.js +0 -1
  75. package/dist/PileupRenderer/layoutFeature.js +0 -1
  76. package/dist/PileupRenderer/layoutFeatures.js +0 -1
  77. package/dist/PileupRenderer/makeImageData.js +0 -1
  78. package/dist/PileupRenderer/renderAlignment.js +0 -1
  79. package/dist/PileupRenderer/renderAlignmentShape.js +1 -2
  80. package/dist/PileupRenderer/renderMethylation.js +0 -1
  81. package/dist/PileupRenderer/renderMismatches.js +0 -1
  82. package/dist/PileupRenderer/renderModifications.js +0 -1
  83. package/dist/PileupRenderer/renderPerBaseLettering.js +0 -1
  84. package/dist/PileupRenderer/renderPerBaseQuality.js +0 -1
  85. package/dist/PileupRenderer/renderSoftClipping.js +0 -1
  86. package/dist/PileupRenderer/sortUtil.js +0 -1
  87. package/dist/PileupRenderer/util.js +0 -1
  88. package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +0 -1
  89. package/dist/SNPCoverageAdapter/configSchema.js +0 -1
  90. package/dist/SNPCoverageAdapter/generateCoverageBins.js +0 -1
  91. package/dist/SNPCoverageAdapter/index.js +0 -1
  92. package/dist/SNPCoverageAdapter/util.js +0 -1
  93. package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +0 -1
  94. package/dist/SNPCoverageRenderer/configSchema.js +0 -1
  95. package/dist/SNPCoverageRenderer/index.js +0 -1
  96. package/dist/index.js +0 -1
  97. package/dist/shared/BaseDisplayComponent.js +0 -1
  98. package/dist/shared/FilterByTag.js +0 -1
  99. package/dist/shared/afterAttach.js +0 -1
  100. package/dist/shared/color.js +0 -1
  101. package/dist/shared/fetchChains.js +0 -1
  102. package/dist/shared/index.js +0 -1
  103. package/dist/shared/renderSvg.js +0 -1
  104. package/dist/shared/util.js +0 -1
  105. package/dist/util.js +0 -1
  106. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +0 -1
  107. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js +0 -1
  108. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js +0 -1
  109. package/esm/AlignmentsFeatureDetail/index.js +0 -1
  110. package/esm/AlignmentsFeatureDetail/util.js +0 -1
  111. package/esm/AlignmentsTrack/configSchemaF.js +0 -1
  112. package/esm/AlignmentsTrack/index.js +0 -1
  113. package/esm/BamAdapter/BamAdapter.js +0 -1
  114. package/esm/BamAdapter/BamSlightlyLazyFeature.js +0 -1
  115. package/esm/BamAdapter/configSchema.js +0 -1
  116. package/esm/BamAdapter/index.js +0 -1
  117. package/esm/CramAdapter/CramAdapter.js +0 -1
  118. package/esm/CramAdapter/CramSlightlyLazyFeature.js +0 -1
  119. package/esm/CramAdapter/CramTestAdapters.js +0 -1
  120. package/esm/CramAdapter/configSchema.js +0 -1
  121. package/esm/CramAdapter/index.js +0 -1
  122. package/esm/CramAdapter/util.js +0 -1
  123. package/esm/GuessAlignmentsTypes/index.js +0 -1
  124. package/esm/HtsgetBamAdapter/HtsgetBamAdapter.js +0 -1
  125. package/esm/HtsgetBamAdapter/configSchema.js +0 -1
  126. package/esm/HtsgetBamAdapter/index.js +0 -1
  127. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
  128. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +5 -2
  129. package/esm/LinearAlignmentsDisplay/index.js +0 -1
  130. package/esm/LinearAlignmentsDisplay/models/configSchema.js +0 -1
  131. package/esm/LinearAlignmentsDisplay/models/model.js +5 -2
  132. package/esm/LinearPileupDisplay/components/ColorByModifications.js +0 -1
  133. package/esm/LinearPileupDisplay/components/ColorByTag.js +0 -1
  134. package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +0 -1
  135. package/esm/LinearPileupDisplay/components/ModificationsTable.js +0 -1
  136. package/esm/LinearPileupDisplay/components/SetFeatureHeight.js +0 -1
  137. package/esm/LinearPileupDisplay/components/SetMaxHeight.js +0 -1
  138. package/esm/LinearPileupDisplay/components/SortByTag.js +0 -1
  139. package/esm/LinearPileupDisplay/configSchema.js +0 -1
  140. package/esm/LinearPileupDisplay/index.js +0 -1
  141. package/esm/LinearPileupDisplay/model.d.ts +18 -26
  142. package/esm/LinearPileupDisplay/model.js +2 -3
  143. package/esm/LinearReadArcsDisplay/components/ReactComponent.js +0 -1
  144. package/esm/LinearReadArcsDisplay/configSchema.js +0 -1
  145. package/esm/LinearReadArcsDisplay/drawFeats.js +0 -1
  146. package/esm/LinearReadArcsDisplay/index.js +0 -1
  147. package/esm/LinearReadArcsDisplay/model.js +0 -1
  148. package/esm/LinearReadArcsDisplay/util.js +0 -1
  149. package/esm/LinearReadCloudDisplay/components/ReactComponent.js +0 -1
  150. package/esm/LinearReadCloudDisplay/configSchema.d.ts +4 -4
  151. package/esm/LinearReadCloudDisplay/configSchema.js +0 -1
  152. package/esm/LinearReadCloudDisplay/drawFeats.js +0 -1
  153. package/esm/LinearReadCloudDisplay/drawLongReadChains.js +0 -1
  154. package/esm/LinearReadCloudDisplay/drawPairChains.js +0 -1
  155. package/esm/LinearReadCloudDisplay/index.js +0 -1
  156. package/esm/LinearReadCloudDisplay/model.d.ts +1 -3
  157. package/esm/LinearReadCloudDisplay/model.js +0 -1
  158. package/esm/LinearReadCloudDisplay/util.js +0 -1
  159. package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +0 -1
  160. package/esm/LinearSNPCoverageDisplay/index.js +0 -1
  161. package/esm/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -0
  162. package/esm/LinearSNPCoverageDisplay/models/configSchema.js +0 -1
  163. package/esm/LinearSNPCoverageDisplay/models/model.d.ts +31 -15
  164. package/esm/LinearSNPCoverageDisplay/models/model.js +0 -1
  165. package/esm/MismatchParser/index.js +0 -1
  166. package/esm/PileupRPC/base.js +0 -1
  167. package/esm/PileupRPC/index.js +0 -1
  168. package/esm/PileupRPC/methods/GetGlobalValueForTag.js +0 -1
  169. package/esm/PileupRPC/methods/GetReducedFeatures.js +0 -1
  170. package/esm/PileupRPC/methods/GetVisibleModifications.js +0 -1
  171. package/esm/PileupRPC/rpcMethods.js +0 -1
  172. package/esm/PileupRPC/util.js +0 -1
  173. package/esm/PileupRenderer/PileupLayoutSession.js +0 -1
  174. package/esm/PileupRenderer/PileupRenderer.js +0 -1
  175. package/esm/PileupRenderer/colorBy.js +8 -7
  176. package/esm/PileupRenderer/components/PileupRendering.js +0 -1
  177. package/esm/PileupRenderer/configSchema.js +0 -1
  178. package/esm/PileupRenderer/getAlignmentShapeColor.js +0 -1
  179. package/esm/PileupRenderer/index.js +0 -1
  180. package/esm/PileupRenderer/layoutFeature.js +0 -1
  181. package/esm/PileupRenderer/layoutFeatures.js +0 -1
  182. package/esm/PileupRenderer/makeImageData.js +0 -1
  183. package/esm/PileupRenderer/renderAlignment.js +0 -1
  184. package/esm/PileupRenderer/renderAlignmentShape.js +1 -2
  185. package/esm/PileupRenderer/renderMethylation.js +0 -1
  186. package/esm/PileupRenderer/renderMismatches.js +0 -1
  187. package/esm/PileupRenderer/renderModifications.js +0 -1
  188. package/esm/PileupRenderer/renderPerBaseLettering.js +0 -1
  189. package/esm/PileupRenderer/renderPerBaseQuality.js +0 -1
  190. package/esm/PileupRenderer/renderSoftClipping.js +0 -1
  191. package/esm/PileupRenderer/sortUtil.js +0 -1
  192. package/esm/PileupRenderer/util.js +0 -1
  193. package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js +0 -1
  194. package/esm/SNPCoverageAdapter/configSchema.js +0 -1
  195. package/esm/SNPCoverageAdapter/generateCoverageBins.js +0 -1
  196. package/esm/SNPCoverageAdapter/index.js +0 -1
  197. package/esm/SNPCoverageAdapter/util.js +0 -1
  198. package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +0 -1
  199. package/esm/SNPCoverageRenderer/configSchema.js +0 -1
  200. package/esm/SNPCoverageRenderer/index.js +0 -1
  201. package/esm/index.js +0 -1
  202. package/esm/shared/BaseDisplayComponent.js +0 -1
  203. package/esm/shared/FilterByTag.js +0 -1
  204. package/esm/shared/afterAttach.js +0 -1
  205. package/esm/shared/color.js +0 -1
  206. package/esm/shared/fetchChains.js +0 -1
  207. package/esm/shared/index.js +0 -1
  208. package/esm/shared/renderSvg.js +0 -1
  209. package/esm/shared/util.js +0 -1
  210. package/esm/util.js +0 -1
  211. package/package.json +4 -5
  212. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js.map +0 -1
  213. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js.map +0 -1
  214. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js.map +0 -1
  215. package/dist/AlignmentsFeatureDetail/index.js.map +0 -1
  216. package/dist/AlignmentsFeatureDetail/util.js.map +0 -1
  217. package/dist/AlignmentsTrack/configSchemaF.js.map +0 -1
  218. package/dist/AlignmentsTrack/index.js.map +0 -1
  219. package/dist/BamAdapter/BamAdapter.js.map +0 -1
  220. package/dist/BamAdapter/BamSlightlyLazyFeature.js.map +0 -1
  221. package/dist/BamAdapter/configSchema.js.map +0 -1
  222. package/dist/BamAdapter/index.js.map +0 -1
  223. package/dist/CramAdapter/CramAdapter.js.map +0 -1
  224. package/dist/CramAdapter/CramSlightlyLazyFeature.js.map +0 -1
  225. package/dist/CramAdapter/CramTestAdapters.js.map +0 -1
  226. package/dist/CramAdapter/configSchema.js.map +0 -1
  227. package/dist/CramAdapter/index.js.map +0 -1
  228. package/dist/CramAdapter/util.js.map +0 -1
  229. package/dist/GuessAlignmentsTypes/index.js.map +0 -1
  230. package/dist/HtsgetBamAdapter/HtsgetBamAdapter.js.map +0 -1
  231. package/dist/HtsgetBamAdapter/configSchema.js.map +0 -1
  232. package/dist/HtsgetBamAdapter/index.js.map +0 -1
  233. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js.map +0 -1
  234. package/dist/LinearAlignmentsDisplay/index.js.map +0 -1
  235. package/dist/LinearAlignmentsDisplay/models/configSchema.js.map +0 -1
  236. package/dist/LinearAlignmentsDisplay/models/model.js.map +0 -1
  237. package/dist/LinearPileupDisplay/components/ColorByModifications.js.map +0 -1
  238. package/dist/LinearPileupDisplay/components/ColorByTag.js.map +0 -1
  239. package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js.map +0 -1
  240. package/dist/LinearPileupDisplay/components/ModificationsTable.js.map +0 -1
  241. package/dist/LinearPileupDisplay/components/SetFeatureHeight.js.map +0 -1
  242. package/dist/LinearPileupDisplay/components/SetMaxHeight.js.map +0 -1
  243. package/dist/LinearPileupDisplay/components/SortByTag.js.map +0 -1
  244. package/dist/LinearPileupDisplay/configSchema.js.map +0 -1
  245. package/dist/LinearPileupDisplay/index.js.map +0 -1
  246. package/dist/LinearPileupDisplay/model.js.map +0 -1
  247. package/dist/LinearReadArcsDisplay/components/ReactComponent.js.map +0 -1
  248. package/dist/LinearReadArcsDisplay/configSchema.js.map +0 -1
  249. package/dist/LinearReadArcsDisplay/drawFeats.js.map +0 -1
  250. package/dist/LinearReadArcsDisplay/index.js.map +0 -1
  251. package/dist/LinearReadArcsDisplay/model.js.map +0 -1
  252. package/dist/LinearReadArcsDisplay/util.js.map +0 -1
  253. package/dist/LinearReadCloudDisplay/components/ReactComponent.js.map +0 -1
  254. package/dist/LinearReadCloudDisplay/configSchema.js.map +0 -1
  255. package/dist/LinearReadCloudDisplay/drawFeats.js.map +0 -1
  256. package/dist/LinearReadCloudDisplay/drawLongReadChains.js.map +0 -1
  257. package/dist/LinearReadCloudDisplay/drawPairChains.js.map +0 -1
  258. package/dist/LinearReadCloudDisplay/index.js.map +0 -1
  259. package/dist/LinearReadCloudDisplay/model.js.map +0 -1
  260. package/dist/LinearReadCloudDisplay/util.js.map +0 -1
  261. package/dist/LinearSNPCoverageDisplay/components/Tooltip.js.map +0 -1
  262. package/dist/LinearSNPCoverageDisplay/index.js.map +0 -1
  263. package/dist/LinearSNPCoverageDisplay/models/configSchema.js.map +0 -1
  264. package/dist/LinearSNPCoverageDisplay/models/model.js.map +0 -1
  265. package/dist/MismatchParser/index.js.map +0 -1
  266. package/dist/PileupRPC/base.js.map +0 -1
  267. package/dist/PileupRPC/index.js.map +0 -1
  268. package/dist/PileupRPC/methods/GetGlobalValueForTag.js.map +0 -1
  269. package/dist/PileupRPC/methods/GetReducedFeatures.js.map +0 -1
  270. package/dist/PileupRPC/methods/GetVisibleModifications.js.map +0 -1
  271. package/dist/PileupRPC/rpcMethods.js.map +0 -1
  272. package/dist/PileupRPC/util.js.map +0 -1
  273. package/dist/PileupRenderer/PileupLayoutSession.js.map +0 -1
  274. package/dist/PileupRenderer/PileupRenderer.js.map +0 -1
  275. package/dist/PileupRenderer/colorBy.js.map +0 -1
  276. package/dist/PileupRenderer/components/PileupRendering.js.map +0 -1
  277. package/dist/PileupRenderer/configSchema.js.map +0 -1
  278. package/dist/PileupRenderer/getAlignmentShapeColor.js.map +0 -1
  279. package/dist/PileupRenderer/index.js.map +0 -1
  280. package/dist/PileupRenderer/layoutFeature.js.map +0 -1
  281. package/dist/PileupRenderer/layoutFeatures.js.map +0 -1
  282. package/dist/PileupRenderer/makeImageData.js.map +0 -1
  283. package/dist/PileupRenderer/renderAlignment.js.map +0 -1
  284. package/dist/PileupRenderer/renderAlignmentShape.js.map +0 -1
  285. package/dist/PileupRenderer/renderMethylation.js.map +0 -1
  286. package/dist/PileupRenderer/renderMismatches.js.map +0 -1
  287. package/dist/PileupRenderer/renderModifications.js.map +0 -1
  288. package/dist/PileupRenderer/renderPerBaseLettering.js.map +0 -1
  289. package/dist/PileupRenderer/renderPerBaseQuality.js.map +0 -1
  290. package/dist/PileupRenderer/renderSoftClipping.js.map +0 -1
  291. package/dist/PileupRenderer/sortUtil.js.map +0 -1
  292. package/dist/PileupRenderer/util.js.map +0 -1
  293. package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js.map +0 -1
  294. package/dist/SNPCoverageAdapter/configSchema.js.map +0 -1
  295. package/dist/SNPCoverageAdapter/generateCoverageBins.js.map +0 -1
  296. package/dist/SNPCoverageAdapter/index.js.map +0 -1
  297. package/dist/SNPCoverageAdapter/util.js.map +0 -1
  298. package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js.map +0 -1
  299. package/dist/SNPCoverageRenderer/configSchema.js.map +0 -1
  300. package/dist/SNPCoverageRenderer/index.js.map +0 -1
  301. package/dist/index.js.map +0 -1
  302. package/dist/shared/BaseDisplayComponent.js.map +0 -1
  303. package/dist/shared/FilterByTag.js.map +0 -1
  304. package/dist/shared/afterAttach.js.map +0 -1
  305. package/dist/shared/color.js.map +0 -1
  306. package/dist/shared/fetchChains.js.map +0 -1
  307. package/dist/shared/index.js.map +0 -1
  308. package/dist/shared/renderSvg.js.map +0 -1
  309. package/dist/shared/util.js.map +0 -1
  310. package/dist/util.js.map +0 -1
  311. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js.map +0 -1
  312. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js.map +0 -1
  313. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js.map +0 -1
  314. package/esm/AlignmentsFeatureDetail/index.js.map +0 -1
  315. package/esm/AlignmentsFeatureDetail/util.js.map +0 -1
  316. package/esm/AlignmentsTrack/configSchemaF.js.map +0 -1
  317. package/esm/AlignmentsTrack/index.js.map +0 -1
  318. package/esm/BamAdapter/BamAdapter.js.map +0 -1
  319. package/esm/BamAdapter/BamSlightlyLazyFeature.js.map +0 -1
  320. package/esm/BamAdapter/configSchema.js.map +0 -1
  321. package/esm/BamAdapter/index.js.map +0 -1
  322. package/esm/CramAdapter/CramAdapter.js.map +0 -1
  323. package/esm/CramAdapter/CramSlightlyLazyFeature.js.map +0 -1
  324. package/esm/CramAdapter/CramTestAdapters.js.map +0 -1
  325. package/esm/CramAdapter/configSchema.js.map +0 -1
  326. package/esm/CramAdapter/index.js.map +0 -1
  327. package/esm/CramAdapter/util.js.map +0 -1
  328. package/esm/GuessAlignmentsTypes/index.js.map +0 -1
  329. package/esm/HtsgetBamAdapter/HtsgetBamAdapter.js.map +0 -1
  330. package/esm/HtsgetBamAdapter/configSchema.js.map +0 -1
  331. package/esm/HtsgetBamAdapter/index.js.map +0 -1
  332. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js.map +0 -1
  333. package/esm/LinearAlignmentsDisplay/index.js.map +0 -1
  334. package/esm/LinearAlignmentsDisplay/models/configSchema.js.map +0 -1
  335. package/esm/LinearAlignmentsDisplay/models/model.js.map +0 -1
  336. package/esm/LinearPileupDisplay/components/ColorByModifications.js.map +0 -1
  337. package/esm/LinearPileupDisplay/components/ColorByTag.js.map +0 -1
  338. package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js.map +0 -1
  339. package/esm/LinearPileupDisplay/components/ModificationsTable.js.map +0 -1
  340. package/esm/LinearPileupDisplay/components/SetFeatureHeight.js.map +0 -1
  341. package/esm/LinearPileupDisplay/components/SetMaxHeight.js.map +0 -1
  342. package/esm/LinearPileupDisplay/components/SortByTag.js.map +0 -1
  343. package/esm/LinearPileupDisplay/configSchema.js.map +0 -1
  344. package/esm/LinearPileupDisplay/index.js.map +0 -1
  345. package/esm/LinearPileupDisplay/model.js.map +0 -1
  346. package/esm/LinearReadArcsDisplay/components/ReactComponent.js.map +0 -1
  347. package/esm/LinearReadArcsDisplay/configSchema.js.map +0 -1
  348. package/esm/LinearReadArcsDisplay/drawFeats.js.map +0 -1
  349. package/esm/LinearReadArcsDisplay/index.js.map +0 -1
  350. package/esm/LinearReadArcsDisplay/model.js.map +0 -1
  351. package/esm/LinearReadArcsDisplay/util.js.map +0 -1
  352. package/esm/LinearReadCloudDisplay/components/ReactComponent.js.map +0 -1
  353. package/esm/LinearReadCloudDisplay/configSchema.js.map +0 -1
  354. package/esm/LinearReadCloudDisplay/drawFeats.js.map +0 -1
  355. package/esm/LinearReadCloudDisplay/drawLongReadChains.js.map +0 -1
  356. package/esm/LinearReadCloudDisplay/drawPairChains.js.map +0 -1
  357. package/esm/LinearReadCloudDisplay/index.js.map +0 -1
  358. package/esm/LinearReadCloudDisplay/model.js.map +0 -1
  359. package/esm/LinearReadCloudDisplay/util.js.map +0 -1
  360. package/esm/LinearSNPCoverageDisplay/components/Tooltip.js.map +0 -1
  361. package/esm/LinearSNPCoverageDisplay/index.js.map +0 -1
  362. package/esm/LinearSNPCoverageDisplay/models/configSchema.js.map +0 -1
  363. package/esm/LinearSNPCoverageDisplay/models/model.js.map +0 -1
  364. package/esm/MismatchParser/index.js.map +0 -1
  365. package/esm/PileupRPC/base.js.map +0 -1
  366. package/esm/PileupRPC/index.js.map +0 -1
  367. package/esm/PileupRPC/methods/GetGlobalValueForTag.js.map +0 -1
  368. package/esm/PileupRPC/methods/GetReducedFeatures.js.map +0 -1
  369. package/esm/PileupRPC/methods/GetVisibleModifications.js.map +0 -1
  370. package/esm/PileupRPC/rpcMethods.js.map +0 -1
  371. package/esm/PileupRPC/util.js.map +0 -1
  372. package/esm/PileupRenderer/PileupLayoutSession.js.map +0 -1
  373. package/esm/PileupRenderer/PileupRenderer.js.map +0 -1
  374. package/esm/PileupRenderer/colorBy.js.map +0 -1
  375. package/esm/PileupRenderer/components/PileupRendering.js.map +0 -1
  376. package/esm/PileupRenderer/configSchema.js.map +0 -1
  377. package/esm/PileupRenderer/getAlignmentShapeColor.js.map +0 -1
  378. package/esm/PileupRenderer/index.js.map +0 -1
  379. package/esm/PileupRenderer/layoutFeature.js.map +0 -1
  380. package/esm/PileupRenderer/layoutFeatures.js.map +0 -1
  381. package/esm/PileupRenderer/makeImageData.js.map +0 -1
  382. package/esm/PileupRenderer/renderAlignment.js.map +0 -1
  383. package/esm/PileupRenderer/renderAlignmentShape.js.map +0 -1
  384. package/esm/PileupRenderer/renderMethylation.js.map +0 -1
  385. package/esm/PileupRenderer/renderMismatches.js.map +0 -1
  386. package/esm/PileupRenderer/renderModifications.js.map +0 -1
  387. package/esm/PileupRenderer/renderPerBaseLettering.js.map +0 -1
  388. package/esm/PileupRenderer/renderPerBaseQuality.js.map +0 -1
  389. package/esm/PileupRenderer/renderSoftClipping.js.map +0 -1
  390. package/esm/PileupRenderer/sortUtil.js.map +0 -1
  391. package/esm/PileupRenderer/util.js.map +0 -1
  392. package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js.map +0 -1
  393. package/esm/SNPCoverageAdapter/configSchema.js.map +0 -1
  394. package/esm/SNPCoverageAdapter/generateCoverageBins.js.map +0 -1
  395. package/esm/SNPCoverageAdapter/index.js.map +0 -1
  396. package/esm/SNPCoverageAdapter/util.js.map +0 -1
  397. package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js.map +0 -1
  398. package/esm/SNPCoverageRenderer/configSchema.js.map +0 -1
  399. package/esm/SNPCoverageRenderer/index.js.map +0 -1
  400. package/esm/index.js.map +0 -1
  401. package/esm/shared/BaseDisplayComponent.js.map +0 -1
  402. package/esm/shared/FilterByTag.js.map +0 -1
  403. package/esm/shared/afterAttach.js.map +0 -1
  404. package/esm/shared/color.js.map +0 -1
  405. package/esm/shared/fetchChains.js.map +0 -1
  406. package/esm/shared/index.js.map +0 -1
  407. package/esm/shared/renderSvg.js.map +0 -1
  408. package/esm/shared/util.js.map +0 -1
  409. package/esm/util.js.map +0 -1
  410. package/src/AlignmentsFeatureDetail/AlignmentsFeatureDetail.tsx +0 -155
  411. package/src/AlignmentsFeatureDetail/AlignmentsFeatureFlags.tsx +0 -60
  412. package/src/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.tsx +0 -51
  413. package/src/AlignmentsFeatureDetail/__snapshots__/index.test.tsx.snap +0 -327
  414. package/src/AlignmentsFeatureDetail/index.test.tsx +0 -47
  415. package/src/AlignmentsFeatureDetail/index.ts +0 -33
  416. package/src/AlignmentsFeatureDetail/util.ts +0 -27
  417. package/src/AlignmentsTrack/configSchemaF.ts +0 -22
  418. package/src/AlignmentsTrack/index.ts +0 -22
  419. package/src/BamAdapter/BamAdapter.test.ts +0 -124
  420. package/src/BamAdapter/BamAdapter.ts +0 -251
  421. package/src/BamAdapter/BamSlightlyLazyFeature.ts +0 -149
  422. package/src/BamAdapter/__snapshots__/BamAdapter.test.ts.snap +0 -1105
  423. package/src/BamAdapter/configSchema.ts +0 -65
  424. package/src/BamAdapter/index.ts +0 -14
  425. package/src/CombinationTest.test.ts +0 -108
  426. package/src/CramAdapter/CramAdapter.test.ts +0 -85
  427. package/src/CramAdapter/CramAdapter.ts +0 -323
  428. package/src/CramAdapter/CramSlightlyLazyFeature.ts +0 -185
  429. package/src/CramAdapter/CramTestAdapters.ts +0 -98
  430. package/src/CramAdapter/__snapshots__/CramAdapter.test.ts.snap +0 -256
  431. package/src/CramAdapter/__snapshots__/util.test.ts.snap +0 -14
  432. package/src/CramAdapter/configSchema.ts +0 -57
  433. package/src/CramAdapter/index.ts +0 -16
  434. package/src/CramAdapter/util.test.ts +0 -26
  435. package/src/CramAdapter/util.ts +0 -251
  436. package/src/GuessAlignmentsTypes/index.ts +0 -79
  437. package/src/HtsgetBamAdapter/HtsgetBamAdapter.ts +0 -24
  438. package/src/HtsgetBamAdapter/configSchema.ts +0 -40
  439. package/src/HtsgetBamAdapter/index.ts +0 -17
  440. package/src/LinearAlignmentsDisplay/components/AlignmentsDisplay.tsx +0 -52
  441. package/src/LinearAlignmentsDisplay/index.ts +0 -21
  442. package/src/LinearAlignmentsDisplay/models/configSchema.test.ts +0 -60
  443. package/src/LinearAlignmentsDisplay/models/configSchema.ts +0 -41
  444. package/src/LinearAlignmentsDisplay/models/model.tsx +0 -403
  445. package/src/LinearPileupDisplay/components/ColorByModifications.tsx +0 -102
  446. package/src/LinearPileupDisplay/components/ColorByTag.tsx +0 -61
  447. package/src/LinearPileupDisplay/components/LinearPileupDisplayBlurb.tsx +0 -32
  448. package/src/LinearPileupDisplay/components/ModificationsTable.tsx +0 -38
  449. package/src/LinearPileupDisplay/components/SetFeatureHeight.tsx +0 -82
  450. package/src/LinearPileupDisplay/components/SetMaxHeight.tsx +0 -71
  451. package/src/LinearPileupDisplay/components/SortByTag.tsx +0 -64
  452. package/src/LinearPileupDisplay/configSchema.test.js +0 -55
  453. package/src/LinearPileupDisplay/configSchema.ts +0 -67
  454. package/src/LinearPileupDisplay/index.ts +0 -24
  455. package/src/LinearPileupDisplay/model.ts +0 -884
  456. package/src/LinearReadArcsDisplay/components/ReactComponent.tsx +0 -50
  457. package/src/LinearReadArcsDisplay/configSchema.ts +0 -68
  458. package/src/LinearReadArcsDisplay/declare.d.ts +0 -1
  459. package/src/LinearReadArcsDisplay/drawFeats.ts +0 -210
  460. package/src/LinearReadArcsDisplay/index.ts +0 -23
  461. package/src/LinearReadArcsDisplay/model.tsx +0 -355
  462. package/src/LinearReadArcsDisplay/util.ts +0 -10
  463. package/src/LinearReadCloudDisplay/components/ReactComponent.tsx +0 -48
  464. package/src/LinearReadCloudDisplay/configSchema.ts +0 -57
  465. package/src/LinearReadCloudDisplay/drawFeats.ts +0 -35
  466. package/src/LinearReadCloudDisplay/drawLongReadChains.ts +0 -85
  467. package/src/LinearReadCloudDisplay/drawPairChains.ts +0 -139
  468. package/src/LinearReadCloudDisplay/index.ts +0 -23
  469. package/src/LinearReadCloudDisplay/model.tsx +0 -246
  470. package/src/LinearReadCloudDisplay/util.ts +0 -47
  471. package/src/LinearSNPCoverageDisplay/components/Tooltip.tsx +0 -128
  472. package/src/LinearSNPCoverageDisplay/index.ts +0 -20
  473. package/src/LinearSNPCoverageDisplay/models/configSchema.test.ts +0 -35
  474. package/src/LinearSNPCoverageDisplay/models/configSchema.ts +0 -82
  475. package/src/LinearSNPCoverageDisplay/models/model.ts +0 -336
  476. package/src/MismatchParser/index.test.ts +0 -283
  477. package/src/MismatchParser/index.ts +0 -508
  478. package/src/PileupRPC/base.ts +0 -24
  479. package/src/PileupRPC/index.ts +0 -12
  480. package/src/PileupRPC/methods/GetGlobalValueForTag.ts +0 -44
  481. package/src/PileupRPC/methods/GetReducedFeatures.ts +0 -67
  482. package/src/PileupRPC/methods/GetVisibleModifications.ts +0 -45
  483. package/src/PileupRPC/rpcMethods.ts +0 -3
  484. package/src/PileupRPC/util.ts +0 -19
  485. package/src/PileupRenderer/PileupLayoutSession.ts +0 -64
  486. package/src/PileupRenderer/PileupRenderer.ts +0 -142
  487. package/src/PileupRenderer/colorBy.ts +0 -74
  488. package/src/PileupRenderer/components/PileupRendering.tsx +0 -209
  489. package/src/PileupRenderer/configSchema.ts +0 -108
  490. package/src/PileupRenderer/getAlignmentShapeColor.ts +0 -87
  491. package/src/PileupRenderer/index.ts +0 -16
  492. package/src/PileupRenderer/layoutFeature.ts +0 -83
  493. package/src/PileupRenderer/layoutFeatures.ts +0 -44
  494. package/src/PileupRenderer/makeImageData.ts +0 -93
  495. package/src/PileupRenderer/renderAlignment.ts +0 -97
  496. package/src/PileupRenderer/renderAlignmentShape.ts +0 -45
  497. package/src/PileupRenderer/renderMethylation.ts +0 -75
  498. package/src/PileupRenderer/renderMismatches.ts +0 -206
  499. package/src/PileupRenderer/renderModifications.ts +0 -74
  500. package/src/PileupRenderer/renderPerBaseLettering.ts +0 -67
  501. package/src/PileupRenderer/renderPerBaseQuality.ts +0 -46
  502. package/src/PileupRenderer/renderSoftClipping.ts +0 -78
  503. package/src/PileupRenderer/sortUtil.ts +0 -107
  504. package/src/PileupRenderer/util.ts +0 -63
  505. package/src/SNPCoverageAdapter/SNPCoverageAdapter.ts +0 -111
  506. package/src/SNPCoverageAdapter/configSchema.ts +0 -23
  507. package/src/SNPCoverageAdapter/generateCoverageBins.ts +0 -259
  508. package/src/SNPCoverageAdapter/index.ts +0 -18
  509. package/src/SNPCoverageAdapter/util.ts +0 -33
  510. package/src/SNPCoverageRenderer/SNPCoverageRenderer.ts +0 -270
  511. package/src/SNPCoverageRenderer/configSchema.ts +0 -64
  512. package/src/SNPCoverageRenderer/index.ts +0 -17
  513. package/src/__snapshots__/index.test.ts.snap +0 -3
  514. package/src/index.test.ts +0 -17
  515. package/src/index.ts +0 -48
  516. package/src/shared/BaseDisplayComponent.tsx +0 -83
  517. package/src/shared/FilterByTag.tsx +0 -187
  518. package/src/shared/afterAttach.tsx +0 -66
  519. package/src/shared/color.ts +0 -86
  520. package/src/shared/fetchChains.ts +0 -62
  521. package/src/shared/index.ts +0 -75
  522. package/src/shared/renderSvg.tsx +0 -64
  523. package/src/shared/util.ts +0 -10
  524. package/src/util.ts +0 -154
@@ -1,185 +0,0 @@
1
- /* eslint-disable no-underscore-dangle */
2
- import {
3
- Feature,
4
- SimpleFeatureSerialized,
5
- } from '@jbrowse/core/util/simpleFeature'
6
- import { CramRecord } from '@gmod/cram'
7
-
8
- // locals
9
- import CramAdapter from './CramAdapter'
10
- import { readFeaturesToCIGAR, readFeaturesToMismatches } from './util'
11
-
12
- export default class CramSlightlyLazyFeature implements Feature {
13
- // uses parameter properties to automatically create fields on the class
14
- // https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties
15
- constructor(private record: CramRecord, private _store: CramAdapter) {}
16
-
17
- _get_name() {
18
- return this.record.readName
19
- }
20
-
21
- _get_start() {
22
- return this.record.alignmentStart - 1
23
- }
24
-
25
- _get_end() {
26
- return this.record.alignmentStart + (this.record.lengthOnRef ?? 1) - 1
27
- }
28
-
29
- _get_cram_read_features() {
30
- return this.record.readFeatures
31
- }
32
-
33
- _get_type() {
34
- return 'match'
35
- }
36
-
37
- _get_score() {
38
- return this.record.mappingQuality
39
- }
40
-
41
- _get_flags() {
42
- return this.record.flags
43
- }
44
-
45
- _get_strand() {
46
- return this.record.isReverseComplemented() ? -1 : 1
47
- }
48
-
49
- _read_group_id() {
50
- return this._store.samHeader.readGroups?.[this.record.readGroupId]
51
- }
52
-
53
- _get_qual() {
54
- return (this.record.qualityScores || []).join(' ')
55
- }
56
-
57
- qualRaw() {
58
- return this.record.qualityScores
59
- }
60
-
61
- _get_refName() {
62
- return this._store.refIdToName(this.record.sequenceId)
63
- }
64
-
65
- _get_is_paired() {
66
- return !!this.record.mate
67
- }
68
-
69
- _get_pair_orientation() {
70
- return this.record.isPaired() ? this.record.getPairOrientation() : undefined
71
- }
72
-
73
- _get_template_length() {
74
- return this.record.templateLength || this.record.templateSize
75
- }
76
-
77
- _get_next_ref() {
78
- return this.record.mate
79
- ? this._store.refIdToName(this.record.mate.sequenceId)
80
- : undefined
81
- }
82
-
83
- _get_next_segment_position() {
84
- return this.record.mate
85
- ? `${this._store.refIdToName(this.record.mate.sequenceId)}:${
86
- this.record.mate.alignmentStart
87
- }`
88
- : undefined
89
- }
90
-
91
- _get_next_pos() {
92
- return this.record.mate?.alignmentStart
93
- }
94
-
95
- _get_tags() {
96
- const RG = this._read_group_id()
97
- const { tags } = this.record
98
- // avoids a tag copy if no RG, but just copy if there is one
99
- return RG !== undefined ? { ...tags, RG } : tags
100
- }
101
-
102
- _get_seq() {
103
- return this.record.getReadBases()
104
- }
105
-
106
- // generate a CIGAR, based on code from jkbonfield
107
- _get_CIGAR() {
108
- return readFeaturesToCIGAR(
109
- this.record.readFeatures,
110
- this.record.alignmentStart,
111
- this.record.readLength,
112
- this.record._refRegion,
113
- )
114
- }
115
-
116
- tags() {
117
- return Object.getOwnPropertyNames(CramSlightlyLazyFeature.prototype)
118
- .filter(
119
- prop =>
120
- prop.startsWith('_get_') &&
121
- prop !== '_get_mismatches' &&
122
- prop !== '_get_cram_read_features',
123
- )
124
- .map(methodName => methodName.replace('_get_', ''))
125
- }
126
-
127
- id() {
128
- return `${this._store.id}-${this.record.uniqueId}`
129
- }
130
-
131
- get(field: string) {
132
- const methodName = `_get_${field}`
133
- // @ts-expect-error
134
- if (this[methodName]) {
135
- // @ts-expect-error
136
- return this[methodName]()
137
- }
138
- return undefined
139
- }
140
-
141
- parent() {
142
- return undefined
143
- }
144
-
145
- children() {
146
- return undefined
147
- }
148
-
149
- set() {}
150
-
151
- pairedFeature() {
152
- return false
153
- }
154
-
155
- _get_clipPos() {
156
- const mismatches = this.get('mismatches')
157
- if (mismatches.length) {
158
- const record =
159
- this.get('strand') === -1 ? mismatches.at(-1) : mismatches[0]
160
- const { type, cliplen } = record
161
- if (type === 'softclip' || type === 'hardclip') {
162
- return cliplen
163
- }
164
- }
165
- return 0
166
- }
167
-
168
- toJSON(): SimpleFeatureSerialized {
169
- return {
170
- ...Object.fromEntries(
171
- this.tags()
172
- .map(t => [t, this.get(t)])
173
- .filter(elt => elt[1] !== undefined),
174
- ),
175
- uniqueId: this.id(),
176
- }
177
- }
178
-
179
- _get_mismatches() {
180
- const readFeatures = this.record.readFeatures
181
- const qual = this.qualRaw()
182
- const start = this.get('start')
183
- return readFeaturesToMismatches(readFeatures, start, qual)
184
- }
185
- }
@@ -1,98 +0,0 @@
1
- import { GenericFilehandle } from 'generic-filehandle'
2
- import { Observable } from 'rxjs'
3
- import SimpleFeature from '@jbrowse/core/util/simpleFeature'
4
- import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter'
5
- import { ConfigurationSchema } from '@jbrowse/core/configuration'
6
-
7
- // setup for Cram Adapter Testing
8
- export function parseSmallFasta(text: string) {
9
- return text
10
- .split('>')
11
- .filter(t => /\S/.test(t))
12
- .map(entryText => {
13
- const [defLine, ...seqLines] = entryText.split(/\n|\r\n|\r/)
14
- const [id, ...descriptionLines] = defLine.split(' ')
15
- const description = descriptionLines.join(' ')
16
- const sequence = seqLines.join('').replaceAll(/\s/g, '')
17
- return { id, description, sequence }
18
- })
19
- }
20
-
21
- type FileHandle = GenericFilehandle
22
-
23
- export class FetchableSmallFasta {
24
- data: Promise<ReturnType<typeof parseSmallFasta>>
25
-
26
- constructor(filehandle: FileHandle) {
27
- this.data = filehandle.readFile().then(buffer => {
28
- const text = buffer.toString('utf8')
29
- return parseSmallFasta(text)
30
- })
31
- }
32
-
33
- async fetch(id: number, start: number, end: number) {
34
- const data = await this.data
35
- const entry = data[id]
36
- const length = end - start + 1
37
- if (!entry) {
38
- throw new Error(`no sequence with id ${id} exists`)
39
- }
40
- return entry.sequence.slice(start, start + length)
41
- }
42
-
43
- async getSequenceList() {
44
- const data = await this.data
45
- return data.map(entry => entry.id)
46
- }
47
- }
48
-
49
- export class SequenceAdapter extends BaseFeatureDataAdapter {
50
- fasta: FetchableSmallFasta
51
-
52
- refNames: string[] = []
53
-
54
- constructor(filehandle: FileHandle) {
55
- super(ConfigurationSchema('empty', {}).create())
56
- this.fasta = new FetchableSmallFasta(filehandle)
57
- }
58
-
59
- async getRefNames() {
60
- return this.refNames
61
- }
62
-
63
- getFeatures({
64
- refName,
65
- start,
66
- end,
67
- }: {
68
- refName: string
69
- start: number
70
- end: number
71
- }): Observable<SimpleFeature> {
72
- return new Observable(observer => {
73
- this.fasta
74
- .getSequenceList()
75
- .then(refNames => {
76
- this.refNames = refNames
77
- })
78
- .then(() =>
79
- this.fasta.fetch(this.refNames.indexOf(refName), start, end),
80
- )
81
- .then(ret => {
82
- observer.next(
83
- new SimpleFeature({
84
- uniqueId: `${refName}-${start}-${end}`,
85
- seq: ret,
86
- start,
87
- end,
88
- }),
89
- )
90
- observer.complete()
91
- })
92
- .catch(e => observer.error(e))
93
- return { unsubscribe: () => {} }
94
- })
95
- }
96
-
97
- freeResources(/* { region } */): void {}
98
- }
@@ -1,256 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
4
- [
5
- {
6
- "CIGAR": "100M",
7
- "clipPos": 0,
8
- "end": 5540,
9
- "flags": 16,
10
- "is_paired": false,
11
- "name": "ctgA_5060_5540_1:0:0_3:1:0_15a3",
12
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
13
- "refName": "ctgA",
14
- "score": 37,
15
- "seq": "TACACTGGTTCGGAGACGGTTCGTGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATGAGCGGCCGCTGACCGGCGGCACGACTAATATAGTGCAAGA",
16
- "start": 5440,
17
- "strand": -1,
18
- "tags": {
19
- "X0": 1,
20
- "X1": 0,
21
- "XG": 0,
22
- "XM": 4,
23
- "XO": 0,
24
- "XT": "U",
25
- },
26
- "template_length": 0,
27
- "type": "match",
28
- "uniqueId": "test-1618",
29
- },
30
- {
31
- "CIGAR": "100M",
32
- "clipPos": 0,
33
- "end": 5541,
34
- "flags": 16,
35
- "is_paired": false,
36
- "name": "ctgA_4973_5541_1:0:0_1:0:0_1569",
37
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
38
- "refName": "ctgA",
39
- "score": 37,
40
- "seq": "ACACTGGTTCGGAGACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCGGCCCCTGTCCGGCGGCACGAATAATATAGTGCAAGAA",
41
- "start": 5441,
42
- "strand": -1,
43
- "tags": {
44
- "X0": 1,
45
- "X1": 0,
46
- "XG": 0,
47
- "XM": 1,
48
- "XO": 0,
49
- "XT": "U",
50
- },
51
- "template_length": 0,
52
- "type": "match",
53
- "uniqueId": "test-1619",
54
- },
55
- {
56
- "CIGAR": "100M",
57
- "clipPos": 0,
58
- "end": 5544,
59
- "flags": 0,
60
- "is_paired": false,
61
- "name": "ctgA_5445_5947_3:1:0_2:0:0_2b9",
62
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
63
- "refName": "ctgA",
64
- "score": 37,
65
- "seq": "CTGGTTCGGAGACGGTTCATGACGACCGCGCTATATGTCGGCATCTGCGTCGCATGAGCGGCCGCTGTCCGGCGGCTCGAATAATATAGTGCAAGAAAAA",
66
- "start": 5444,
67
- "strand": 1,
68
- "tags": {
69
- "X0": 1,
70
- "X1": 0,
71
- "XG": 0,
72
- "XM": 4,
73
- "XO": 0,
74
- "XT": "U",
75
- },
76
- "template_length": 0,
77
- "type": "match",
78
- "uniqueId": "test-1620",
79
- },
80
- {
81
- "CIGAR": "100M",
82
- "clipPos": 0,
83
- "end": 5553,
84
- "flags": 0,
85
- "is_paired": false,
86
- "name": "ctgA_5454_5906_0:1:0_2:0:0_d8a",
87
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
88
- "refName": "ctgA",
89
- "score": 37,
90
- "seq": "AGACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACT",
91
- "start": 5453,
92
- "strand": 1,
93
- "tags": {
94
- "X0": 1,
95
- "X1": 0,
96
- "XG": 0,
97
- "XM": 1,
98
- "XO": 0,
99
- "XT": "U",
100
- },
101
- "template_length": 0,
102
- "type": "match",
103
- "uniqueId": "test-1621",
104
- },
105
- {
106
- "CIGAR": "100M",
107
- "clipPos": 0,
108
- "end": 5554,
109
- "flags": 0,
110
- "is_paired": false,
111
- "name": "ctgA_5455_5964_2:0:0_2:0:0_23e2",
112
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
113
- "refName": "ctgA",
114
- "score": 37,
115
- "seq": "GACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCCGCCGCTGTCCGACGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTA",
116
- "start": 5454,
117
- "strand": 1,
118
- "tags": {
119
- "X0": 1,
120
- "X1": 0,
121
- "XG": 0,
122
- "XM": 2,
123
- "XO": 0,
124
- "XT": "U",
125
- },
126
- "template_length": 0,
127
- "type": "match",
128
- "uniqueId": "test-1622",
129
- },
130
- {
131
- "CIGAR": "100M",
132
- "clipPos": 0,
133
- "end": 5559,
134
- "flags": 16,
135
- "is_paired": false,
136
- "name": "ctgA_5153_5559_3:0:0_1:1:0_11ac",
137
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
138
- "refName": "ctgA",
139
- "score": 37,
140
- "seq": "TTCATGACGAGCGCGCTATATGACGGCATCTGCGCCGCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTT",
141
- "start": 5459,
142
- "strand": -1,
143
- "tags": {
144
- "X0": 1,
145
- "X1": 0,
146
- "XG": 0,
147
- "XM": 2,
148
- "XO": 0,
149
- "XT": "U",
150
- },
151
- "template_length": 0,
152
- "type": "match",
153
- "uniqueId": "test-1623",
154
- },
155
- {
156
- "CIGAR": "100M",
157
- "clipPos": 0,
158
- "end": 5560,
159
- "flags": 0,
160
- "is_paired": false,
161
- "name": "ctgA_5461_5986_1:1:0_3:0:0_200e",
162
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
163
- "refName": "ctgA",
164
- "score": 37,
165
- "seq": "TCATGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATCAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTA",
166
- "start": 5460,
167
- "strand": 1,
168
- "tags": {
169
- "X0": 1,
170
- "X1": 0,
171
- "XG": 0,
172
- "XM": 2,
173
- "XO": 0,
174
- "XT": "U",
175
- },
176
- "template_length": 0,
177
- "type": "match",
178
- "uniqueId": "test-1624",
179
- },
180
- {
181
- "CIGAR": "100M",
182
- "clipPos": 0,
183
- "end": 5568,
184
- "flags": 0,
185
- "is_paired": false,
186
- "name": "ctgA_5469_5932_0:0:0_2:0:0_6f8",
187
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
188
- "refName": "ctgA",
189
- "score": 37,
190
- "seq": "AGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTATATATGAT",
191
- "start": 5468,
192
- "strand": 1,
193
- "tags": {
194
- "X0": 1,
195
- "X1": 0,
196
- "XG": 0,
197
- "XM": 0,
198
- "XO": 0,
199
- "XT": "U",
200
- },
201
- "template_length": 0,
202
- "type": "match",
203
- "uniqueId": "test-1625",
204
- },
205
- {
206
- "CIGAR": "100M",
207
- "clipPos": 0,
208
- "end": 5594,
209
- "flags": 16,
210
- "is_paired": false,
211
- "name": "ctgA_5079_5594_1:0:0_2:0:0_d64",
212
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
213
- "refName": "ctgA",
214
- "score": 37,
215
- "seq": "CCCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCTAAGACTACGGTTATATATGATGGAACGGCCCTCACAGCATTCTCACA",
216
- "start": 5494,
217
- "strand": -1,
218
- "tags": {
219
- "X0": 1,
220
- "X1": 0,
221
- "XG": 0,
222
- "XM": 2,
223
- "XO": 0,
224
- "XT": "U",
225
- },
226
- "template_length": 0,
227
- "type": "match",
228
- "uniqueId": "test-1626",
229
- },
230
- {
231
- "CIGAR": "100M",
232
- "clipPos": 0,
233
- "end": 5596,
234
- "flags": 0,
235
- "is_paired": false,
236
- "name": "ctgA_5497_6082_1:0:0_2:0:0_b2",
237
- "qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
238
- "refName": "ctgA",
239
- "score": 37,
240
- "seq": "CATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTATATATGATGGAACGGCCCTCACAGCATTGTAACAGG",
241
- "start": 5496,
242
- "strand": 1,
243
- "tags": {
244
- "X0": 1,
245
- "X1": 0,
246
- "XG": 0,
247
- "XM": 1,
248
- "XO": 0,
249
- "XT": "U",
250
- },
251
- "template_length": 0,
252
- "type": "match",
253
- "uniqueId": "test-1627",
254
- },
255
- ]
256
- `;
@@ -1,14 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`cram read features mismatches 1`] = `
4
- [
5
- {
6
- "base": "1",
7
- "length": 0,
8
- "start": 24,
9
- "type": "insertion",
10
- },
11
- ]
12
- `;
13
-
14
- exports[`cram read features to CIGAR 1`] = `"24M1I75M"`;
@@ -1,57 +0,0 @@
1
- import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
-
3
- /**
4
- * #config CramAdapter
5
- * used to configure CRAM adapter
6
- */
7
- function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
8
-
9
- const configSchema = ConfigurationSchema(
10
- 'CramAdapter',
11
- {
12
- /**
13
- * #slot fetchSizeLimit
14
- */
15
- fetchSizeLimit: {
16
- type: 'number',
17
- description:
18
- 'size in bytes over which to display a warning to the user that too much data will be fetched',
19
- defaultValue: 3_000_000,
20
- },
21
-
22
- /**
23
- * #slot cramLocation
24
- */
25
- cramLocation: {
26
- type: 'fileLocation',
27
- defaultValue: {
28
- uri: '/path/to/my.cram',
29
- locationType: 'UriLocation',
30
- },
31
- },
32
-
33
- /**
34
- * #slot craiLocation
35
- */
36
- craiLocation: {
37
- type: 'fileLocation',
38
- defaultValue: {
39
- uri: '/path/to/my.cram.crai',
40
- locationType: 'UriLocation',
41
- },
42
- },
43
-
44
- /**
45
- * #slot sequenceAdapter
46
- * generally refers to the reference genome assembly's sequence adapter
47
- * currently needs to be manually added
48
- */
49
- sequenceAdapter: {
50
- type: 'frozen',
51
- description: 'sequence data adapter',
52
- defaultValue: null,
53
- },
54
- },
55
- { explicitlyTyped: true },
56
- )
57
- export default configSchema
@@ -1,16 +0,0 @@
1
- import PluginManager from '@jbrowse/core/PluginManager'
2
- import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
3
-
4
- // locals
5
- import configSchema from './configSchema'
6
-
7
- export default (pluginManager: PluginManager) => {
8
- pluginManager.addAdapterType(() => {
9
- return new AdapterType({
10
- name: 'CramAdapter',
11
- displayName: 'CRAM adapter',
12
- configSchema,
13
- getAdapterClass: () => import('./CramAdapter').then(r => r.default),
14
- })
15
- })
16
- }
@@ -1,26 +0,0 @@
1
- import { readFeaturesToCIGAR, readFeaturesToMismatches } from './util'
2
-
3
- test('cram read features mismatches', () => {
4
- expect(
5
- // from ctgA_15140_15565_0:0:1_1:0:0_2e8 in volvox-sorted.cram
6
- readFeaturesToMismatches(
7
- [{ code: 'i', data: 'C', pos: 25, refPos: 15164 }],
8
- 15139,
9
- ),
10
- ).toMatchSnapshot()
11
- })
12
-
13
- test('cram read features to CIGAR', () => {
14
- expect(
15
- // from ctgA_15140_15565_0:0:1_1:0:0_2e8 in volvox-sorted.cram
16
- readFeaturesToCIGAR(
17
- [{ code: 'i', data: 'C', pos: 25, refPos: 15164 }],
18
- 15140,
19
- 100,
20
- {
21
- start: 14998,
22
- seq: 'agaccacattcagctctcggtaacatgggaggcttgtggttgcaccgtaaaagggggatagcccatccatcctgtaaacctacaatcgcgcgtagcttaatacgctcacattagacattcgatcgagagacctggtttcaagagccttcccttttgctttagtgggccaaatcgcaaccctgctcccctcccttacgccttatacacttcagtgcaaattcatgcgttcagcgaacaactggacttctgttgtacgtagtccacgggggcttattcattatagaaagccccctactgtcaccgttatatggttcacacatgagctgatcacctagagagtcgtcatgcacattcgcctaacaaggacatatgagtaaccg',
23
- },
24
- ),
25
- ).toMatchSnapshot()
26
- })