Skip to content

Commit

Permalink
testing gtf path
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiernan committed Jan 10, 2025
1 parent 13fbf2a commit 7b5cae5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pipelines/skylab/atac/atac.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -605,16 +605,16 @@ task CreateFragmentFile {
# Add GTF to uns field
# Original path from args.annotation_file
annotation_gtf = str(atac_gtf) # e.g., '/cromwell_root/gcp-public-data--broad-references/hg38/v0/star/v2_7_10a/modified_v43.annotation.gtf'
# Transform the path
if annotation_gtf.startswith('/cromwell_root/'):
stripped_path = annotation_gtf[len('/cromwell_root/'):] # Remove '/cromwell_root/'
updated_path = f'gs://{stripped_path}' # Add 'gs://' prefix
else:
updated_path = str(atac_gtf)
gtf_path = str(~{annotations_gtf}) # e.g., '/cromwell_root/gcp-public-data--broad-references/hg38/v0/star/v2_7_10a/modified_v43.annotation.gtf'
# # Transform the path
# if annotation_gtf.startswith('/cromwell_root/'):
# stripped_path = annotation_gtf[len('/cromwell_root/'):] # Remove '/cromwell_root/'
# updated_path = f'gs://{stripped_path}' # Add 'gs://' prefix
# else:
# updated_path = str(atac_gtf)
atac_data.uns["reference_gtf_file"] = updated_path
atac_data.uns["reference_gtf_file"] = gtf_path
# calculate tsse metrics
snap.metrics.tsse(atac_data, atac_gtf)
# Write new atac file
Expand Down

0 comments on commit 7b5cae5

Please sign in to comment.