[WIP] New ebi submit [WIP]

Almost there, but I thought I'd get this in now so that people can begin reviewing, it's kind of big.

Needs:
- [ ] Logging
- [ ] Test code
- [ ] Script file (this is the library code)
- [ ] Final step that calls ASCP on the XML files generated
agree re: focus on existing functionality. maybe these get addressed when
migrating to qiita?


On Mon, Jun 9, 2014 at 10:41 AM, adamrp <notifications@github.com> wrote:

> In python_code/ebi.py:
>
> > +        # This is allows addition of other arbitrary study metadata
> > +        try:
> > +            self.additional_metadata = {
> > +                str(k): str(v) if v is not None else empty_value
> > +                for k, v in kwargs.iteritems()}
> > +        except ValueError:
> > +            raise InvalidMetadataError("All additional metadata passed via "
> > +                                       "kwargs to the EBISubmission "
> > +                                       "constructor must be strings")
> > +
> > +        # This will hold the submission's samples, keyed by the sample name
> > +        self.samples = {}
> > +
> > +    def _get_study_alias(self):
> > +        """Format alias using ``self.study_id``"""
> > +        return 'qiime_study_' + escape(clean_whitespace(str(self.study_id)))
>
> I'm entirely open to that; I was just trying to recapitulate our current
> functionality. The only concern to keep in mind is that the identifier
> should be unique on their system (at least, I *think* is has to be...)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/qiime/qiime_web_app/pull/704/files#r13550352>.
>