Richard-Packer / DeepPheWAS

An R package for phenotype generation and association testing for phenome wide associations studies (PheWAS)
GNU General Public License v3.0
11 stars 6 forks source link

Problem running phenotype generation #1

Open hangphan opened 1 year ago

hangphan commented 1 year ago

Hi Richard, I've just tried running the phenotype generation script using the examples you provided in the manual and got the following error.

image

Do you think you could help pointing out where/how I could get zlib installed? I tried several ways (e.g. using install.packages("Rcompression", repos = "http://www.omegahat.net/R ") or tried the link http://www.gzip.org/zlib/ ) but it does not work. Installing this package using "install.packages('zlib')" gave me the following error

image

Your help will be highly appreciated. Many thanks Hang

Richard-Packer commented 1 year ago

Hi Hang,

I've not encountered this specific error before. Have you tried reinstalling data.table? The other option would be to decompress the gz files in the R package folder if it is an issue with loading the built in gz files.

Best, Richard


From: Hang Phan @.> Sent: 12 April 2023 17:18 To: Richard-Packer/DeepPheWAS @.> Cc: Subscribed @.***> Subject: [Richard-Packer/DeepPheWAS] Problem running phenotype generation (Issue #1)

CAUTION: This email was sent from an EXTERNAL source. Think before clicking links or opening attachments.

Hi Richard, I've just tried running the phenotype generation script using the examples you provided in the manual and got the following error. [image]https://user-images.githubusercontent.com/7782225/231519047-fb666857-7a56-4b0c-8682-a7ba236cab84.png

Do you think you could help pointing out where/how I could get zlib installed? I tried several ways (e.g. using install.packages("Rcompression", repos = "http://www.omegahat.net/R ") or tried the link http://www.gzip.org/zlib/ ) but it does not work. Installing this package using "install.packages('zlib')" gave me the following error [image]https://user-images.githubusercontent.com/7782225/231519680-4bfe4eac-f9b4-47d1-9d0f-95f2ffae3f1d.png

Your help will be highly appreciated. Many thanks Hang

— Reply to this email directly, view it on GitHubhttps://github.com/Richard-Packer/DeepPheWAS/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5PHRCHS6SHCRRA5MLZSFTXA3IWBANCNFSM6AAAAAAW35AKGU. You are receiving this because you are subscribed to this thread.Message ID: @.***>

hangphan commented 1 year ago

Hi, I managed to resolve the problem by installing the 2 R packages that has the zlib library prior to installing data.table. I'm trying to run the script to generate the dataset to input to the DeepPHEWAS as below

$package_folder/extdata/scripts/phenotype_generation/01_minimum_data.R \ --data_file $package_folder/extdata/worked_example/ukb_data.csv.gz \ --save_loc $phewas_folder/data/min_tab_test.gz

Could you please let me know how long this step would take using this test dataset that you provided? Many thanks Hang

Richard-Packer commented 1 year ago

Hi Hang,

All the examples should run in seconds to minutes.

Richard


From: Hang Phan @.> Sent: 17 April 2023 17:09 To: Richard-Packer/DeepPheWAS @.> Cc: Packer, Richard J. (Dr.) @.>; Comment @.> Subject: Re: [Richard-Packer/DeepPheWAS] Problem running phenotype generation (Issue #1)

CAUTION: This email was sent from an EXTERNAL source. Think before clicking links or opening attachments.

Hi, I managed to resolve the problem by installing the 2 R packages that has the zlib library prior to installing data.table. I'm trying to run the script to generate the dataset to input to the DeepPHEWAS as below

$package_folder/extdata/scripts/phenotype_generation/01_minimum_data.R --data_file $package_folder/extdata/worked_example/ukb_data.csv.gz --save_loc $phewas_folder/data/min_tab_test.gz

Could you please let me know how long this step would take using this test dataset that you provided? Many thanks Hang

— Reply to this email directly, view it on GitHubhttps://github.com/Richard-Packer/DeepPheWAS/issues/1#issuecomment-1511672632, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5PHRBBJYXJZRDYRZZFZHTXBVTJ7ANCNFSM6AAAAAAW35AKGU. You are receiving this because you commented.Message ID: @.***>

hangphan commented 1 year ago

That's really weird. I tried running the above command and it just stalled. Is it possible to provide the output of the command I listed above? The min_tab_test.gz file?

Do you notice anything obviously wrong with that one above? Many thanks. Hang

hangphan commented 1 year ago

By the way, my test bash script is like this. It would be great to hear what you think about this. Many thanks. Hang

package_folder=/opt/conda/lib/R/library/DeepPheWAS/
phewas_folder=/home/jovyan/testDeepPheWAS/
$package_folder/extdata/scripts/phenotype_generation/01_minimum_data.R \
--data_file $package_folder/extdata/worked_example/ukb_data.csv.gz \
--save_loc $phewas_folder/data/min_tab_test.gz
$package_folder/extdata/scripts/phenotype_generation/02_data_preparation.R \
--save_location $phewas_folder/data/ \
--min_data $phewas_folder/data/min_tab_test.gz \
--hesin_diag $package_folder/extdata/worked_example/HES_Diag.csv.gz \
--HESIN $package_folder/extdata/worked_example/hesin.csv.gz \
--death_cause $package_folder/extdata/worked_example/death.csv.gz \
--death $package_folder/extdata/worked_example/death_date.csv.gz \
--king_coef $package_folder/extdata/worked_example/KING_coef.csv.gz \
--GPC $package_folder/extdata/worked_example/GPC.csv.gz