-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4640 from sanger/4409-y24-379--study-setup-fields…
…-to-align-to-the-ena-database-fields Reapply "4409 y24 379 study setup fields to align to the ena databas…
- Loading branch information
Showing
20 changed files
with
180 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
default: &DEFAULT | ||
EBI_Library_strategy: | ||
- "RNA-Seq" | ||
- "ChIP-Seq" | ||
- "WGS" | ||
- "WXS" | ||
- "AMPLICON" | ||
- "CLONE" | ||
- "POOLCLONE" | ||
- "CLONEEND" | ||
- "Bisulfite-Seq" | ||
- "MNase-Seq" | ||
- "DNase-Hypersensitivity" | ||
- "FAIRE-seq" | ||
- "SELEX" | ||
- "RIP-Seq" | ||
- "ChIA-PET" | ||
- "OTHER" | ||
EBI_Library_source: | ||
- "GENOMIC" | ||
- "TRANSCRIPTOMIC" | ||
- "METAGENOMIC" | ||
- "METATRANSCRIPTOMIC" | ||
- "SYNTHETIC" | ||
- "VIRAL RNA" | ||
- "OTHER" | ||
EBI_Library_selection: | ||
- "RANDOM" | ||
- "PCR" | ||
- "RANDOM PCR" | ||
- "RT-PCR" | ||
- "HMPR" | ||
- "MF" | ||
- "CF-S" | ||
- "CF-M" | ||
- "CF-T" | ||
- "MDA" | ||
- "MSLL" | ||
- "cDNA" | ||
- "ChIP" | ||
- "MNase" | ||
- "DNAse" | ||
- "Hybrid Selection" | ||
- "Reduced Representation" | ||
- "Restriction Digest" | ||
- "5-methylcytidine antibody" | ||
- "MBD2 protein methyl-CpG binding domain" | ||
|
||
development: | ||
<<: *DEFAULT | ||
next_release: | ||
<<: *DEFAULT | ||
test: | ||
<<: *DEFAULT | ||
cucumber: | ||
<<: *DEFAULT | ||
production: | ||
<<: *DEFAULT | ||
staging: | ||
<<: *DEFAULT | ||
staging_2: | ||
<<: *DEFAULT | ||
training: | ||
<<: *DEFAULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
db/migrate/20250108172249_add_ebi_requirement_fields_to_study_metadata.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
class AddEbiRequirementFieldsToStudyMetadata < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :study_metadata, :ebi_library_strategy, :string, default: nil | ||
add_column :study_metadata, :ebi_library_source, :string, default: nil | ||
add_column :study_metadata, :ebi_library_selection, :string, default: nil | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,10 @@ | |
s3_email_list { '[email protected];[email protected]' } | ||
data_deletion_period { '3 months' } | ||
|
||
ebi_library_strategy { 'WGS' } | ||
ebi_library_source { 'GENOMIC' } | ||
ebi_library_selection { 'PCR' } | ||
|
||
transient { contaminated_human_data_access_group { nil } } | ||
|
||
after(:build) do |study_metadata, evaluator| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -518,7 +518,10 @@ | |
number_of_gigabases_per_sample: 6, | ||
hmdmc_approval_number: 'HDMC123456', | ||
s3_email_list: '[email protected];[email protected]', | ||
data_deletion_period: '3 months' | ||
data_deletion_period: '3 months', | ||
ebi_library_strategy: 'WGS', | ||
ebi_library_source: 'GENOMIC', | ||
ebi_library_selection: 'PCR' | ||
} | ||
end | ||
|
||
|
@@ -645,6 +648,18 @@ | |
expect(study.study_metadata.faculty_sponsor).not_to be_nil | ||
end | ||
|
||
it 'must have a ebi library strategy' do | ||
expect(study.study_metadata.ebi_library_strategy).not_to be_nil | ||
end | ||
|
||
it 'must have a ebi library source' do | ||
expect(study.study_metadata.ebi_library_source).not_to be_nil | ||
end | ||
|
||
it 'must have a ebi library selection' do | ||
expect(study.study_metadata.ebi_library_selection).not_to be_nil | ||
end | ||
|
||
context 'contaminated human data access group' do | ||
it 'defaults to null when not specified' do | ||
expect(study.study_metadata.contaminated_human_data_access_group).to be_nil | ||
|