Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Separate random sampling from random data in BEL generator #105

Closed
abargnesi opened this issue Feb 11, 2016 · 0 comments
Closed

Separate random sampling from random data in BEL generator #105

abargnesi opened this issue Feb 11, 2016 · 0 comments

Comments

@abargnesi
Copy link
Member

The random BEL generator (including bel generate) randomly samples from published OpenBEL annotations and namespaces. This produces life-like BEL Nanopubs but requires more memory and network access to OpenBEL resource URLs.

For property testing against random BEL data this cost is prohibitive. Moreover, using random data would better cover the possibilities for annotation and namespace values and provide for more robust tests.

I suggest making the BEL generator produce random data by default. Then provide sampling annotation and namespace values as an option.

We should then extend the bel generate subcommand with a --sampling switch to enable the sampling option.

abargnesi pushed a commit that referenced this issue Feb 12, 2016
closes #105

added the -s, --sample (disable with --no-sample) switch to enable
sampling of namespace and annotation values from BEL resources.

split apart the Expression module into constituents:
- BEL::Gen::Namespace module to generate random namespaces
- BEL::Gen::Parameter module to generate random BEL parameters
- BEL::Gen::Term module to generate random BEL terms
- BEL::Gen::Statement module to generate random BEL statements

bel/gen is not loaded by default; to use BEL::Gen you will need to
*require 'bel/gen'*.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant