Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BSD #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 0 additions & 72 deletions 27/BH2022_ISAJSON_ENA_mapping.tsv

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,20 @@ public Map<String, String> createBioSamples(final List<Study> studies, final Str

try {
final Sample sourceBioSample = this.createSourceBioSample(studies, webinToken);
final Optional<Attribute> sourceBioSampleOrganism =
sourceBioSample.getAttributes().stream()
.map(
attribute -> {
if (attribute.getType().equalsIgnoreCase("organism")) {
return attribute;
}

return null;
})
.findFirst();
Attribute sourceBioSampleOrganismAttribute = null;

for (final Attribute attribute : sourceBioSample.getAttributes()) {
if (attribute.getType().equalsIgnoreCase("organism")) {
sourceBioSampleOrganismAttribute = attribute;
}
}
typeToBioSamplesAccessionMap.put("SOURCE", sourceBioSample.getAccession());

if (sourceBioSampleOrganism.isPresent()) {
if (sourceBioSampleOrganismAttribute != null) {
final AtomicInteger counter = new AtomicInteger(0);
final Attribute finalSourceBioSampleOrganismAttribute = sourceBioSampleOrganismAttribute;

studies.forEach(
studies.forEach(
study -> {
study
.getAssays()
Expand All @@ -59,7 +55,7 @@ public Map<String, String> createBioSamples(final List<Study> studies, final Str
this.createAndUpdateChildSampleWithRelationship(
sample,
sourceBioSample.getAccession(),
sourceBioSampleOrganism.get().getValue(),
finalSourceBioSampleOrganismAttribute.getValue(),
webinToken);

if (persistedChildSample != null) {
Expand Down Expand Up @@ -172,7 +168,7 @@ private Sample updateSampleWithRelationshipsToBioSamples(

biosamplesResponse =
restTemplate.exchange(
"http://wwwdev.ebi.ac.uk/biosamples/samples/" + sampleWithRelationship.getAccession(),
"https://wwwdev.ebi.ac.uk/biosamples/samples/" + sampleWithRelationship.getAccession(),
HttpMethod.PUT,
entity,
new ParameterizedTypeReference<>() {});
Expand All @@ -193,7 +189,7 @@ private EntityModel<Sample> createSampleInBioSamples(

biosamplesResponse =
restTemplate.exchange(
"http://wwwdev.ebi.ac.uk/biosamples/samples/",
"https://wwwdev.ebi.ac.uk/biosamples/samples/",
HttpMethod.POST,
entity,
new ParameterizedTypeReference<>() {});
Expand Down
58 changes: 0 additions & 58 deletions 27/README.md

This file was deleted.

86 changes: 0 additions & 86 deletions 27/ena_xml/01_ena_WEBIN_XML.xml

This file was deleted.

3,347 changes: 0 additions & 3,347 deletions 27/ena_xml/02_ena_WEBIN_INVALID_FILE_TYPE_XML.xml

This file was deleted.

3,083 changes: 0 additions & 3,083 deletions 27/ena_xml/03_ena_WEBIN_VALID_SIMPLE_TRANSCRIPTOME_STUDY_XML.xml

This file was deleted.

3,399 changes: 0 additions & 3,399 deletions 27/ena_xml/04_ena_WEBIN_ANALYSIS_XML.xml

This file was deleted.

Binary file removed 27/images/brokering_strategy.jpg
Binary file not shown.
Binary file removed 27/images/coversion_tool.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion 27/images/images_collection.md

This file was deleted.

Binary file removed 27/images/mapping_1.jpg
Binary file not shown.
Binary file removed 27/images/mapping_2.jpg
Binary file not shown.
Binary file removed 27/images/pseudocode_1.jpg
Binary file not shown.
Binary file removed 27/images/pseudocode_2.jpg
Binary file not shown.
Binary file removed 27/images/pubsub.png
Binary file not shown.
Loading