Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert(): force_new=FALSE being ignored #2

Open
bschilder opened this issue Sep 5, 2022 · 0 comments
Open

convert(): force_new=FALSE being ignored #2

bschilder opened this issue Sep 5, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bschilder
Copy link
Member

bschilder commented Sep 5, 2022

Checked and the file it's being written to does indeed already exist:

x <-  "IMPACT707/Annotations/IMPACT707_EAS_chr1.annot.gz"
file.exists(echotabix::construct_tabix_path(target_path = x))
out <  echotabix::convert(target_path = x,
                           chrom_col = "CHR",
                           start_col = "BP",
                           comment_char = "CHR",
                           force_new = FALSE)

and yet file is still being reprocessed:

========= echotabix::convert =========
Converting full summary stats file to tabix format for fast querying.
Inferred format: 'table'
Determining chrom type from file header.
Chromosome format: 1
Detecting column delimiter.
Identified column separator: \t
Sorting rows by coordinates via bash.
Searching for header row with zgrep.
( zgrep ^'CHR' .../IMPACT707_EAS_chr1.annot.gz; zgrep
    -v ^'CHR' .../IMPACT707_EAS_chr1.annot.gz | sort
    -k1,1n
    -k2,2n ) > .../file3ef1cb2ba03_sorted.tsv
@bschilder bschilder added the bug Something isn't working label Sep 5, 2022
@bschilder bschilder self-assigned this Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant