Ebi submit page

_Mostly_ there. This is not linked up yet, so you have to go to the page manually (e.g., `localhost:8888/ebi_submission/1`. Second, `send` is forced to `False` right now so it is not sending. The actual submission is done on a worker, and allows for a somewhat general way to submit arbitrary compute with a waiting page.

It is awkward to push and publish messages, and I think there is a better way, but this works as far as I can tell.
Yes -- see the qiita/qiita_core/support_files/config_example.txt.  Both the
testing and production URL are in there.  If testing, make sure that
EBI_SKIP_CURL_CERT is also set to True

On Tue, Oct 14, 2014 at 12:00 PM, Daniel McDonald <notifications@github.com>
wrote:

> In qiita_ware/dispatchable.py:
>
> > +    output_dir = tmp_dir + '_submission'
> > +
> > +    samp_fp = join(tmp_dir, 'sample_metadata.txt')
> > +    prep_fp = join(tmp_dir, 'prep_metadata.txt')
> > +
> > +    st.to_file(samp_fp)
> > +    pt.to_file(prep_fp)
> > +
> > +    with open_file(demux) as demux_fh:
> > +        for samp, iterator in to_per_sample_ascii(demux_fh, list(st)):
> > +            with gzopen(join(tmp_dir, "%s.fastq.gz" % samp), 'w') as fh:
> > +                for record in iterator:
> > +                    fh.write(record)
> > +
> > +    submit_EBI_from_files(study_id, open(samp_fp), open(prep_fp), tmp_dir,
> > +                          output_dir, 'metagenomic', 'ADD', False)
>
> @josenavas <https://github.com/josenavas> @squirrelo
> <https://github.com/squirrelo>, what is the easiest way to determine the
> investigation_type?
>
> @adamrp <https://github.com/adamrp>, right now send is False. Can we set
> to True and still submit to a test server?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/qiita/pull/387/files#r18850750>.
>