# NCListAdapter

Auto-generated from the config schema in the source — see the [config guide](https://jbrowse.org/jb2/docs/config_guide) for concepts. Provided by the `legacy-jbrowse` plugin. [View source](https://github.com/GMOD/jbrowse-components/blob/main/plugins/legacy-jbrowse/src/NCListAdapter/configSchema.ts).

## Example usage

Reads a JBrowse 1 NCList store in place, so an existing JBrowse 1 instance's
data serves JBrowse 2 without re-processing. `{refseq}` in the URL template
is substituted per sequence, which is how the store is laid out on disk:

```js
{
  type: 'FeatureTrack',
  trackId: 'my_track',
  name: 'My track',
  assemblyNames: ['hg38'],
  adapter: {
    type: 'NCListAdapter',
    rootUrlTemplate: {
      uri: 'https://example.com/jbrowse1/data/tracks/genes/{refseq}/trackData.json',
    },
  },
}
```

Reads a JBrowse 1 NCList feature store, the per-reference `trackData.json`
files that the JBrowse 1 formatting scripts write.

## Related links

- **Track:** [FeatureTrack](../featuretrack)
- **Display:** [LinearBasicDisplay](../linearbasicdisplay)
- **Display:** [LinearManhattanDisplay](../linearmanhattandisplay)
- **Display:** [LinearMarkDisplay](../linearmarkdisplay)
- **Display:** [LinearMultiRowFeatureDisplay](../linearmultirowfeaturedisplay)
- **Display:** [LinearScoreDisplay](../linearscoredisplay)
- **Display:** [LinearWiggleDisplay](../linearwiggledisplay)

## Config slots

These slots go inside the track's `adapter`: `"adapter": { "type": "NCListAdapter", ... }`. This adapter has no `uri` [shorthand](https://jbrowse.org/jb2/docs/config_guides/file_types#the-uri-shorthand) — give it the location slots below. Slot types (`fileLocation`, `frozen`, ...) are explained in the [config slot types reference](https://jbrowse.org/jb2/docs/config_guides/slot_types). Slots a base configuration contributes are listed here too, so this table is the whole surface.

| Slot | Description |
| --- | --- |
| **rootUrlTemplate**<br>[`fileLocation`](https://jbrowse.org/jb2/docs/config_guides/slot_types#filelocation) = <code>{ uri: '/path/to/my/{refseq}/trackData.json', locationType: 'UriLocation', }</code> | URL of a JBrowse 1 NCList `trackData.json`, with `{refseq}` standing in for the reference sequence name — the per-reference directory layout `flatfile-to-json.pl` and `biodb-to-json.pl` write. |
| **refNames**<br>[`stringArray`](https://jbrowse.org/jb2/docs/config_guides/slot_types#stringarray) = <code>[]</code> | List of refNames used by the NCList used for aliasing |

