Skip to content

Commit

Permalink
modified: cre.sv.validate_bed.py
Browse files Browse the repository at this point in the history
	new file:   cre.tstv.check.sh
  • Loading branch information
naumenko-sa committed Apr 25, 2018
1 parent 86473d4 commit fa7718c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cre.sv.validate_bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


EVENT_SIZES = [(50, 100), (100, 300), (300, 500), (500, 1000), (1000, 10000),
(10000, int(1e6))]
(10000, 100000), (100000,int(1e6))]

def _test(caller, svtype, size_range, ensemble, truth, data):
efeats = pybedtools.BedTool(ensemble).sort().merge().saveas()
Expand All @@ -37,7 +37,7 @@ def _test(caller, svtype, size_range, ensemble, truth, data):
for size in EVENT_SIZES:
str_size = "%s-%s" % size
# _test(vcaller,svtype,size,sys.argv[1],sys.argv[2],data)
evalout = validate_evaluate_one(vcaller,svtype,size,sys.argv[1],sys.argv[2],data)
evalout = validate._evaluate_one(vcaller,svtype,size,sys.argv[1],sys.argv[2],data)
writer.writerow([svtype, str_size, vcaller,
evalout["sensitivity"]["label"], evalout["precision"]["label"]])
for metric in ["sensitivity", "precision"]:
Expand Down
19 changes: 19 additions & 0 deletions cre.tstv.check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

for f in *x/*;
do
if [ -f ${f}/multiqc/multiqc_data/multiqc_data_final.json ];
then
for g in `cat $f/multiqc/multiqc_data/multiqc_data_final.json | grep generalstats-tstv | awk -F ':' '{print $2}' | grep -v mqc | sed s/" "// | sed s/","//`;
do
echo $f $g >> tstv_check.txt;
done;
else
for g in `cat $f/multiqc/multiqc_data/multiqc_bcftools_stats.txt | sed 1d | awk '{print $6}'`;
do
echo $f $g >> tstv_check.txt;
done;
fi
done;

cat tstv_check.txt | sort -n -k2,2 > tstv_check_sorted.txt

0 comments on commit fa7718c

Please sign in to comment.