modified: pixi.toml
[GalaxyCodeBases.git] / BioInfo / BS-Seq / bwa-meth / compare / src / gen-simulated.sh
blobe5644a148ce0226a40251bdd1011b5830181d583
1 . ./common.sh
3 cd data/
5 N=1000000
7 Sherman \
8 --genome_folder $BIS_REF \
9 --length 100 \
10 -n $N \
11 -pe \
12 -X 500 \
13 --CG_conversion 25 \
14 --CH_conversion 95 \
15 --error_rate 1.0
17 sed 's/_R1$//' simulated_1.fastq | gzip -c > sim_R1.fastq.gz &
18 sed 's/_R2$//' simulated_2.fastq | gzip -c > sim_R2.fastq.gz
19 wait
21 # wget -O data/e_coli_k12_mg1655.fa "http://www.ncbi.nlm.nih.gov/nuccore/NC_000913.3?report=fasta&log$=seqview&format=text"
22 # and remove html
24 rm -f simulated_1.fastq simulated_2.fastq
26 Sherman \
27 --genome_folder . \
28 --length 100 \
29 -n $((N / 20)) \
30 -pe \
31 -X 500 \
32 --CG_conversion 98 \
33 --CH_conversion 98 \
34 --error_rate 1.0
36 sed 's/_R1$/_BAD/' simulated_1.fastq | gzip -c >> sim_R1.fastq.gz &
37 sed 's/_R2$/_BAD/' simulated_2.fastq | gzip -c >> sim_R2.fastq.gz
38 wait
39 rm -f simulated_1.fastq simulated_2.fastq
42 Sherman \
43 --genome_folder $BIS_REF \
44 --length 100 \
45 -n $N \
46 -pe \
47 -X 500 \
48 --CG_conversion 25 \
49 --CH_conversion 95 \
50 --error_rate 0.0
52 sed 's/_R1$//' simulated_1.fastq | gzip -c > noerrorsim_R1.fastq.gz &
53 sed 's/_R2$//' simulated_2.fastq | gzip -c > noerrorsim_R2.fastq.gz
54 wait
56 rm -f simulated_1.fastq simulated_2.fastq