Note: This is an unofficial module for interacting with the One Codex platform
the light-weight Mouse object framework - link
This module provides a wrapper around the One Codex REST api. It simplifies api calls by abstracting away the curl calls into simple method calls. It also provides Mouse objects for all of the api objects (Samples, Analyses, References etc), and typed Collections for working with sets of these objects. Allows for simple integration of the One Codex api into existing pipelines. ```bash git clone https://github.com/mbiokyle29/codex/ cd codex perl MakeFile.PL sudo make sudo make install ``` ```perl use Codex;
my $codex = Codex->new(api_key => "API KEY");
my $sample = $codex->get_sample("SAMPLE ID");
my $sample_collecion = $codex->get_samples;
my $array = $sample_collection->completed_samples # Returns an array of samples
my $fasta_samples =
while(my $sample = $sample_collection->pop) { # Iterate through the samples }
my $uploaded_id = $codex->upload("my_sample_reads.fasta");
$codex->get_raw_analysis("SAMPLE ID");