natverse / coconatfly

Comparative Connectomics of Public and In Progress Drosophila Datasets
https://natverse.org/coconatfly/
6 stars 1 forks source link

Feature: use fanc meta from neck connective repo #22

Open jefferis opened 2 months ago

jefferis commented 2 months ago

specifically from https://github.com/flyconnectome/2023neckconnective/blob/dev/data/fanc-neckconnective-anns.tsv

This should get us going with fanc-manc matching. But it is also possible to use another local source by setting options(coconatfly.fanc_meta). This can be specified either as a function or a path to a local file on disk.

options(coconatfly.fanc_meta=function() {
      fafbseg::flywire_sirepo_file_memo('https://github.com/flyconnectome/2023neckconnective/blob/dev/data/fanc-neckconnective-anns.tsv', read=TRUE)
    })

note that the use of an anonymous function will delay evaluation of what is in inside the function until the option is queried. In this case flywire_sirepo_file_memo will update a local copy of the file from github if required.

options(coconatfly.fanc_meta='~/flyconnectome/data/fanc-neckconnective-anns.tsv')