BLOCKER: Investigation type and ebi per preprocessed

This adds the possibility of setting investigation types and then submitting those to ebi.
Sounds good.

On (Nov-04-14|15:38), Antonio Gonzalez wrote:
> > +        prep_template = PrepTemplate(preprocessed_data.prep_template)
> > +        sample_template = SampleTemplate(preprocessed_data.study)
> > +        study = Study(preprocessed_data.study)
> > +        stats = [('Number of samples', len(prep_template)),
> > +                 ('Number of metadata headers',
> > +                  len(sample_template.metadata_headers()))]
> > +
> > +        demux = [path for path, ftype in preprocessed_data.get_filepaths()
> > +                 if ftype == 'preprocessed_demux']
> > +
> > +        if not len(demux):
> > +            error = ("Study does not appear to have demultiplexed "
> > +                     "sequences associated")
> > +        elif len(demux) > 1:
> > +            error = ("Study appears to have multiple demultiplexed files!")
> > +        elif error != "":
> 
> I think it should be an elif, as you could have `self.display_template(self, 123, "This is my error msg")` and we do not want to overwrite it. 
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/biocore/qiita/pull/564/files#r19845591