Open zrcjessica opened 3 years ago
When I looked at the source code, I see that the .results
is only returned when ldsc.py
is run with --overlap-annot
. I also realized that all of my input files need to corresponding to 1000G Phase 3. However, why is it that --overlap-annot
is required to generate a .results
file even when I am only giving one set of annotations to --ref-ld-chr
?
I've only been able to get the --print-snps
argument to work with partitioned heritability and don't get a .results
file like all everyone mentioned above. It took some wrangling, but the log files has most of the columns of the .results
file that would otherwise be made with the --overlap-annot
file. Here's a block of bash code to post-process the .log
file into most of the columns of the .results
file.
awk -F '\t' '/Total Observed scale h2*/{flag=1;next}/Lambda GC/{flag=0}flag' my.log | \
# append line with leading white space to previous
sed ':a;N;$!ba;s/\n //g'| \
# parse Partitioned heritability rownames, starts w/ colon
awk -F":" -v OFS='\t' '{gsub("[[:space:]]", "_", $1);gsub(":", "", $0); print}' | \
# transpose row to columns
awk -v OFS='\t' '
{
for (i=1; i<=NF; i++) {
a[NR,i] = $i
}
}
NF>p { p = NF }
END {
for(j=1; j<=p; j++) {
str=a[1,j]
for(i=2; i<=NR; i++){
str=str"\t"a[i,j];
}
print str
}
}' | awk -v OFS='\t' '{gsub("_[0-9]+$", "", $1); gsub("L2$", "", $1); print}' | \
gzip > my.results.gz
I am trying to run
ldsc.py
to measure enrichment of GWAS risk variants in open chromatin regions of interest. I have generated the thinned*.annot.gz
files for these regions and computed the LD scores as outlined in the wiki.My command:
It runs without any error messages (except for a
FutureWarning
described in issue #224 ). However, I only get a.log
output file and no.results
file. This is what the.log
file looks like:I also tried adding the baseline files to my analysis by modifying the
--ref-ld-chr
flag to:However, I get the same issue reported in issue #233 .
My questions are:
.results
file?