Class: EBICheck::Process
- Inherits:
-
Object
- Object
- EBICheck::Process
- Defined in:
- lib/ebi_check/process.rb
Overview
rubocop:disable Metrics/ClassLength
Constant Summary collapse
- EGA =
Service names to identify EGA and ENA accessions
'EGA'- ENA =
'ENA'- TEMPLATE_STUDY_INFO =
Templates for printing information
'Study ID: %s, EBI Accession Number: %s'- TEMPLATE_STUDY_ERROR =
' Error retrieving study XML - %s'- TEMPLATE_SAMPLE_INFO =
' Sample ID: %s, EBI Accession Number: %s'- TEMPLATE_SAMPLE_ERROR =
' Error retrieving sample XML - %s'- TEMPLATE_SC =
SC = Sequencescape side
' SC: %s=%s'- TEMPLATE_EBI =
EBI = EBI EGA / ENA side
' EBI: %s=%s'
Instance Method Summary collapse
-
#initialize(out = $stdout) ⇒ Process
constructor
Initializes a new EBICheck::Process instance.
-
#samples_by_accession_numbers(sample_numbers) ⇒ void
Compares local and remote sample XML data for the given sample accession numbers.
-
#samples_by_ids(sample_ids) ⇒ void
Compares local and remote sample XML data for the given sample IDs.
-
#samples_by_study_accession_numbers(study_numbers) ⇒ void
Compares local and remote sample XML data for the given study accession numbers.
-
#samples_by_study_ids(study_ids) ⇒ void
Compares local and remote sample XML data for the given study IDs.
-
#studies_by_accession_numbers(study_numbers) ⇒ void
Compares local and remote study XML data for the given study accession numbers.
-
#studies_by_ids(study_ids) ⇒ void
Compares local and remote study XML data for the given study IDs.
Constructor Details
#initialize(out = $stdout) ⇒ Process
Initializes a new EBICheck::Process instance.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/ebi_check/process.rb', line 44 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
Instance Method Details
#samples_by_accession_numbers(sample_numbers) ⇒ void
This method returns an undefined value.
Compares local and remote sample XML data for the given sample accession numbers.
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/ebi_check/process.rb', line 115 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
#samples_by_ids(sample_ids) ⇒ void
This method returns an undefined value.
Compares local and remote sample XML data for the given sample IDs.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/ebi_check/process.rb', line 96 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
#samples_by_study_accession_numbers(study_numbers) ⇒ void
This method returns an undefined value.
Compares local and remote sample XML data for the given study accession numbers.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/ebi_check/process.rb', line 123 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
#samples_by_study_ids(study_ids) ⇒ void
This method returns an undefined value.
Compares local and remote sample XML data for the given study IDs.
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/ebi_check/process.rb', line 79 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
#studies_by_accession_numbers(study_numbers) ⇒ void
This method returns an undefined value.
Compares local and remote study XML data for the given study accession numbers.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/ebi_check/process.rb', line 71 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
#studies_by_ids(study_ids) ⇒ void
This method returns an undefined value.
Compares local and remote study XML data for the given study IDs.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/ebi_check/process.rb', line 51 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |