Skip to content

Commit

Permalink
Added test of filtering individuals in LD estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
deepchocolate committed Feb 21, 2024
1 parent 37137ac commit b2f536f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_LDpred2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export fileOutputSNPR=$DIR_DATA/public-data3.rds
export fileKeepSNPS=/REF/hapmap3/w_hm3.justrs
export fileOut=$DIR_TESTS/output/public-data.score

# File with subset of individual IDs from the tutorial data
export fileExtractIndividuals=$DIR_DATA/individual-ids.txt

# BGEN files
export fileBGEN=$DIR_DATA/example.bgen
export fileBGENasRDS=$DIR_DATA/example.rds
Expand Down
2 changes: 2 additions & 0 deletions tests/test_LDpred2/scripts/ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ testSuccess $LDE --sumstats $fileSumstats25k rsid --thres-r2 0.2 --chr2use 21 22
echo "Test restricting on SNPs provide by a SNP list file: $fileKeepSNPS"
testSuccess $LDE --extract $fileKeepSNPS --file-ld-chr $dirOut/[email protected] --file-ld-map $dirOut/map.rds

echo "Test extracting individuals using $fileExtractIndividuals"
testSuccess $LDE --extract-individuals $fileExtractIndividuals --file-ld-chr $dirOut/[email protected] --file-ld-map $dirOut/map.rds
echo "Test sampling individuals (N=400)"
testSuccess $LDE --sample-individuals 400 --extract $fileKeepSNPS --file-ld-chr $dirOut/[email protected] --file-ld-map $dirOut/map.rds
# Test this LDpred on this LD (restrict to chromosomes 20-22
Expand Down

0 comments on commit b2f536f

Please sign in to comment.