Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
fix makefile variable name for reference genome and remove debug logs…
Browse files Browse the repository at this point in the history
… from apply_bp2cm
  • Loading branch information
cmdoret committed Aug 5, 2018
1 parent 574e0b7 commit 813cdd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ wgs_wild : $(CORRESP) $(SIZES) $(WGS)/variant/hap.wild.matrix
bp2cm:
# Compute coordinates of linkage map markers in new genome
# Compute cM/BP ratio in each inter-marker interval
bash src/convert_coord/bp2cm.sh -r $(OLDREF) -n $(REF) -o $(LINKMAP)/bp2cm/bp2cm.tsv \
bash src/convert_coord/bp2cm.sh -r $(OLD-REF) -n $(REF) -o $(LINKMAP)/bp2cm/bp2cm \
-m $(LINKMAP)/linkage_markers.csv
# Apply transformation to CSD dataset to get cM coordinates
bash src/convert_coord/apply_bp2cm.sh $(ASSOC)/case_control/case_control_all.tsv \
Expand Down
2 changes: 0 additions & 2 deletions src/convert_coord/apply_bp2cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@ while read -a hit; do
# Position of SNP from start of interval
from_start=$((bp - interv[1]))
curr_cM=$(echo "$from_start * ${interv[3]} + $cum_cM" | bc -l)
echo "CURR: $curr_cM"
echo -e "${hit[*]}\t$curr_cM" >> "$out_hits"
else
# SNP not found, next read will not use this interval
((n_interv++))
# Computing total cM in interval (cM/BP) * (end-start)
int_cM=$(echo "${interv[3]} * (${interv[2]} - ${interv[1]})")
cum_cM=$(echo "$cum_cM + $int_cM" | bc -l)
echo "NEXT"
fi
echo "$cum_cM"

Expand Down

0 comments on commit 813cdd0

Please sign in to comment.