Class: EgaAccessionService
Constant Summary
AccessionService::AccessionServiceError, AccessionService::CenterName, AccessionService::Hold, AccessionService::NumberNotGenerated, AccessionService::NumberNotRequired, AccessionService::Protect
Instance Method Summary
collapse
#accession_dac_xml, #accession_policy_xml, #accession_sample_xml, #accession_study_xml, #dac_visibility, #policy_visibility, #submit, #submit_sample_for_user, #submit_study_for_user
Instance Method Details
#accession_options ⇒ Object
10
11
12
|
# File 'app/models/ega_accession_service.rb', line 10
def accession_options
configatron.accession.ega!.to_hash
end
|
#broker ⇒ Object
22
23
24
|
# File 'app/models/ega_accession_service.rb', line 22
def broker
'EGA'
end
|
#private? ⇒ Boolean
35
36
37
|
# File 'app/models/ega_accession_service.rb', line 35
def private?
true
end
|
#provider ⇒ Object
6
7
8
|
# File 'app/models/ega_accession_service.rb', line 6
def provider
:EGA
end
|
#sample_visibility(_sample) ⇒ Object
14
15
16
|
# File 'app/models/ega_accession_service.rb', line 14
def sample_visibility(_sample)
Protect
end
|
#study_visibility(_study) ⇒ Object
18
19
20
|
# File 'app/models/ega_accession_service.rb', line 18
def study_visibility(_study)
Protect
end
|
#submit_dac_for_user(study, user) ⇒ Object
26
27
28
|
# File 'app/models/ega_accession_service.rb', line 26
def submit_dac_for_user(study, user)
submit(user, Accessionable::Dac.new(study))
end
|
#submit_policy_for_user(study, user) ⇒ Object
30
31
32
33
|
# File 'app/models/ega_accession_service.rb', line 30
def submit_policy_for_user(study, user)
policy = Accessionable::Policy.new(study)
submit(user, policy)
end
|