@Test public void hasOnlyOneContentItem() { assertThat(baselineExperimentDesignFile.get(baselineExperiment), hasSize(1)); assertThat(differentialMicroarrayExperimentDesignFile.get(differentialMicroarrayExperiment), hasSize(1)); assertThat(differentialRnaSeqExperimentDesignFile.get(differentialRnaSeqExperiment), hasSize(1)); }
public Collection<ExternallyAvailableContent> get(final E experiment) { return Collections.singleton( new ExternallyAvailableContent( makeUri("experiment-design"), ExternallyAvailableContent.Description.create( "icon-experiment-design", "Experiment Design (tsv)"), streamFile(experiment.getAccession() + "-experiment-design.tsv", new Function<Writer, Void>() { @Nullable @Override public Void apply(@Nullable Writer writer) { writeLines(experiment.getAccession(), getAnalysedRowsAccessions(experiment), writer); return null; } }) ) ); }
ExperimentDesignFile extends CanStreamSupplier<E> { public Collection<ExternallyAvailableContent> get(final E experiment) { return Collections.singleton( new ExternallyAvailableContent( makeUri("experiment-design"), ExternallyAvailableContent.Description.create( "icon-experiment-design", "Experiment Design (tsv)"), streamFile(experiment.getAccession() + "-experiment-design.tsv", new Function<Writer, Void>() { @Nullable @Override public Void apply(@Nullable Writer writer) { writeLines(experiment.getAccession(), getAnalysedRowsAccessions(experiment), writer); return null; } }) ) ); } }
ExperimentDesignFile extends CanStreamSupplier<E> { public Collection<ExternallyAvailableContent> get(final E experiment) { return Collections.singleton( new ExternallyAvailableContent( makeUri("experiment-design"), ExternallyAvailableContent.Description.create( "icon-experiment-design", "Experiment Design (tsv)"), streamFile(experiment.getAccession() + "-experiment-design.tsv", new Function<Writer, Void>() { @Nullable @Override public Void apply(@Nullable Writer writer) { writeLines(experiment.getAccession(), getAnalysedRowsAccessions(experiment), writer); return null; } }) ) ); } private  ExperimentDesignFile(DataFileHub dataFileHub); }
ExperimentDesignFile extends CanStreamSupplier<E> { public Collection<ExternallyAvailableContent> get(final E experiment) { return Collections.singleton( new ExternallyAvailableContent( makeUri("experiment-design"), ExternallyAvailableContent.Description.create( "icon-experiment-design", "Experiment Design (tsv)"), streamFile(experiment.getAccession() + "-experiment-design.tsv", new Function<Writer, Void>() { @Nullable @Override public Void apply(@Nullable Writer writer) { writeLines(experiment.getAccession(), getAnalysedRowsAccessions(experiment), writer); return null; } }) ) ); } private  ExperimentDesignFile(DataFileHub dataFileHub); @Override ExternallyAvailableContent.ContentType contentType(); static String makeUrl(String experimentAccession, String accessKey); Collection<ExternallyAvailableContent> get(final E experiment); }
ExperimentDesignFile extends CanStreamSupplier<E> { public Collection<ExternallyAvailableContent> get(final E experiment) { return Collections.singleton( new ExternallyAvailableContent( makeUri("experiment-design"), ExternallyAvailableContent.Description.create( "icon-experiment-design", "Experiment Design (tsv)"), streamFile(experiment.getAccession() + "-experiment-design.tsv", new Function<Writer, Void>() { @Nullable @Override public Void apply(@Nullable Writer writer) { writeLines(experiment.getAccession(), getAnalysedRowsAccessions(experiment), writer); return null; } }) ) ); } private  ExperimentDesignFile(DataFileHub dataFileHub); @Override ExternallyAvailableContent.ContentType contentType(); static String makeUrl(String experimentAccession, String accessKey); Collection<ExternallyAvailableContent> get(final E experiment);  }