- I can see two reasons the scripts not being found in IRIS:
- All scripts are prefixed and have to follow a naming convention now. So get_metagenome.pl will be mg-get-metagenome. Did you try with the prefix?
Hi Andreas,frankly I'm using the REST interface directly, not the Perl API nor IRIS. I was asking because I did go to IRIS just to check some of the Tree stuff and noticed that the Communities API methods are not in the list of modules nor do they show up when you run "commands". Perhaps they just haven't been deployed to the public site yet? What's the ETA on that?Thanks,- DylanOn Mon, Sep 16, 2013 at 6:56 AM, Andreas Wilke <wilke@mcs.anl.gov> wrote:
Hi Dylan,On Sep 13, 2013, at 9:44 PM, Dylan Chivian <dcchivian@lbl.gov> wrote:I'm not seeing the Communities API methods on the live IRIS. Where did it go?
- The API is accessible via http or language specific libraries. The best way to use the libraries is starting your own VM with KBase runtime and do the following steps:
- ssh ubuntu@your.ip
- sudo -u root -H bash
- # check out dev_container and setup dev environment
- # deployment is always from a dev_container
- cd /kb
- git clone kbase@git.kbase.us:dev_container.git
- cd dev_container
- ./bootstrap /kb/runtime
- source user-env.sh
- cd modules
- # check out all required modules
- git clone kbase@git.kbase.us:communities_api.git
- git clone kbase@git.kbase.us:idserver.git
- git clone kbase@git.kbase.us:typecomp.git
- git clone kbase@git.kbase.us:auth
- cd ..
- ./bootstrap /kb/runtime
- source user-env.sh
- # check the make output it will tell you if required modules/dependencies are missing
- make
- # deploy
- make deploy
- # now source the deployment environment and start using the scripts or APIs
- cd /kb/deployment
- source user-env.sh
- # execute scripts
- mg-get-metagenome-list --help
- # use libraries:
- use CommunitiesAPIClient;
- use Bio::KBase::Exceptions;
- my $client = new CommunitiesAPIClient($host);
- The communities command line scripts will be accessible through IRIS after successful deployment and test. I don't know when IRIS gets updated with new scripts after a successful deployment. Despite this I can see two reasons the scripts not being found in IRIS:
- All scripts are prefixed and have to follow a naming convention now. So get_metagenome.pl will be mg-get-metagenome. Did you try with the prefix?
- As you know everything in KBase has to follow the deployment procedure and pass "make deploy" and "make test" automatically. If something went wrong there scripts won't be deployed either. In addition there is the COMMANDS file, only scripts matching the pattern in the COMMANDS file will be deployed in IRIS.
- I have to touch base with the deployment and testing team to get a report but I expect them to show up in IRIS this week.
Keep in mind that IRIS is a front-end and not suited for search/indexing tasks and that all KBase services/products have to have a Makefile following the deployment rules. It did cost me some time in the beginning to adapt and be compliant.AndreasThanks,- DylanAndreas WilkeArgonne National Laboratory
Mathematics and Computer Science Division
Bldg. 240 , 4F8
9700 South Cass Avenue
Argonne, IL 60439
(630) 252-3190 (phone)(630) 252-5986.(fax)