Are files from other google storage bucket copied over when running WDL?

Hi,
I have a bioinformatic scenario where I have several questions regarding accessing the data files on cloud storage.
For example, I would like to use the sequence dataset in the Terra workspace,
Terra. It seem gvcf files are available for each of the 3202 samples. I would like to create a multi-sample joint called vcf from a subset of those samples.

Below is the example code to run GATK to combine those gvcf files:


gatk CombineGVCFs
-R reference.fasta
–variant sample1.g.vcf.gz
–variant sample2.g.vcf.gz
-O cohort.g.vcf.gz

If I write a WDL to run the command above, it seem that I need to provide the link to the sample1.g.vcf.gz and sample2.g.vcf.gz, which would be the absolute path of their cloud bucket location.
My questions are following:

  1. I shall use the direct link to their gs location, right?
  2. Can I use terra datatable (create for the subset of samples) in combination with wdl to accomplish the task?
  3. Where is data table actually stored? On the bucket of my workspace? If I directly upload my tsv to my bucket, (using gsutil or transfer from github to bucket), will those show up in the DATA tab in Terra?
  4. When the WDL run the GATK, will each of those g.vcf.gz file be copied over into my VM?
  5. To run GATK, terra has special environment setup where the GATK is installed. My guess is that when the environment starts, the software package and the corresponding reference databases are duplicated on the VM. Is my guess correct? Would it be fair to say that whatever the computing environment needs, the file/software need to be copied from the cloud storage bucket into the computing environment. I need to find out, when I configure my environment, shall I use the size of those files as a reference.
  6. If I only have cloud credit for google cloud platform, will I be able to access the AnVIL data stored on Amazon cloud? Or any public datasets hosted on the Amazon cloud?
    Thanks.

Hi @truckload,

Here are some comments/answers to your questions:

1-2. You can use multiple rows of the data table as input using arrays if you want a single output. In case you want multiple outputs, sample_sets are an option:

  1. Data tables are their own data structure on AnVIL and are separate from Workspace buckets. If uploaded directly to your bucket, those will not show up in the Data tab of the Workspace. You can add a Data Table using the Import Data feature, of if that is not possible for you, RStudio on AnVIL is another option using:
  1. Any of the specified files will be transferred to the VM.
  2. WDL workflows will specify a Docker image for all the dependencies. This image will create a Docker container for each tool/dependency. For example: Exome Germline Single Sample Overview | WARP
  3. Any data that is publicly available on the internet is accesible by AnVIL.

Thank you so much!
I will check out the AnVIL package.