christacaggiano / celfie

cfDNA cell type of origin estimation
GNU Affero General Public License v3.0
29 stars 14 forks source link

A code error in tim.sh #8

Closed xihuimeijing closed 11 months ago

xihuimeijing commented 1 year ago

Hi Christa,

Thank you for developing CelFiE.

When I use the tim.sh to generate my own TIMs, I found the tim_summed.txt output file was not for regions but for CpG sites. After debugging, I found there is a code error in this line "awk -v window="$window_size" '{print $1 "\t" $2-$window "\t" $3+$window}' $output_file"_sites" > $outputfile""$window_size". It should be no $ before window inside awk.

Hope this is helpful.

christacaggiano commented 11 months ago

Thank you so much for catching that bug!!

christacaggiano commented 11 months ago

It is fixed now!