nodes_datalinks_sample_proposals_retrieve
const url = 'https://example.com/api/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/datalinks/sample-proposals';const options = { method: 'GET', headers: { 'X-Workspace': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/datalinks/sample-proposals \ --header 'Authorization: Bearer <token>' \ --header 'X-Workspace: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'Propose one sample per file of the node that no sample is linked to.
Each proposal holds its files, and a title drawn from the name of the file
without its extension; a compound extension ending with a compression
(.fastq.gz, .tar.gz) is removed in full. The two files of a
paired-end sequencing (_R1/_R2, _1/_2…), recognised as the sample
suggestions do, are proposed as one sample titled by the name they share.
Nothing else is grouped. No alias is proposed. The proposals are
meant to fill a batch (POST /api/nodes/{nid}/samples/batch), which
checks them like any other sample: two files of the same name are both
proposed, and the batch reports the name as ambiguous.
Only the datalinks of the node are read, not those of its parents or children. The list is not paginated.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Workspace ID
Responses
Section titled “Responses”Serializer for the samples proposed from the files of a node.
object
Serializer for a sample proposed from files that no sample is linked to.
object
The name of the file without its extension, or the name the two files of a read pair share.
One file, or the two files of a paired-end sequencing.
Serializer for a file of a sample proposed from the files of a node.
object
The name of the file.
The name of the connection.
The path of the file in its source.
Example generated
{ "count": 1, "results": [ { "title": "example", "files": [ { "file_name": "example", "datalink": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "connection": "example", "path": "example" } ] } ]}object
object
Example
{ "code": "forbidden", "message": "You do not have permission to perform this operation. Check the `details` property for more details.", "details": [ { "parameter": "node", "code": "not_allowed", "message": "You are not a member of this node." } ]}object
object
Example
{ "code": "object_not_found", "message": "Object not found. Check the `details` property for more details.", "details": [ { "parameter": "<id>", "code": "does_not_exist", "message": "\"<id>\" does not exist." } ]}
