Skip to content

Commit 44ae489

Browse files
committed
minor script updates
mix_fastq.sh - uncomment intermediate file cleanup compile_mix_results.sh - add "-y" flag to yeast figure - switch human mix depth to 50M (from 20M) - reduce redundant EPITOPE env var declarations run_mix_yeast.sh/run_mix_human.sh - add directory check and initializations build_lineplots.py - add comments with code to stretch figure to edges of plot
1 parent 7f13ae6 commit 44ae489

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

paper/SyntheticEpitope/job/compile_mix_results.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ TALLY=scripts/analyze_eid_results.py
1111
BAR=scripts/build_barplots.py
1212
LINE=scripts/build_lineplots.py
1313

14-
REF="sacCer3"
15-
DEPTH="1M"
1614
LENGTH="500"
1715
EPITOPE=R$LENGTH
16+
17+
REF="sacCer3"
18+
DEPTH="1M"
1819
AFACTOR=Rap1
1920
BFACTOR=Reb1
2021
SUMMARY=results/MixSummaryReport_$REF\_$DEPTH.txt
2122
RSUMMARY=results/MixRuntimeSummaryReport_$REF\_$DEPTH.txt
2223
[ -f $SUMMARY ] && rm $SUMMARY
2324
[ -f $RSUMMARY ] && rm $RSUMMARY
2425

25-
EPITOPE=R$LENGTH
2626
for PER in 90 80 70 60 50 40 30 20 10
2727
do
2828
CATRAW=results/mix_yeast/mix_yeast_$DEPTH\_$PER\_$AFACTOR\_$BFACTOR-all-IDs.tab
@@ -40,10 +40,10 @@ do
4040
done
4141

4242
# Build yeast figures
43-
python $LINE -i $SUMMARY -o results/ID-Mix-tally_$REF\_$DEPTH.png
43+
python $LINE -i $SUMMARY -y -o results/ID-Mix-tally_$REF\_$DEPTH.png
4444

4545
REF="hg19"
46-
DEPTH="20M"
46+
DEPTH="50M"
4747
LENGTH="500"
4848
EPITOPE=R$LENGTH
4949
AFACTOR=CTCF
@@ -53,7 +53,6 @@ RSUMMARY=results/MixRuntimeSummaryReport_$REF\_$DEPTH.txt
5353
[ -f $SUMMARY ] && rm $SUMMARY
5454
[ -f $RSUMMARY ] && rm $RSUMMARY
5555

56-
EPITOPE=R$LENGTH
5756
for PER in 90 80 70 60 50 40 30 20 10
5857
do
5958
CATRAW=results/mix_human/mix_human_$DEPTH\_$PER\_$AFACTOR\_$BFACTOR-all-IDs.tab

paper/SyntheticEpitope/job/run_mix_human.pbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ AFACTOR=CTCF
2222
BFACTOR=POLR2H
2323

2424
OUTPUT=results/mix_human/$DEPTH
25-
[ -d $OUTPUT ] || mkdir -p $OUTPUT
25+
[ -d results/mix_human ] || mkdir results/mix_human
26+
[ -d $OUTPUT ] || mkdir $OUTPUT
2627

2728
MIX=../scripts/mix_fastq.sh
2829
ABASE=results/$REF/$DEPTH/$EPITOPE/$AFACTOR/FASTQ/Simulation_$PBS_ARRAYID

paper/SyntheticEpitope/job/run_mix_yeast.pbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ AFACTOR=Rap1
2222
BFACTOR=Reb1
2323

2424
OUTPUT=results/mix_yeast/$DEPTH
25+
[ -d results/mix_yeast ] || mkdir results/mix_yeast ]
2526
[ -d $OUTPUT ] || mkdir -p $OUTPUT
2627

2728
MIX=../scripts/mix_fastq.sh

paper/SyntheticEpitope/scripts/build_lineplots.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ def getParams():
108108
fig.suptitle('Mix-Human')
109109

110110
# Set axis limits
111+
# plt.xlim(10, 90)
112+
# plt.xticks(range(10,91,10))
111113
plt.xlim(0, 100)
112-
plt.ylim(0, 1000)
113114
plt.xticks(range(0,101,10))
115+
plt.ylim(0, 1000)
114116

115117
# Save figure by output filename
116118
# fig.savefig('results/blah.svg')

paper/scripts/mix_fastq.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ seqtk subseq $BFQ\_R2.fastq.gz $OFQ\_readnames.txt >> $OFQ\_R2.fastq
9393
gzip -f $OFQ\_R1.fastq
9494
gzip -f $OFQ\_R2.fastq
9595

96-
#rm $OFQ\_readnames.txt
96+
rm $OFQ\_readnames.txt

0 commit comments

Comments
 (0)