GenbankAdapter
Auto-generated from the config schema in the source. See the config guide for concepts. Provided by the gff3 plugin. View source.
Reads the features of a GenBank flat file, one reference sequence per
LOCUS record, named by its VERSION accession or else its LOCUS name.
GenbankSequenceAdapter reads the same file's sequence, so one file can be
a whole assembly.
Example usage
{
type: 'FeatureTrack',
trackId: 'my_track',
name: 'My track',
assemblyNames: ['hg38'],
adapter: {
type: 'GenbankAdapter',
uri: 'https://example.com/plasmid.gbk',
},
}JBrowse infers GenbankAdapter and FeatureTrack from plasmid.gbk, and name defaults to the file name. In a config declaring one assembly, assemblyNames comes from there too — see the shortest track.
{
trackId: 'my_track',
uri: 'https://example.com/plasmid.gbk',
assemblyNames: ['hg38'],
}Related links
- Track: FeatureTrack
- Display: LinearBasicDisplay
- Display: LinearManhattanDisplay
- Display: LinearMarkDisplay
- Display: LinearMultiRowFeatureDisplay
- Display: LinearScoreDisplay
- Display: LinearWiggleDisplay
- Config guide: Supported file types
Config slots
Adapter slots go inside the track's adapter: "adapter": { "type": "GenbankAdapter", ... }. It also accepts the shorthand keys uri, baseUri in place of writing a location slot out. Slot types (fileLocation, frozen, ...) are explained in the config slot types reference. Slots a base configuration contributes are listed here too, so this table is the whole surface.
| Slot | Description |
|---|---|
genbankLocationfileLocation = { uri: '/path/to/my.gbk', locationType: 'UriLocation' } |
location of the GenBank file. May be gzipped; it is decompressed and parsed in full on first use, so the file has to fit in memory. |