PGScatalog / pgscatalog_utils

(superseded by pygscatalog) Utilities for working with PGS Catalog API and scoring files
Apache License 2.0
4 stars 3 forks source link

Fix path resolution in `check_samplesheet` #56

Closed nebfield closed 11 months ago

nebfield commented 11 months ago

Before

Relative paths were resolved relative to a work directory parent

e.g. stuff/work/a1/c2/samplesheet.csv -> stuff/cineca.vcf.gz

This can be quite fragile if you change the default work directory location and is quite confusing behaviour.

It also breaks running the test profile from nextflow directly (nextflow run pgscatalog/pgsc_calc) with local files.

Now

The samplesheet path is resolved and relative genome paths are joined with the parent directory.

e.g. stuff/work/a1/c2/samplesheet.csv -> original_dir/samplesheet.csv -> original_dir/cineca.vcf.gz

New features:

Closes #51

nebfield commented 11 months ago

yes, I think it's simplest to merge and test offline 😄