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

"--gene" flag in apex trans not working. #6

Closed
hsun3163 opened this issue Jul 19, 2021 · 2 comments
Closed

"--gene" flag in apex trans not working. #6

hsun3163 opened this issue Jul 19, 2021 · 2 comments

Comments

@hsun3163
Copy link

hsun3163 commented Jul 19, 2021

Dear APEX authors,

In apex trans there is a --gene flag to include only the gene of interests.

--gene                            Restrict analysis to specified genes
                                          (gene name or comma-separated list).

However, including it doesn't seem to changes the number of genes that I analyzed, as illustrated below:

This commands supposedly only analysis one gene,

/apex trans --vcf /mnt/mfs/statgen/neuro-apex/ROSMAP-vcf/ROSMAP_chr19.vcf.gz \
--bed /mnt/mfs/statgen/neuro-apex/pipeline_testing/cache/test.chr19.mol_phe.bed.gz \
--cov /mnt/mfs/statgen/neuro-apex/pipeline_testing/cache/test.cov.gz \
--out /mnt/mfs/statgen/neuro-apex/pipeline_testing/test.19 \
--theta-file  /mnt/mfs/statgen/neuro-apex/pipeline_testing/cache/test.chr19.mol_phe.theta.gz \
--gene 'ENSG00000064666'

but instead, the function still analysis all the genes in the input bed file:

Using 48 threads.
976562 total variants on selected chromosomes.

Found 1196 samples in bcf file ... 
Found 664 samples in covariate file ... 
Found 665 samples in expression bed file ... 
Found 664 samples in common across all three files.

Processed data for 5 covariates across 664 samples.
Processed expression for 5 genes across 664 samples.
Processed genotype data for 976562 variants.

Started trans-QTL analysis ...
Scaling expression traits ... 
Calculating genotype-covariate covariance...
Calculating genotype residual variances ...Done.
Calculating expression residuals...
Scaling expression residuals ...
Processed 9766 genotype blocks out of 9765 total

Trying to use a file that contains the gene_ID to be included doesn't work either.

Could you provide an example to illustrate what is the proper way of doing the gene selection?

@corbinq
Copy link
Owner

corbinq commented Jul 19, 2021 via email

@hsun3163
Copy link
Author

Thanks for the bug report. The --gene subsetting option is not yet implemented, and should not yet be appearing in the help menu -- I will make a note to fix this. To subset to a gene of interest, I recommend using the --bed-region argument to specify the genomic region around the gene of interest.

Thank you for the prompt reply, I will take a look to see what I can do.

@corbinq corbinq closed this as completed Jul 20, 2021
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

No branches or pull requests

2 participants