Skip to content

Conversation

@VJalili
Copy link
Member

@VJalili VJalili commented Apr 2, 2024

This PR adds utility scripts to create test data for the pipeline, which are created either by downsampling a larger file to contain information overlapping given test regions or by converting file types, whichever suits best. The resulting files are smaller than the input files, leading to faster and cheaper execution of workflows for testing purposes.

The following changes are implemented:

  • Create a tests folder containing all the tests, and move the Carrot-related files to this folder;

  • Implement methods to downsample different types of files; .cram. .vcf, .interval_list, and primary contigs file are the currently supported file types.

  • Implement a script that iterates through given workflow JSON files, downsamples the set files, pushes them to the cloud if needed, and creates an output JSON file containing the downsampled files in addition to untouched inputs. For instance:

  • input JSON:

    {
        "GatherSampleEvidence.bam_or_cram_file": "gs://.../HG00096.final.cram",
        "GatherSampleEvidence.sample_id": "HG00096",
    }
  • output json:

    {
        "GatherSampleEvidence.bam_or_cram_file": "gs://my-test-bucket/downsampled_HG00096.final.cram",
        "GatherSampleEvidence.sample_id": "HG00096",
    }
  • Add a BED file with default target regions such that resulting downsampled files run successfully through the GatherSampleEvidence workflow.

The UUID of a test run on GCP: dd8bc64f-7ac0-46b6-ae39-2af86f0fe573

@VJalili VJalili requested a review from mwalker174 April 2, 2024 17:12
@VJalili VJalili marked this pull request as ready for review April 25, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant