|
@@ -74,6 +74,10 @@ const DownloadStructure = StateAction.build({
|
|
id: PD.Text('Q8W3K0', { label: 'UniProtKB AC(s)', description: 'One or more comma/space separated ACs.' }),
|
|
id: PD.Text('Q8W3K0', { label: 'UniProtKB AC(s)', description: 'One or more comma/space separated ACs.' }),
|
|
options
|
|
options
|
|
}, { isFlat: true, label: 'AlphaFold DB', description: 'Loads the predicted model if available' }),
|
|
}, { isFlat: true, label: 'AlphaFold DB', description: 'Loads the predicted model if available' }),
|
|
|
|
+ 'modelarchive': PD.Group({
|
|
|
|
+ id: PD.Text('ma-bak-cepc-0003', { label: 'Accession Code(s)', description: 'One or more comma/space separated ACs.' }),
|
|
|
|
+ options
|
|
|
|
+ }, { isFlat: true, label: 'Model Archive' }),
|
|
'pubchem': PD.Group({
|
|
'pubchem': PD.Group({
|
|
id: PD.Text('2244,2245', { label: 'PubChem ID', description: 'One or more comma/space separated IDs.' }),
|
|
id: PD.Text('2244,2245', { label: 'PubChem ID', description: 'One or more comma/space separated IDs.' }),
|
|
options
|
|
options
|
|
@@ -140,6 +144,11 @@ const DownloadStructure = StateAction.build({
|
|
asTrajectory = !!src.params.options.asTrajectory;
|
|
asTrajectory = !!src.params.options.asTrajectory;
|
|
format = 'mmcif';
|
|
format = 'mmcif';
|
|
break;
|
|
break;
|
|
|
|
+ case 'modelarchive':
|
|
|
|
+ downloadParams = await getDownloadParams(src.params.id, id => `https://www.modelarchive.org/doi/10.5452/${id.toLowerCase()}.cif`, id => `Model Archive: ${id}`, false);
|
|
|
|
+ asTrajectory = !!src.params.options.asTrajectory;
|
|
|
|
+ format = 'mmcif';
|
|
|
|
+ break;
|
|
case 'pubchem':
|
|
case 'pubchem':
|
|
downloadParams = await getDownloadParams(src.params.id, id => `https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/CID/${id.trim()}/record/SDF/?record_type=3d`, id => `PubChem: ${id}`, false);
|
|
downloadParams = await getDownloadParams(src.params.id, id => `https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/CID/${id.trim()}/record/SDF/?record_type=3d`, id => `PubChem: ${id}`, false);
|
|
asTrajectory = !!src.params.options.asTrajectory;
|
|
asTrajectory = !!src.params.options.asTrajectory;
|