# some paths ## directories results_dir='results/10xgenomics_PBMC_5k_motifs_classification_0' data_dir='data/10xgenomics_PBMC_5k_motifs' ## input file_mat_open="$data_dir/ctcf_motifs_10e-6_open_bin1bp_read_atac.mat" file_mat_nucl="$data_dir/ctcf_motifs_10e-6_nucleosomes_bin1bp_fragment_center.mat" file_mat_seq="$data_dir/ctcf_motifs_10e-6_sequences.mat" ## file with seeds file_seed=$results_dir'/ctcf_motifs_10e-6_seed.txt' mkdir -p $results_dir touch $file_seed # parameters n_iter='20' n_shift='1' n_core=6 # open chromatin with flip for k in 1 2 3 4 5 6 do # seed=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-15};echo) file_prob=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_prob.mat4d' file_mod1=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_model.mat' file_mod2=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_nucleosomes_fragment_center_model.mat' file_mod3=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_sequences_model.mat' echo "$file_prob $seed" >> $file_seed bin/EMRead --read $file_mat_open --class $k --shift $n_shift --flip --iter $n_iter --seed $seed --thread $n_core --out $file_prob bin/ProbToModel --read $file_mat_open --prob $file_prob --thread $n_core 1> $file_mod1 bin/ProbToModel --read $file_mat_nucl --prob $file_prob --thread $n_core 1> $file_mod2 bin/ProbToModel --seq $file_mat_seq --prob $file_prob --thread $n_core 1> $file_mod3 done # open chromatin without flip for k in 1 2 3 4 5 6 do seed=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-15};echo) file_prob=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_noflip_prob.mat4d' file_mod1=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_noflip_model.mat' file_mod2=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_noflip_nucleosomes_fragment_center_model.mat' file_mod3=$results_dir/'ctcf_motifs_10e-6_open_bin1bp_read_atac_'$k'class_noflip_sequences_model.mat' echo "$file_prob $seed" >> $file_seed bin/EMRead --read $file_mat_open --class $k --shift $n_shift --iter $n_iter --seed $seed --thread $n_core --out $file_prob bin/ProbToModel --read $file_mat_open --prob $file_prob --thread $n_core 1> $file_mod1 bin/ProbToModel --read $file_mat_nucl --prob $file_prob --thread $n_core 1> $file_mod2 bin/ProbToModel --seq $file_mat_seq --prob $file_prob --thread $n_core 1> $file_mod3 done