Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevermore233 authored Mar 4, 2024
1 parent 53213c8 commit e141e9e
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/sh_script/add_ART-Random.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

for ((i=0; i<=999; i++))
do
modified_file="./sam/trisomy/${i}_sample_modified.sam"
original_file="./sam/sample_${i}.sam"

cat "$modified_file" >> "$original_file"
echo "Appended $modified_file to $original_file"
done
10 changes: 10 additions & 0 deletions data/sh_script/add_MS+Seq-Gen+ART_sample1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

for ((i=0; i<=999; i++))
do
modified_file="./sam-ms/trisomy-ms/${i}_sample_modified.sam"
original_file="./sam-ms/sample_${i}.sam"

cat "$modified_file" >> "$original_file"
echo "Appended $modified_file to $original_file"
done
11 changes: 11 additions & 0 deletions data/sh_script/remove_ART-Random.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

for ((i=0; i<=999; i++))
do
input_file="./sam/trisomy/${i}_sample.sam"
output_file="./sam/trisomy/${i}_sample_modified.sam"

sed '1,3d' "$input_file" > "$output_file"

echo "Processed $input_file, saved as $output_file"
done
11 changes: 11 additions & 0 deletions data/sh_script/remove_MS+Seq-Gen+ART_sample1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

for ((i=0; i<=999; i++))
do
input_file="./sam-ms/trisomy-ms/${i}_sample.sam"
output_file="./sam-ms/trisomy-ms/${i}_sample_modified.sam"

sed '1,3d' "$input_file" > "$output_file"

echo "Processed $input_file, saved as $output_file"
done
17 changes: 17 additions & 0 deletions data/sh_script/sim_ART-Random.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
#illumina test examples
art=../art_illumina
f_value="f_value_ART-Random.txt"
> $f_value

for ((i=0; i<=1999; i++))
do
output_file="sample_${i}"

# Generate a random floating point number within the range of [0.1, 0.5]
random_float=$(awk -v min=0.1 -v max=0.5 'BEGIN{srand(); print min+rand()*(max-min)}')

echo $random_float >> $f_value

$art -ss HS25 -sam -i ./ref_ART-Random.fa -l 35 -p -f $random_float -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/${output_file}"
done
17 changes: 17 additions & 0 deletions data/sh_script/sim_MS+Seq-Gen+ART_sample1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
#illumina test examples
art=../art_illumina
f_value="f_value_MS+Seq-Gen+ART_sample1.txt"
> $f_value

for ((i=0; i<=1999; i++))
do
output_file="sample_${i}"

# Generate a random floating point number within the range of [0.1, 0.5]
random_float=$(awk -v min=0.1 -v max=0.5 'BEGIN{srand(); print min+rand()*(max-min)}')

echo $random_float >> $f_value

$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1.fa -l 35 -p -f $random_float -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/${output_file}"
done
23 changes: 23 additions & 0 deletions data/sh_script/trisomy_sim_MS+Seq-Gen+ART_sample1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
#illumina test examples
art=../art_illumina
for ((i=0; i<=333; i++))
do
output_file="${i}_sample"

$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1_chr13.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/trisomy-ms/${output_file}"
done

for ((i=334; i<=666; i++))
do
output_file="${i}_sample"

$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1_chr18.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/trisomy-ms/${output_file}"
done

for ((i=667; i<=999; i++))
do
output_file="${i}_sample"

$art -ss HS25 -sam -i ./ref_MS+Seq-Gen+ART_sample1_chr21.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam-ms/trisomy-ms/${output_file}"
done
23 changes: 23 additions & 0 deletions data/sh_script/trisomy_sim__ART-Random.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
#illumina test examples
art=../art_illumina
for ((i=0; i<=333; i++))
do
output_file="${i}_sample"

$art -ss HS25 -sam -i ./ref_ART-Random_chr13.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/trisomy/${output_file}"
done

for ((i=334; i<=666; i++))
do
output_file="${i}_sample"

$art -ss HS25 -sam -i ./ref_ART-Random_chr18.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/trisomy/${output_file}"
done

for ((i=667; i<=999; i++))
do
output_file="${i}_sample"

$art -ss HS25 -sam -i ./ref_ART-Random_chr21.fa -l 35 -p -f 0.2 -m 100 -s 5 -M -ir 0.005 -ir2 0.005 -dr 0.005 -dr2 0.005 -na -o "./sam/trisomy/${output_file}"
done

0 comments on commit e141e9e

Please sign in to comment.