Skip to content

Commit

Permalink
fix file name slash sanitization (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Feb 8, 2024
1 parent 3bf33e4 commit 24a02a1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cubi_isa_templates/isatab-generic/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"center_contact": "",

"study_title": "{{cookiecutter.investigation_title}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|replace('/', '_')}}",
"assay_prefix": "{{cookiecutter.s_file_name|lower}}",
"a_measurement_abbreviation": "{% if cookiecutter.a_measurement_type == 'transcription profiling' %}mRNA_seq{% else %}UNKNOWN{% endif %}",
"assay_name": "{{cookiecutter.a_measurement_type|replace(' ', '_')}}_{{cookiecutter.a_technology_type|replace(' ', '_')}}",
Expand Down
2 changes: 1 addition & 1 deletion cubi_isa_templates/isatab-germline/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"investigation_title": "Investigation Title",
"study_title": "{{cookiecutter.investigation_title}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|lower}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|replace('/', '_')|lower}}",
"source_names": "index,mother,father",
"measurement_type": [
"exome sequencing",
Expand Down
2 changes: 1 addition & 1 deletion cubi_isa_templates/isatab-mass_cytometry/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"sample_factor_types": "intracellular structure,chemical compound,time span",
"dissociation_type": ["No", "pre-fix Trypsin", "post-fix Trypsin", "post-fix Octo"],
"sample_multiplexing": ["No", "SBT Pd 20-plex", "TOBis 35-plex", "Other"],
"__s_file_name": "{{cookiecutter.investigation_identifier|replace(' ', '_')}}",
"__s_file_name": "{{cookiecutter.investigation_identifier|replace(' ', '_')|replace('/', '_')}}",
"__assay_prefix": "{{cookiecutter.__s_file_name}}",
"__output_dir": "Required variable. Do not remove.",
"__prompts__": {
Expand Down
4 changes: 2 additions & 2 deletions cubi_isa_templates/isatab-microarray/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"array_design_ref": "",

"study_title": "{{cookiecutter.investigation_title}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|replace('/', '_')}}",
"assay_prefix": "{{cookiecutter.s_file_name|lower}}",
"a_technology_type": "microarray",
"assay_name": "{{cookiecutter.a_measurement_type|replace(' ', '_')}}_{{cookiecutter.a_technology_type|replace(' ', '_')}}",

"_terms": {
"transcription profiling": {
"accession_number": "http://purl.obolibrary.org/obo/OBI_0000424",
Expand Down
8 changes: 4 additions & 4 deletions cubi_isa_templates/isatab-ms_meta_biocrates/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"investigation_title": "Investigation Title",

"study_title": "{{cookiecutter.investigation_title}}",
"study_id": "{{cookiecutter.study_title|lower|replace(' ', '_')}}",
"study_id": "{{cookiecutter.study_title|lower|replace(' ', '_')|replace('/', '_')}}",
"study_file_name": "{{cookiecutter.study_id}}",

"sample_names": "alpha,beta,gamma",

"organism": [
"Homo sapiens",
"Mus musculus"
Expand All @@ -21,7 +21,7 @@
"taxon": "10090"
}
},

"assay_measurement_type": [
"metabolite profiling"
],
Expand All @@ -35,7 +35,7 @@
"accession": "http://purl.obolibrary.org/obo/OBI_0000470"
}
},

"biocrates_kit": [
"Biocrates MxP Quant 500 Kit",
"Biocrates AbsoluteIDQ p400 HR Kit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"sample_multiplexing": ["No", "CellPlex", "TotalSeq", "Other"],
"genotype_multiplexing": ["no", "yes"],
"study_title": "{{cookiecutter.investigation_title}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|replace('/', '_')}}",
"assay_prefix": "{{cookiecutter.s_file_name|lower}}",
"a_technology_type": "nucleotide sequencing",
"assay_name": "{{cookiecutter.a_measurement_type|replace(' ', '_')}}_{{cookiecutter.a_technology_type|replace(' ', '_')}}",
Expand Down
2 changes: 1 addition & 1 deletion cubi_isa_templates/isatab-somatic/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"investigation_title": "Investigation Title",
"study_title": "{{cookiecutter.investigation_title}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|lower}}",
"s_file_name": "{{cookiecutter.investigation_title|replace(' ', '_')|replace('/', '_')|lower}}",
"source_names": "patient1,patient2",
"neoplasm_type": [
"Primary Neoplasm",
Expand Down

0 comments on commit 24a02a1

Please sign in to comment.