Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to select specific runs under the same project ID to download the fastq files

36 views
Skip to first unread message

Mariko T

unread,
Aug 22, 2022, 12:02:33 PM8/22/22
to basespace-developers

Hi all,

 

I have a project, say project A. And I have 5 runs under that project, say run 1-5.

 

What command should I use to download the fastq file for, for example, run 2&3?

 

If I use

.\bs download project /i (A’s id) /o ./Rundata

All the data for the runs 1-5 were downloaded, and it takes a lot of time.

 

Thank you,

Mariko

Nick Vinckier

unread,
Aug 22, 2022, 12:27:03 PM8/22/22
to basespace-developers
Hi Mariko,

You can do this in 2 steps. The first is where the datasets for a specific run Id are listed, the second is to download those datasets using their Ids:
To get all datasets under a specific run:
bs list dataset --input-run=<RunId>

Then download all those datasets with:
bs download dataset -i <datasetId> -o <output>

A loop of some sort would be helpful to automate that a bit more.

Hope that helps!

Nick

--
You received this message because you are subscribed to the Google Groups "basespace-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basespace-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/basespace-developers/b3722f22-3af8-455f-9ef4-3fc71e38d11en%40googlegroups.com.

Mariko T

unread,
Aug 22, 2022, 1:24:51 PM8/22/22
to basespace-developers
Hi Nick!

Thank you for your reply and it's really helpful.

Would you mind giving me some advice on how to write the script for the 'for' loop command to get all the Biosample data for a run?

Thank you!
Mariko
Reply all
Reply to author
Forward
0 new messages