Skip to main content

Assembly

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

packages/core/assemblyManager/assembly.ts

Assembly - Properties

property: configuration

// type signature
IMaybe<IReferenceType<IAnyType>>
// code
configuration: types.safeReference(assemblyConfigType)

Assembly - Getters

getter: initialized

// type
boolean

getter: name

// type
string

getter: regions

// type
BasicRegion[]

getter: aliases

// type
string[]

getter: displayName

// type
string

getter: hasName

// type
(name: string) => any

getter: allAliases

// type
any[]

getter: allRefNames

note: lowerCaseRefNameAliases not included here: this allows the list of refnames to be just the "normal casing", but things like getCanonicalRefName can resolve a lower-case name if needed

// type
string[]

getter: lowerCaseRefNames

// type
string[]

getter: allRefNamesWithLowerCase

// type
any[]

getter: rpcManager

// type
RpcManager

getter: refNameColors

// type
string[]

getter: refNames

// type
string[]

Assembly - Methods

method: getCanonicalRefName

// type signature
getCanonicalRefName: (refName: string) => string

method: getRefNameColor

// type signature
getRefNameColor: (refName: string) => string

method: isValidRefName

// type signature
isValidRefName: (refName: string) => boolean

method: getAdapterMapEntry

// type signature
getAdapterMapEntry: (adapterConf: AdapterConf, options: BaseOptions) => Promise<RefNameMap>

method: getRefNameMapForAdapter

get Map of canonical-name -> adapter-specific-name

// type signature
getRefNameMapForAdapter: (adapterConf: AdapterConf, opts: BaseOptions) => Promise<any>

method: getReverseRefNameMapForAdapter

get Map of adapter-specific-name -> canonical-name

// type signature
getReverseRefNameMapForAdapter: (adapterConf: AdapterConf, opts: BaseOptions) => Promise<any>

Assembly - Actions

action: setLoaded

// type signature
setLoaded: ({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: Loading) => void

action: setError

// type signature
setError: (e: unknown) => void

action: setRegions

// type signature
setRegions: (regions: Region[]) => void

action: setRefNameAliases

// type signature
setRefNameAliases: (aliases: RefNameAliases, lcAliases: RefNameAliases) => void

action: setCytobands

// type signature
setCytobands: (cytobands: Feature[]) => void

action: setLoadingP

// type signature
setLoadingP: (p?: Promise<void>) => void

action: load

// type signature
load: () => Promise<void>

action: loadPre

// type signature
loadPre: () => Promise<void>